	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpcap_recv_msg_header
_rpcap_recv_msg_header:                 ## @rpcap_recv_msg_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %r8
	movq	%rsi, %rbx
	movq	_SOCK_RECEIVEALL_YES@GOTPCREL(%rip), %rax
	movq	_SOCK_EOF_IS_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$4, %edx
	callq	_sock_recv
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	callq	_ntohl
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_RECEIVEALL_YES,4,2        ## @SOCK_RECEIVEALL_YES
	.comm	_SOCK_EOF_IS_ERROR,4,2          ## @SOCK_EOF_IS_ERROR
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.no_dead_strip	_rpcap_recv_msg_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpcap_recv_msg_header
_rpcap_recv_msg_header:                 ; @rpcap_recv_msg_header
	.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	x4, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _SOCK_RECEIVEALL_YES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_RECEIVEALL_YES@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SOCK_EOF_IS_ERROR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SOCK_EOF_IS_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh6:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	mov	w2, #4
	bl	_sock_recv
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_ntohl
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_RECEIVEALL_YES,4,2        ; @SOCK_RECEIVEALL_YES
	.comm	_SOCK_EOF_IS_ERROR,4,2          ; @SOCK_EOF_IS_ERROR
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.no_dead_strip	_rpcap_recv_msg_header
.subsections_via_symbols
