	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_read_nit
_pcap_read_nit:                         ## @pcap_read_nit
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	48(%rdi), %r13
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movq	8(%rbx), %r14
	testl	%eax, %eax
	jle	LBB0_7
LBB0_8:
	cltq
	leaq	(%r14,%rax,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r14
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jae	LBB0_23
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rbx)
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r14), %ecx
	cmpl	$132, %ecx
	jne	LBB0_11
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	incl	(%r13)
	leaq	80(%r14), %r15
	movslq	4(%r14), %rax
	addq	$23, %rax
	movabsq	$4611686018427387900, %rcx      ## imm = 0x3FFFFFFFFFFFFFFC
	andq	%rcx, %rax
	leaq	(%r14,%rax,4), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edx
	movl	4(%rbx), %r12d
	movl	16(%rbx), %edi
	cmpl	%r12d, %edx
	cmovll	%edx, %r12d
	movq	%r15, %rsi
	movl	%r12d, %ecx
	callq	_bpf_filter
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	12(%r14), %eax
	movl	%eax, -88(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -96(%rbp)
	movl	%r12d, -92(%rbp)
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	leaq	-96(%rbp), %rsi
	movq	%r15, %rdx
	callq	*-104(%rbp)                     ## 8-byte Folded Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	cmpl	%edi, %eax
	jl	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	callq	_PACKET_COUNT_IS_UNLIMITED
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	subq	%rdx, %rcx
	shrq	$2, %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	%rdx, 8(%rax)
	jmp	LBB0_24
LBB0_1:
	movl	44(%rbx), %edi
	movq	32(%rbx), %rsi
	movl	40(%rbx), %edx
	callq	_read
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movq	32(%rbx), %r14
	testl	%eax, %eax
	jg	LBB0_8
LBB0_7:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_23:
	movl	$0, (%rbx)
LBB0_24:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_25:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leal	-128(%rcx), %eax
	cmpl	$3, %eax
	ja	LBB0_17
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$128, %ecx
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	16(%r14), %eax
	movl	%eax, 4(%r13)
	jmp	LBB0_12
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdx
	je	LBB0_25
## %bb.3:
	movl	20(%rbx), %edi
	leaq	L_.str(%rip), %rcx
	movl	$4, %esi
	callq	_pcap_fmt_errmsg_for_errno
	movl	$-1, %eax
	jmp	LBB0_25
LBB0_14:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	subq	%r14, %rcx
	shrq	$2, %rcx
	movl	%ecx, (%rbx)
	movq	%r14, 8(%rbx)
	jmp	LBB0_25
LBB0_17:
	movl	20(%rbx), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_pcap_snprintf
	movl	$-1, %eax
	jmp	LBB0_25
LBB0_15:
	movq	$0, 24(%rbx)
	movl	$-2, %eax
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcap_read"

L_.str.1:                               ## @.str.1
	.asciz	"bad nit state %d"

	.no_dead_strip	_pcap_read_nit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_read_nit
_pcap_read_nit:                         ; @pcap_read_nit
	.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
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x26, [x0, #48]
	ldr	w0, [x0]
	cbz	w0, LBB0_10
; %bb.1:
	ldr	x27, [x19, #8]
	cmp	w0, #1
	b.lt	LBB0_12
LBB0_2:
	mov	w20, #0
	add	x28, x27, w0, sxtw #2
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x21
	cmp	x21, x28
	b.hs	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x27]
	cmp	w3, #132
	b.ne	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x27, #80
	ldr	w8, [x26]
	add	w8, w8, #1
	str	w8, [x26]
	ldp	w8, w2, [x27, #4]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	x8, x8, #23
	and	x8, x8, #0x3ffffffffffffffc
	add	x21, x27, x8, lsl #2
	ldr	w8, [x19, #4]
	cmp	w2, w8
	csel	w25, w2, w8, lt
	ldr	w0, [x19, #16]
	mov	x1, x24
	mov	x3, x25
	bl	_bpf_filter
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w9, w8, [x27, #8]
	stp	w25, w8, [sp, #20]
	str	w9, [sp, #16]
	add	x1, sp, #16
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x24
	blr	x22
	add	w20, w20, #1
	cmp	w20, w23
	b.lt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_PACKET_COUNT_IS_UNLIMITED
	cbnz	w0, LBB0_3
; %bb.9:
	sub	x8, x28, x21
	lsr	x8, x8, #2
	str	w8, [x19]
	str	x21, [x19, #8]
	b	LBB0_14
LBB0_10:
	ldr	x1, [x19, #32]
	ldp	w2, w0, [x19, #40]
	bl	_read
	tbnz	w0, #31, LBB0_18
; %bb.11:
	ldr	x27, [x19, #32]
	cmp	w0, #1
	b.ge	LBB0_2
LBB0_12:
	mov	w20, #0
LBB0_13:
	str	wzr, [x19]
LBB0_14:
	mov	x0, x20
	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
LBB0_15:
	sub	w8, w3, #128
	cmp	w8, #3
	b.hi	LBB0_22
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	cmp	w3, #128
	b.eq	LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x27, #16]
	str	w8, [x26, #4]
	b	LBB0_16
LBB0_18:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
Lloh3:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_23
; %bb.19:
	mov	w20, #0
	b	LBB0_14
LBB0_20:
	cbz	w20, LBB0_24
; %bb.21:
	sub	x8, x28, x27
	lsr	x8, x8, #2
	str	w8, [x19]
	str	x27, [x19, #8]
	b	LBB0_14
LBB0_22:
	ldr	w0, [x19, #20]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_pcap_snprintf
	mov	w20, #-1
	b	LBB0_14
LBB0_23:
	ldr	w0, [x19, #20]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #4
	bl	_pcap_fmt_errmsg_for_errno
	mov	w20, #-1
	b	LBB0_14
LBB0_24:
	str	xzr, [x19, #24]
	mov	w20, #-2
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcap_read"

l_.str.1:                               ; @.str.1
	.asciz	"bad nit state %d"

	.no_dead_strip	_pcap_read_nit
.subsections_via_symbols
