	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfr_destroy_ktable
_pfr_destroy_ktable:                    ## @pfr_destroy_ktable
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	leaq	-48(%rbp), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_pfr_enqueue_addrs
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_pfr_clean_node_mask
	movq	%r15, %rdi
	callq	_pfr_destroy_kentries
LBB0_2:
	cmpq	$0, 48(%r12)
	je	LBB0_4
## %bb.3:
	leaq	48(%r12), %rdi
	callq	_rn_detachhead
LBB0_4:
	cmpq	$0, 40(%r12)
	je	LBB0_6
## %bb.5:
	leaq	40(%r12), %rdi
	callq	_rn_detachhead
LBB0_6:
	movq	32(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	movl	%r14d, %esi
	callq	_pfr_destroy_ktable
LBB0_8:
	movq	24(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	decl	(%rdi)
	callq	_pf_remove_if_empty_ruleset
LBB0_10:
	movq	_PFR_DIR_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_17
## %bb.11:
	movq	_PFR_OP_TABLE_MAX@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r13
	movslq	%ecx, %rdx
	cmpq	%rdx, %r13
	jge	LBB0_17
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	testl	%eax, %eax
	jle	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_counter_u64_free
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_counter_u64_free
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r14), %ecx
	jmp	LBB0_16
LBB0_17:
	movl	4(%r12), %edi
	callq	_counter_u64_free
	movl	(%r12), %edi
	callq	_counter_u64_free
	movq	_M_PFTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_free
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PFR_DIR_MAX,4,2                ## @PFR_DIR_MAX
	.comm	_PFR_OP_TABLE_MAX,4,2           ## @PFR_OP_TABLE_MAX
	.comm	_M_PFTABLE,4,2                  ## @M_PFTABLE
	.no_dead_strip	_pfr_destroy_ktable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfr_destroy_ktable
_pfr_destroy_ktable:                    ; @pfr_destroy_ktable
	.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, x1
	mov	x19, x0
	cbz	w1, LBB0_2
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	bl	_pfr_enqueue_addrs
	add	x1, sp, #8
	mov	x0, x19
	bl	_pfr_clean_node_mask
	add	x0, sp, #8
	bl	_pfr_destroy_kentries
LBB0_2:
	mov	x0, x19
	ldr	x8, [x0, #48]!
	cbz	x8, LBB0_4
; %bb.3:
	bl	_rn_detachhead
LBB0_4:
	mov	x0, x19
	ldr	x8, [x0, #40]!
	cbz	x8, LBB0_6
; %bb.5:
	bl	_rn_detachhead
LBB0_6:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_8
; %bb.7:
	mov	x1, x20
	bl	_pfr_destroy_ktable
LBB0_8:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w8, [x0]
	sub	w8, w8, #1
	str	w8, [x0]
	bl	_pf_remove_if_empty_ruleset
LBB0_10:
Lloh0:
	adrp	x20, _PFR_DIR_MAX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PFR_DIR_MAX@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.11:
	mov	x21, #0
Lloh2:
	adrp	x22, _PFR_OP_TABLE_MAX@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PFR_OP_TABLE_MAX@GOTPAGEOFF]
	ldr	w8, [x22]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, #1
	cmp	x21, w9, sxtw
	b.ge	LBB0_17
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x23, #0
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	lsl	x24, x21, #3
	ldr	x8, [x8, x24]
	lsl	x25, x23, #2
	ldr	w0, [x8, x25]
	bl	_counter_u64_free
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x24]
	ldr	w0, [x8, x25]
	bl	_counter_u64_free
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w9, [x20]
	b	LBB0_12
LBB0_17:
	ldr	w0, [x19, #4]
	bl	_counter_u64_free
	ldr	w0, [x19]
	bl	_counter_u64_free
Lloh4:
	adrp	x8, _M_PFTABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_PFTABLE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_free
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PFR_DIR_MAX,4,2                ; @PFR_DIR_MAX
	.comm	_PFR_OP_TABLE_MAX,4,2           ; @PFR_OP_TABLE_MAX
	.comm	_M_PFTABLE,4,2                  ; @M_PFTABLE
	.no_dead_strip	_pfr_destroy_ktable
.subsections_via_symbols
