	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_read_snoop
_pcap_read_snoop:                       ## @pcap_read_snoop
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	56(%rdi), %r13
	movq	_errno@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 48(%rbx)
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	40(%rbx), %edi
	movq	24(%rbx), %rsi
	movl	36(%rbx), %edx
	callq	_read
	testl	%eax, %eax
	jns	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edx
	cmpl	$129, %edx
	je	LBB0_1
## %bb.5:
	cmpl	$128, %edx
	jne	LBB0_6
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_2:
	movq	$0, 48(%rbx)
	movl	$-2, %eax
	jmp	LBB0_14
LBB0_7:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rcx
	movq	24(%rbx), %r15
	movl	(%r15), %edx
	movslq	(%rbx), %r12
	movq	%r12, %rsi
	addq	$12, %rsi
	leal	65536(%rdx), %r13d
	cmpl	%r12d, %edx
	cmovgel	%edx, %r13d
	movl	%eax, %eax
	cmpq	%rax, %rsi
	cmovnel	%edx, %r13d
	cmpl	%r12d, %r13d
	cmovll	%r13d, %r12d
	movslq	4(%rbx), %rax
	leaq	(%r15,%rax,4), %r14
	addq	$12, %r14
	movq	_DLT_NULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_10
## %bb.8:
	cmpw	$0, 8(%r14)
	jne	LBB0_10
## %bb.9:
	movswl	2(%r14), %eax
	movl	%eax, (%r14)
LBB0_10:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	movq	%r14, %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_bpf_filter
	testq	%rax, %rax
	je	LBB0_13
LBB0_12:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	movl	8(%r15), %eax
	movl	%eax, -44(%rbp)
	movl	4(%r15), %eax
	movl	%eax, -48(%rbp)
	movl	%r13d, -56(%rbp)
	movl	%r12d, -52(%rbp)
	leaq	-56(%rbp), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	*-80(%rbp)                      ## 8-byte Folded Reload
	movl	$1, %eax
	jmp	LBB0_14
LBB0_6:
	movl	32(%rbx), %edi
	leaq	L_.str(%rip), %rcx
	movl	$4, %esi
	callq	_pcap_fmt_errmsg_for_errno
	movl	$-1, %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read"

	.comm	_DLT_NULL,8,3                   ## @DLT_NULL
	.no_dead_strip	_pcap_read_snoop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_read_snoop
_pcap_read_snoop:                       ; @pcap_read_snoop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x19, x2
	mov	x21, x0
	ldr	x25, [x0, #56]
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #48]
	cbnz	x8, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x21, #24]
	ldp	w2, w0, [x21, #36]
	bl	_read
	tbz	w0, #31, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w2, [x22]
	cmp	w2, #129
	b.eq	LBB0_1
; %bb.4:
	cmp	w2, #128
	b.ne	LBB0_12
; %bb.5:
	mov	w0, #0
	b	LBB0_13
LBB0_6:
	str	xzr, [x21, #48]
	mov	w0, #-2
	b	LBB0_13
LBB0_7:
	ldr	x26, [x21, #24]
	ldr	w8, [x26]
	mov	w9, w0
	ldpsw	x10, x11, [x21]
	add	x12, x10, #12
	cmp	w8, w10
	ccmp	x12, x9, #0, lt
	add	w9, w8, #16, lsl #12            ; =65536
	csel	w23, w9, w8, eq
	cmp	w23, w10
	csel	w24, w23, w10, lt
	add	x8, x26, x11, lsl #2
	add	x22, x8, #12
	ldr	x8, [x21, #8]
Lloh2:
	adrp	x9, _DLT_NULL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DLT_NULL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldrh	w8, [x22, #8]
	cbz	w8, LBB0_14
LBB0_9:
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_11
LBB0_10:
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_bpf_filter
	cbz	x0, LBB0_13
LBB0_11:
	ldr	w8, [x25]
	add	w8, w8, #1
	str	w8, [x25]
	ldur	d0, [x26, #4]
	str	d0, [sp, #8]
	stp	w23, w24, [sp]
	mov	x1, sp
	mov	x0, x20
	mov	x2, x22
	blr	x19
	mov	w0, #1
	b	LBB0_13
LBB0_12:
	ldr	w0, [x21, #32]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #4
	bl	_pcap_fmt_errmsg_for_errno
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	ldrsh	w8, [x22, #2]
	str	w8, [x22]
	ldr	x0, [x21, #16]
	cbnz	x0, LBB0_10
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read"

	.comm	_DLT_NULL,8,3                   ; @DLT_NULL
	.no_dead_strip	_pcap_read_snoop
.subsections_via_symbols
