	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_policydb_destroy               ## -- Begin function policydb_destroy
	.p2align	4, 0x90
_policydb_destroy:                      ## @policydb_destroy
	.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
	movq	%rdi, %r14
	movq	_SYM_NUM@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_6
## %bb.1:
	movq	_destroy_f@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cond_resched
	movq	104(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	xorl	%edx, %edx
	callq	_hashtab_map
	movq	104(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_hashtab_destroy
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.3:
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	96(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_kfree
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	88(%r14), %rdi
	callq	_kfree
	movq	80(%r14), %rdi
	callq	_kfree
	movq	72(%r14), %rdi
	callq	_kfree
	movq	64(%r14), %rdi
	callq	_kfree
	leaq	56(%r14), %rdi
	callq	_avtab_destroy
	movq	_OCON_NUM@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_12
## %bb.7:
	xorl	%r12d, %r12d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	$0, (%rax,%r12,8)
	incq	%r12
	movslq	(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_12
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	xorl	%eax, %eax
	callq	_cond_resched
	movq	48(%r14), %rax
	movq	(%rax,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi), %rbx
	movl	%r12d, %esi
	callq	_ocontext_destroy
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	48(%r14), %rax
	jmp	LBB0_11
LBB0_12:
	movq	40(%r14), %r15
	testq	%r15, %r15
	je	LBB0_17
## %bb.13:
	movq	_OCON_FSUSE@GOTPCREL(%rip), %r12
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r15), %rbx
	movq	%r15, %rdi
	callq	_kfree
	movq	%rbx, %r15
	testq	%rbx, %rbx
	je	LBB0_17
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	xorl	%eax, %eax
	callq	_cond_resched
	movq	16(%r15), %rdi
	callq	_kfree
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi), %rbx
	movl	(%r12), %esi
	callq	_ocontext_destroy
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	jne	LBB0_15
	jmp	LBB0_16
LBB0_17:
	movq	$0, 40(%r14)
	movq	%r14, %rdi
	callq	_cond_policydb_destroy
	movq	32(%r14), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_cond_resched
	movq	%rbx, %rdi
	callq	_kfree
	movq	(%r15), %rax
	movq	%r15, %rbx
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_21
LBB0_18:
	xorl	%r15d, %r15d
LBB0_21:
	movq	%r15, %rdi
	callq	_kfree
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_cond_resched
	movq	%rbx, %rdi
	callq	_kfree
	movq	(%r15), %rax
	movq	%r15, %rbx
	testq	%rax, %rax
	jne	LBB0_24
	jmp	LBB0_25
LBB0_22:
	xorl	%r15d, %r15d
LBB0_25:
	movq	%r15, %rdi
	callq	_kfree
	movl	20(%r14), %edi
	movq	_range_tr_destroy@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_hashtab_map
	movl	20(%r14), %edi
	callq	_hashtab_destroy
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.26:
	cmpl	$0, 16(%r14)
	jle	LBB0_31
## %bb.27:
	xorl	%ebx, %ebx
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=1
	incl	%ebx
	movq	8(%r14), %rdi
	cmpl	16(%r14), %ebx
	jge	LBB0_31
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	callq	_flex_array_get
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	%rax, %rdi
	callq	_ebitmap_destroy
	jmp	LBB0_30
LBB0_31:
	callq	_flex_array_free
LBB0_32:
	leaq	4(%r14), %rdi
	callq	_ebitmap_destroy
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ebitmap_destroy                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SYM_NUM,4,2                    ## @SYM_NUM
	.comm	_destroy_f,8,3                  ## @destroy_f
	.comm	_OCON_NUM,4,2                   ## @OCON_NUM
	.comm	_OCON_FSUSE,4,2                 ## @OCON_FSUSE
	.comm	_range_tr_destroy,4,2           ## @range_tr_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_policydb_destroy               ; -- Begin function policydb_destroy
	.p2align	2
_policydb_destroy:                      ; @policydb_destroy
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _SYM_NUM@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SYM_NUM@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, #0
Lloh2:
	adrp	x22, _destroy_f@GOTPAGE
Lloh3:
	ldr	x22, [x22, _destroy_f@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_cond_resched
	ldr	x8, [x19, #104]
	lsl	x23, x21, #2
	ldr	w0, [x8, x23]
	ldr	x8, [x22]
	ldr	w1, [x8, x23]
	mov	x2, #0
	bl	_hashtab_map
	ldr	x8, [x19, #104]
	ldr	w0, [x8, x23]
	bl	_hashtab_destroy
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
; %bb.3:
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #96]
	ldr	x0, [x8, x21, lsl #3]
	bl	_kfree
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	x0, [x19, #88]
	bl	_kfree
	ldr	x0, [x19, #80]
	bl	_kfree
	ldr	x0, [x19, #72]
	bl	_kfree
	ldr	x0, [x19, #64]
	bl	_kfree
	add	x0, x19, #56
	bl	_avtab_destroy
Lloh4:
	adrp	x21, _OCON_NUM@GOTPAGE
Lloh5:
	ldr	x21, [x21, _OCON_NUM@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x20, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [x8, x20, lsl #3]
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	bl	_cond_resched
	ldr	x8, [x19, #48]
	ldr	x0, [x8, x20, lsl #3]
	cbz	x0, LBB0_8
LBB0_10:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x22, [x0]
	mov	x1, x20
	bl	_ocontext_destroy
	mov	x0, x22
	cbnz	x22, LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #48]
	b	LBB0_8
LBB0_12:
	ldr	x20, [x19, #40]
	cbz	x20, LBB0_17
; %bb.13:
Lloh6:
	adrp	x21, _OCON_FSUSE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _OCON_FSUSE@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x22, [x20]
	mov	x0, x20
	bl	_kfree
	mov	x20, x22
	cbz	x22, LBB0_17
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	bl	_cond_resched
	ldr	x0, [x20, #16]
	bl	_kfree
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_14
LBB0_16:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x22, [x0]
	ldr	w1, [x21]
	bl	_ocontext_destroy
	mov	x0, x22
	cbnz	x22, LBB0_16
	b	LBB0_14
LBB0_17:
	str	xzr, [x19, #40]
	mov	x0, x19
	bl	_cond_policydb_destroy
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_20
; %bb.18:
	mov	x21, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x20, x8
	bl	_cond_resched
	mov	x0, x21
	bl	_kfree
	ldr	x8, [x20]
	mov	x21, x20
	cbnz	x8, LBB0_19
	b	LBB0_21
LBB0_20:
	mov	x20, #0
LBB0_21:
	mov	x0, x20
	bl	_kfree
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_24
; %bb.22:
	mov	x21, #0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	mov	x20, x8
	bl	_cond_resched
	mov	x0, x21
	bl	_kfree
	ldr	x8, [x20]
	mov	x21, x20
	cbnz	x8, LBB0_23
	b	LBB0_25
LBB0_24:
	mov	x20, #0
LBB0_25:
	mov	x0, x20
	bl	_kfree
	ldr	w0, [x19, #20]
Lloh8:
	adrp	x8, _range_tr_destroy@GOTPAGE
Lloh9:
	ldr	x8, [x8, _range_tr_destroy@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_hashtab_map
	ldr	w0, [x19, #20]
	bl	_hashtab_destroy
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_32
; %bb.26:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.27:
	mov	w20, #0
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19, #16]
	ldr	x0, [x19, #8]
	cmp	w20, w8
	b.ge	LBB0_31
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x20
	bl	_flex_array_get
	cbz	x0, LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	bl	_ebitmap_destroy
	b	LBB0_28
LBB0_31:
	bl	_flex_array_free
LBB0_32:
	add	x0, x19, #4
	bl	_ebitmap_destroy
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ebitmap_destroy
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SYM_NUM,4,2                    ; @SYM_NUM
	.comm	_destroy_f,8,3                  ; @destroy_f
	.comm	_OCON_NUM,4,2                   ; @OCON_NUM
	.comm	_OCON_FSUSE,4,2                 ; @OCON_FSUSE
	.comm	_range_tr_destroy,4,2           ; @range_tr_destroy
.subsections_via_symbols
