	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Tree_Free_r                    ## -- Begin function Tree_Free_r
	.p2align	4, 0x90
_Tree_Free_r:                           ## @Tree_Free_r
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_PLANENUM_LEAF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	32(%r14), %rax
	movq	(%rax), %rdi
	callq	_Tree_Free_r
	movq	32(%r14), %rax
	movq	8(%rax), %rdi
	callq	_Tree_Free_r
LBB0_2:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rdi), %rbx
	callq	_FreeBrush
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_4:
	movq	$0, 16(%r14)
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_FreeBrush
LBB0_6:
	movq	_numthreads@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	_c_nodes@GOTPCREL(%rip), %rax
	decl	(%rax)
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_FreeMemory                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANENUM_LEAF,8,3              ## @PLANENUM_LEAF
	.comm	_numthreads,4,2                 ## @numthreads
	.comm	_c_nodes,4,2                    ## @c_nodes
	.comm	_freedtreemem,4,2               ## @freedtreemem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Tree_Free_r                    ; -- Begin function Tree_Free_r
	.p2align	2
_Tree_Free_r:                           ; @Tree_Free_r
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PLANENUM_LEAF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PLANENUM_LEAF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	x0, [x8]
	bl	_Tree_Free_r
	ldr	x8, [x19, #32]
	ldr	x0, [x8, #8]
	bl	_Tree_Free_r
LBB0_2:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x0, #24]
	bl	_FreeBrush
	mov	x0, x20
	cbnz	x20, LBB0_3
LBB0_4:
	str	xzr, [x19, #16]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_FreeBrush
LBB0_6:
Lloh3:
	adrp	x8, _numthreads@GOTPAGE
Lloh4:
	ldr	x8, [x8, _numthreads@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _c_nodes@GOTPAGE
Lloh7:
	ldr	x8, [x8, _c_nodes@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_FreeMemory
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANENUM_LEAF,8,3              ; @PLANENUM_LEAF
	.comm	_numthreads,4,2                 ; @numthreads
	.comm	_c_nodes,4,2                    ; @c_nodes
	.comm	_freedtreemem,4,2               ; @freedtreemem
.subsections_via_symbols
