	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FreeTree_r                     ## -- Begin function FreeTree_r
	.p2align	4, 0x90
_FreeTree_r:                            ## @FreeTree_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_PLANENUM_LEAF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	24(%rbx), %rax
	movq	(%rax), %rdi
	callq	_FreeTree_r
	movq	24(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_FreeTree_r
LBB0_2:
	movl	16(%rbx), %edi
	callq	_FreeBrushList
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_FreeBrush
LBB0_4:
	movq	_numthreads@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_c_nodes@GOTPCREL(%rip), %rax
	decl	(%rax)
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANENUM_LEAF,8,3              ## @PLANENUM_LEAF
	.comm	_numthreads,4,2                 ## @numthreads
	.comm	_c_nodes,4,2                    ## @c_nodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FreeTree_r                     ; -- Begin function FreeTree_r
	.p2align	2
_FreeTree_r:                            ; @FreeTree_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, #24]
	ldr	x0, [x8]
	bl	_FreeTree_r
	ldr	x8, [x19, #24]
	ldr	x0, [x8, #8]
	bl	_FreeTree_r
LBB0_2:
	ldr	w0, [x19, #16]
	bl	_FreeBrushList
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_FreeBrush
LBB0_4:
Lloh3:
	adrp	x8, _numthreads@GOTPAGE
Lloh4:
	ldr	x8, [x8, _numthreads@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _c_nodes@GOTPAGE
Lloh7:
	ldr	x8, [x8, _c_nodes@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.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
.subsections_via_symbols
