	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcf_em_tree_destroy            ## -- Begin function tcf_em_tree_destroy
	.p2align	4, 0x90
_tcf_em_tree_destroy:                   ## @tcf_em_tree_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	(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rsi, %r15
	cmpl	$0, 8(%rsi)
	jle	LBB0_11
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*%rax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_module_put
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	8(%r15), %ebx
	jge	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_tcf_em_get_match
	movq	%rax, %r12
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_tcf_em_is_simple
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_10:
	movq	(%r15), %rdi
LBB0_11:
	movl	$0, 8(%r15)
	callq	_kfree
	movq	$0, (%r15)
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcf_em_tree_destroy            ; -- Begin function tcf_em_tree_destroy
	.p2align	2
_tcf_em_tree_destroy:                   ; @tcf_em_tree_destroy
	.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
	mov	x20, x0
	ldr	x0, [x1]
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	w21, #0
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x22
	blr	x8
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_module_put
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w21, w21, #1
	ldr	w8, [x19, #8]
	cmp	w21, w8
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_tcf_em_get_match
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_tcf_em_is_simple
	cbnz	w0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x22, #8]
	bl	_kfree
	b	LBB0_4
LBB0_10:
	ldr	x0, [x19]
LBB0_11:
	str	wzr, [x19, #8]
	bl	_kfree
	str	xzr, [x19]
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
