	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snf_read
_snf_read:                              ## @snf_read
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	32(%rdi), %r15
	movl	(%r15), %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, %r14d
	jl	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_PACKET_COUNT_IS_UNLIMITED
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 24(%r13)
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r15), %edi
	movl	%r12d, %esi
	leaq	-56(%rbp), %rdx
	callq	_snf_ring_recv
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r12d, %r12d
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_1
	jmp	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-56(%rbp), %edx
	movl	(%r13), %r12d
	cmpl	%r12d, %edx
	cmovll	%edx, %r12d
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %esi
	movl	%r12d, %ecx
	callq	_bpf_filter
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edi
	movl	4(%r13), %esi
	callq	_snf_timestamp_to_timeval
	movl	%eax, -64(%rbp)
	movl	%r12d, -72(%rbp)
	movl	-56(%rbp), %eax
	movl	-52(%rbp), %edx
	movl	%eax, -68(%rbp)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	-72(%rbp), %rsi
	callq	*-80(%rbp)                      ## 8-byte Folded Reload
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	%r14d
	xorl	%r12d, %r12d
	jmp	LBB0_1
LBB0_4:
	testl	%r14d, %r14d
	jne	LBB0_6
## %bb.5:
	movq	$0, 24(%r13)
	movl	$-2, %r14d
	jmp	LBB0_6
LBB0_11:
	movl	16(%r13), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rcx
	movl	%eax, %edx
	callq	_pcap_fmt_errmsg_for_errno
	movl	$-1, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"snf_read"

	.no_dead_strip	_snf_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snf_read
_snf_read:                              ; @snf_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	mov	w19, #0
	ldr	x25, [x0, #32]
	ldr	w24, [x25]
Lloh0:
	adrp	x26, _EBUSY@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EBUSY@GOTPAGEOFF]
Lloh2:
	adrp	x27, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x27, [x27, _EAGAIN@GOTPAGEOFF]
Lloh4:
	adrp	x28, _EINTR@GOTPAGE
Lloh5:
	ldr	x28, [x28, _EINTR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w19, w23
	b.lt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_PACKET_COUNT_IS_UNLIMITED
	cbz	x0, LBB0_14
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x25, #4]
	mov	x2, sp
	mov	x1, x24
	bl	_snf_ring_recv
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x2, x0
	ldr	w8, [x26]
	ldr	w9, [x27]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w24, #0
	ldr	w8, [x28]
	cmp	w2, w8
	b.eq	LBB0_1
	b	LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w2, [sp]
	ldr	w8, [x20]
	cmp	w2, w8
	csel	w24, w2, w8, lt
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [sp, #4]
	mov	x3, x24
	bl	_bpf_filter
	cbz	x0, LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [sp, #8]
	ldr	w1, [x20, #4]
	bl	_snf_timestamp_to_timeval
	ldp	w8, w2, [sp]
	str	w24, [sp, #16]
	stp	w8, w0, [sp, #20]
	add	x1, sp, #16
	mov	x0, x21
	blr	x22
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w24, #0
	add	w19, w19, #1
	b	LBB0_1
LBB0_11:
	cbnz	w19, LBB0_14
; %bb.12:
	str	xzr, [x20, #24]
	mov	w19, #-2
	b	LBB0_14
LBB0_13:
	ldr	w0, [x20, #16]
Lloh6:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	bl	_pcap_fmt_errmsg_for_errno
	mov	w19, #-1
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"snf_read"

	.no_dead_strip	_snf_read
.subsections_via_symbols
