	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpcap_msg_err
_rpcap_msg_err:                         ## @rpcap_msg_err
	.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	%rdx, %r14
	movl	%esi, %r13d
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	cmpl	%r13d, %ebx
	jle	LBB0_4
## %bb.1:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.2:
	movq	_SOCK_RECEIVEALL_YES@GOTPCREL(%rip), %rdx
	movq	_SOCK_EOF_IS_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movq	%rax, %r12
	movq	%rax, %r8
	movl	%ebx, %r9d
	callq	_sock_recv
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.3:
	movslq	%r13d, %rax
	movb	$0, (%r14,%rax)
	jmp	LBB0_10
LBB0_4:
	leal	-1(%rbx), %edx
	movq	_SOCK_RECEIVEALL_YES@GOTPCREL(%rip), %rsi
	movq	_SOCK_EOF_IS_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movl	%r12d, %edi
	movq	%r14, %rsi
	movq	%rax, %r15
	movq	%rax, %r8
	movl	%ebx, %r9d
	callq	_sock_recv
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rsi
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.5:
	movb	$0, -1(%rsi,%r14)
	subl	(%rcx), %r13d
	incl	%r13d
	movl	%r12d, %edi
	movl	%r13d, %esi
	movq	%r14, %rdx
	callq	_rpcap_discard
	jmp	LBB0_10
LBB0_6:
	movb	$0, (%r14)
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r15, %rcx
	jmp	LBB0_9
LBB0_8:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rcx
LBB0_9:
	callq	_pcap_snprintf
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.comm	_SOCK_RECEIVEALL_YES,4,2        ## @SOCK_RECEIVEALL_YES
	.comm	_SOCK_EOF_IS_ERROR,4,2          ## @SOCK_EOF_IS_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read of error message from client failed: %s"

	.no_dead_strip	_rpcap_msg_err
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpcap_msg_err
_rpcap_msg_err:                         ; @rpcap_msg_err
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
	ldr	w5, [x23]
	mov	x9, x5
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x5, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	cmp	w5, w1
	b.le	LBB0_4
; %bb.1:
	cbz	w20, LBB0_6
; %bb.2:
Lloh7:
	adrp	x8, _SOCK_RECEIVEALL_YES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SOCK_RECEIVEALL_YES@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _SOCK_EOF_IS_ERROR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SOCK_EOF_IS_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	mov	x4, x21
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_sock_recv
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.3:
	strb	wzr, [x19, w20, sxtw]
	b	LBB0_10
LBB0_4:
Lloh13:
	adrp	x8, _SOCK_RECEIVEALL_YES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SOCK_RECEIVEALL_YES@GOTPAGEOFF]
	sub	w2, w5, #1
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _SOCK_EOF_IS_ERROR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SOCK_EOF_IS_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x22
	mov	x1, x19
	mov	x4, x21
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_sock_recv
	ldrsw	x1, [x23]
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:
	add	x8, x1, x19
	sturb	wzr, [x8, #-1]
	ldr	w8, [x23]
	sub	w8, w20, w8
	add	w1, w8, #1
	mov	x0, x22
	mov	x2, x19
	bl	_rpcap_discard
	b	LBB0_10
LBB0_6:
	strb	wzr, [x19]
	b	LBB0_10
LBB0_7:
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	b	LBB0_9
LBB0_8:
	ldr	w1, [x23]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
LBB0_9:
	mov	x3, x21
	bl	_pcap_snprintf
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.comm	_SOCK_RECEIVEALL_YES,4,2        ; @SOCK_RECEIVEALL_YES
	.comm	_SOCK_EOF_IS_ERROR,4,2          ; @SOCK_EOF_IS_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read of error message from client failed: %s"

	.no_dead_strip	_rpcap_msg_err
.subsections_via_symbols
