	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_packet_present
_check_packet_present:                  ## @check_packet_present
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpl	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %r14
	movq	%rbx, %rdi
	callq	_get_rcvhdrtail
	movq	%rax, %rcx
	movl	$1, %eax
	cmpq	%rcx, %r14
	jne	LBB0_4
LBB0_3:
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	movq	_RCV_HDR_TAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_read_uctxt_csr
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, 8(%rbx)
	setne	%al
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %r14
	movq	%rbx, %rdi
	callq	_get_rhf_addr
	movl	%eax, %edi
	callq	_rhf_to_cpu
	movl	%eax, %edi
	callq	_rhf_rcv_seq
	movq	%rax, %rcx
	movl	$1, %eax
	cmpq	%rcx, %r14
	jne	LBB0_3
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_RCV_HDR_TAIL,4,2               ## @RCV_HDR_TAIL
	.no_dead_strip	_check_packet_present
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_packet_present
_check_packet_present:                  ; @check_packet_present
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x20, [x19, #8]
	mov	x0, x19
	bl	_get_rcvhdrtail
	cmp	x20, x0
	b.ne	LBB0_4
LBB0_2:
	ldp	w1, w0, [x19, #16]
Lloh0:
	adrp	x8, _RCV_HDR_TAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCV_HDR_TAIL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_read_uctxt_csr
	ldr	x8, [x19, #8]
	cmp	x8, x0
	cset	w0, ne
	b	LBB0_5
LBB0_3:
	ldr	x20, [x19]
	mov	x0, x19
	bl	_get_rhf_addr
	bl	_rhf_to_cpu
	bl	_rhf_rcv_seq
	cmp	x20, x0
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RCV_HDR_TAIL,4,2               ; @RCV_HDR_TAIL
	.no_dead_strip	_check_packet_present
.subsections_via_symbols
