	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfi_cleanup_vnet               ## -- Begin function pfi_cleanup_vnet
	.p2align	4, 0x90
_pfi_cleanup_vnet:                      ## @pfi_cleanup_vnet
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_PF_RULES_WASSERT
	movq	_V_pfi_all@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_pfi_ifhead@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_V_pfi_ifs@GOTPCREL(%rip), %rsi
	callq	_RB_MIN
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	_V_pfi_ifs@GOTPCREL(%rip), %r14
	movq	_PFI_MTYPE@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_free
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_RB_MIN
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_RB_REMOVE
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%rax)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_if_rele
	movq	(%rbx), %rax
	movq	$0, (%rax)
	jmp	LBB0_6
LBB0_7:
	movq	_pfi_unlnkdkifs_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_V_pfi_unlinked_kifs@GOTPCREL(%rip), %rdi
	callq	_LIST_FIRST
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %rbx
	movq	_pfik_list@GOTPCREL(%rip), %r15
	movq	_PFI_MTYPE@GOTPCREL(%rip), %r12
	movq	_V_pfi_unlinked_kifs@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_LIST_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
LBB0_10:
	movq	_pfi_unlnkdkifs_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	_V_pfi_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_PFI_MTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V_pfi_all,8,3                  ## @V_pfi_all
	.comm	_pfi_ifhead,4,2                 ## @pfi_ifhead
	.comm	_V_pfi_ifs,4,2                  ## @V_pfi_ifs
	.comm	_PFI_MTYPE,4,2                  ## @PFI_MTYPE
	.comm	_pfi_unlnkdkifs_mtx,4,2         ## @pfi_unlnkdkifs_mtx
	.comm	_V_pfi_unlinked_kifs,4,2        ## @V_pfi_unlinked_kifs
	.comm	_pfik_list,4,2                  ## @pfik_list
	.comm	_V_pfi_buffer,8,3               ## @V_pfi_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfi_cleanup_vnet               ; -- Begin function pfi_cleanup_vnet
	.p2align	2
_pfi_cleanup_vnet:                      ; @pfi_cleanup_vnet
	.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
	bl	_PF_RULES_WASSERT
Lloh0:
	adrp	x8, _V_pfi_all@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_pfi_all@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x22, _pfi_ifhead@GOTPAGE
Lloh4:
	ldr	x22, [x22, _pfi_ifhead@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh5:
	adrp	x1, _V_pfi_ifs@GOTPAGE
Lloh6:
	ldr	x1, [x1, _V_pfi_ifs@GOTPAGEOFF]
	bl	_RB_MIN
Lloh7:
	adrp	x21, _PFI_MTYPE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _PFI_MTYPE@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
Lloh9:
	adrp	x19, _V_pfi_ifs@GOTPAGE
Lloh10:
	ldr	x19, [x19, _V_pfi_ifs@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_free
	ldr	w0, [x22]
	mov	x1, x19
	bl	_RB_MIN
	mov	x20, x0
	cbz	x0, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, x20
	bl	_RB_REMOVE
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x8]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20]
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_if_rele
	ldr	x8, [x20]
	str	xzr, [x8]
	b	LBB0_2
LBB0_7:
Lloh11:
	adrp	x0, _pfi_unlnkdkifs_mtx@GOTPAGE
Lloh12:
	ldr	x0, [x0, _pfi_unlnkdkifs_mtx@GOTPAGEOFF]
	bl	_mtx_lock
Lloh13:
	adrp	x0, _V_pfi_unlinked_kifs@GOTPAGE
Lloh14:
	ldr	x0, [x0, _V_pfi_unlinked_kifs@GOTPAGEOFF]
	bl	_LIST_FIRST
	cbz	x0, LBB0_10
; %bb.8:
	mov	x20, x0
Lloh15:
	adrp	x22, _pfik_list@GOTPAGE
Lloh16:
	ldr	x22, [x22, _pfik_list@GOTPAGEOFF]
Lloh17:
	adrp	x19, _V_pfi_unlinked_kifs@GOTPAGE
Lloh18:
	ldr	x19, [x19, _V_pfi_unlinked_kifs@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_LIST_REMOVE
	ldr	w1, [x21]
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_LIST_FIRST
	mov	x20, x0
	cbnz	x0, LBB0_9
LBB0_10:
Lloh19:
	adrp	x0, _pfi_unlnkdkifs_mtx@GOTPAGE
Lloh20:
	ldr	x0, [x0, _pfi_unlnkdkifs_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
Lloh21:
	adrp	x8, _V_pfi_buffer@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V_pfi_buffer@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
	ldr	w1, [x21]
	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
	b	_free
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_V_pfi_all,8,3                  ; @V_pfi_all
	.comm	_pfi_ifhead,4,2                 ; @pfi_ifhead
	.comm	_V_pfi_ifs,4,2                  ; @V_pfi_ifs
	.comm	_PFI_MTYPE,4,2                  ; @PFI_MTYPE
	.comm	_pfi_unlnkdkifs_mtx,4,2         ; @pfi_unlnkdkifs_mtx
	.comm	_V_pfi_unlinked_kifs,4,2        ; @V_pfi_unlinked_kifs
	.comm	_pfik_list,4,2                  ; @pfik_list
	.comm	_V_pfi_buffer,8,3               ; @V_pfi_buffer
.subsections_via_symbols
