	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpcap_recv
_rpcap_recv:                            ## @rpcap_recv
	.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
	cmpq	%rdx, (%rcx)
	jae	LBB0_2
## %bb.1:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r8, %rdi
	callq	_pcap_snprintf
	jmp	LBB0_4
LBB0_2:
	movq	%rcx, %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
	callq	_sock_recv
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	cltq
	subq	%rax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movl	$-1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Message payload is too short"

	.comm	_SOCK_RECEIVEALL_YES,4,2        ## @SOCK_RECEIVEALL_YES
	.comm	_SOCK_EOF_IS_ERROR,4,2          ## @SOCK_EOF_IS_ERROR
	.no_dead_strip	_rpcap_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpcap_recv
_rpcap_recv:                            ; @rpcap_recv
	.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
	ldr	x8, [x3]
	cmp	x8, x2
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x4
	bl	_pcap_snprintf
	mov	w0, #-1
	b	LBB0_4
LBB0_2:
	mov	x19, x3
Lloh5:
	adrp	x8, _SOCK_RECEIVEALL_YES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SOCK_RECEIVEALL_YES@GOTPAGEOFF]
Lloh7:
	adrp	x9, _SOCK_EOF_IS_ERROR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SOCK_EOF_IS_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh11:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	bl	_sock_recv
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	sub	x8, x9, w8, sxtw
	str	x8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Message payload is too short"

	.comm	_SOCK_RECEIVEALL_YES,4,2        ; @SOCK_RECEIVEALL_YES
	.comm	_SOCK_EOF_IS_ERROR,4,2          ; @SOCK_EOF_IS_ERROR
	.no_dead_strip	_rpcap_recv
.subsections_via_symbols
