	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpcap_read_packet_msg
_rpcap_read_packet_msg:                 ## @rpcap_read_packet_msg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	8(%rsi), %rbx
	movl	(%rsi), %r13d
	movslq	%r13d, %rax
	cmpq	%rdx, %rax
	jae	LBB0_9
## %bb.1:
	movq	%rdx, %r15
	movl	%edi, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdx
	subq	%rax, %rdx
	movq	_SOCK_EOF_IS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SOCK_RECEIVEALL_NO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	16(%r14), %r8d
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_sock_recv
	cmpl	$-3, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%eax, %rcx
	leaq	(%rbx,%rcx,4), %rbx
	addl	%eax, %r13d
	movslq	%r13d, %rax
	cmpq	%r15, %rax
	jb	LBB0_2
LBB0_9:
	movq	%rbx, 8(%r14)
	movl	%r13d, (%r14)
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, 8(%r14)
	movl	%r13d, (%r14)
	movl	$-3, %eax
	jmp	LBB0_10
LBB0_7:
	movl	16(%r14), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_pcap_snprintf
	movl	$-1, %eax
	jmp	LBB0_10
LBB0_5:
	movq	%rbx, 8(%r14)
	movl	%r13d, (%r14)
	movl	$-1, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_RECEIVEALL_NO,4,2         ## @SOCK_RECEIVEALL_NO
	.comm	_SOCK_EOF_IS_ERROR,4,2          ## @SOCK_EOF_IS_ERROR
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The server terminated the connection."

	.no_dead_strip	_rpcap_read_packet_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpcap_read_packet_msg
_rpcap_read_packet_msg:                 ; @rpcap_read_packet_msg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	ldr	x20, [x1, #8]
	ldr	w23, [x1]
	mov	x8, x23
	sxtw	x8, w8
	cmp	x8, x2
	b.hs	LBB0_6
; %bb.1:
	mov	x21, x2
	mov	x22, x0
Lloh0:
	adrp	x25, _SOCK_RECEIVEALL_NO@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SOCK_RECEIVEALL_NO@GOTPAGEOFF]
Lloh2:
	adrp	x26, _SOCK_EOF_IS_ERROR@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SOCK_EOF_IS_ERROR@GOTPAGEOFF]
Lloh4:
	adrp	x24, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x2, x21, x8
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w3, w9, w8
	ldr	w4, [x19, #16]
	ldr	w5, [x24]
	mov	x0, x22
	mov	x1, x20
	bl	_sock_recv
	cmn	w0, #3
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, w0, sxtw #2
	add	w23, w0, w23
	sxtw	x8, w23
	cmp	x8, x21
	b.lo	LBB0_2
LBB0_6:
	mov	w0, #0
LBB0_7:
	str	x20, [x19, #8]
	str	w23, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w0, [x19, #16]
	ldr	w1, [x24]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_pcap_snprintf
	mov	w0, #-1
	b	LBB0_8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_RECEIVEALL_NO,4,2         ; @SOCK_RECEIVEALL_NO
	.comm	_SOCK_EOF_IS_ERROR,4,2          ; @SOCK_EOF_IS_ERROR
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The server terminated the connection."

	.no_dead_strip	_rpcap_read_packet_msg
.subsections_via_symbols
