	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_add_if_npf
_pcap_add_if_npf:                       ## @pcap_add_if_npf
	.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	%r8, %r14
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_NETWORK_ADDRESSES@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movl	%r13d, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r13, -56(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_add_dev
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_PacketGetNetInfoEx
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rcx
	subq	$1, %rcx
	movq	%rcx, -56(%rbp)
	jb	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rcx,%rcx,2), %rax
	leaq	(%rbx,%rax,4), %rsi
	addq	$8, %rsi
	leaq	(%rbx,%rax,4), %r9
	leaq	4(%rbx,%rax,4), %rcx
	movq	%r15, %rdi
	movl	$4, %edx
	movl	$4, %r8d
	pushq	%r14
	pushq	$0
	pushq	$0
	pushq	$4
	callq	_add_addr_to_dev
	addq	$32, %rsp
	cmpl	$-1, %eax
	jne	LBB0_2
LBB0_4:
	movl	$-1, %eax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NETWORK_ADDRESSES,4,2      ## @MAX_NETWORK_ADDRESSES
	.no_dead_strip	_pcap_add_if_npf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_add_if_npf
_pcap_add_if_npf:                       ; @pcap_add_if_npf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x19, x4
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MAX_NETWORK_ADDRESSES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_NETWORK_ADDRESSES@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	and	x9, x8, #0xffffffff
	add	x9, x9, w8, uxtw #1
	lsl	x9, x9, #2
	add	x10, x9, #15
	and	x12, x10, #0x1ffffffff0
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x12
	mov	sp, x20
	stur	x8, [x29, #-48]
	bl	_add_dev
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	sub	x2, x29, #48
	mov	x0, x22
	mov	x1, x20
	bl	_PacketGetNetInfoEx
	cbz	w0, LBB0_8
; %bb.2:
	ldur	x9, [x29, #-48]
	sub	x8, x9, #1
	stur	x8, [x29, #-48]
	cbz	x9, LBB0_7
; %bb.3:
	mov	w22, #12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	madd	x5, x8, x22, x20
	add	x1, x5, #8
	add	x3, x5, #4
	sub	sp, sp, #16
	str	x19, [sp, #8]
	str	wzr, [sp]
	mov	x0, x21
	mov	w2, #4
	mov	w4, #4
	mov	w6, #4
	mov	x7, #0
	bl	_add_addr_to_dev
	add	sp, sp, #16
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x9, [x29, #-48]
	sub	x8, x9, #1
	stur	x8, [x29, #-48]
	cbnz	x9, LBB0_4
	b	LBB0_8
LBB0_6:
	mov	w0, #-1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NETWORK_ADDRESSES,4,2      ; @MAX_NETWORK_ADDRESSES
	.no_dead_strip	_pcap_add_if_npf
.subsections_via_symbols
