	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Tree_PruneNodes_r              ## -- Begin function Tree_PruneNodes_r
	.p2align	4, 0x90
_Tree_PruneNodes_r:                     ## @Tree_PruneNodes_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_PLANENUM_LEAF@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_17
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %rdi
	callq	_Tree_PruneNodes_r
	movq	16(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_Tree_PruneNodes_r
	movq	_create_aas@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	movl	8(%rcx), %edx
	je	LBB0_4
## %bb.2:
	movq	_CONTENTS_LADDER@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%edx, %esi
	jne	LBB0_17
## %bb.3:
	movq	8(%rax), %rdi
	testl	%esi, 8(%rdi)
	jne	LBB0_17
LBB0_4:
	movq	_CONTENTS_SOLID@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	testl	%edx, %esi
	je	LBB0_17
## %bb.5:
	movq	8(%rax), %rdx
	testl	%esi, 8(%rdx)
	je	LBB0_17
## %bb.6:
	cmpq	$0, 32(%rbx)
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_Error
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
LBB0_8:
	cmpq	$0, 32(%rcx)
	jne	LBB0_10
## %bb.9:
	movq	8(%rax), %rax
	cmpq	$0, 32(%rax)
	je	LBB0_11
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	callq	_Error
LBB0_11:
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movl	(%r15), %eax
	movl	%eax, 8(%rbx)
	movl	$0, 12(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	callq	_Error
LBB0_13:
	movq	16(%rbx), %rax
	movq	8(%rax), %rcx
	movq	24(%rcx), %rcx
	movq	%rcx, 24(%rbx)
	movq	(%rax), %rdi
	movq	24(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rsi
	movq	(%rdx), %rdx
	movq	%rcx, (%rsi)
	movq	%rsi, %rcx
	testq	%rdx, %rdx
	jne	LBB0_14
## %bb.15:
	movq	%rsi, 24(%rbx)
	movq	(%rax), %rdi
LBB0_16:
	callq	_FreeMemory
	movq	16(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_FreeMemory
	movq	_c_pruned@GOTPCREL(%rip), %rax
	addl	$2, (%rax)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANENUM_LEAF,8,3              ## @PLANENUM_LEAF
	.comm	_create_aas,8,3                 ## @create_aas
	.comm	_CONTENTS_LADDER,4,2            ## @CONTENTS_LADDER
	.comm	_CONTENTS_SOLID,4,2             ## @CONTENTS_SOLID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"node->faces seperating CONTENTS_SOLID"

L_.str.1:                               ## @.str.1
	.asciz	"!node->faces with children"

L_.str.2:                               ## @.str.2
	.asciz	"PruneNodes: node->brushlist"

	.comm	_c_pruned,4,2                   ## @c_pruned
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Tree_PruneNodes_r              ; -- Begin function Tree_PruneNodes_r
	.p2align	2
_Tree_PruneNodes_r:                     ; @Tree_PruneNodes_r
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _PLANENUM_LEAF@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PLANENUM_LEAF@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x0, [x8]
	bl	_Tree_PruneNodes_r
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	bl	_Tree_PruneNodes_r
Lloh2:
	adrp	x8, _create_aas@GOTPAGE
Lloh3:
	ldr	x8, [x8, _create_aas@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x8]
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
	ldr	w10, [x9, #8]
	cbz	x11, LBB0_4
; %bb.2:
Lloh5:
	adrp	x11, _CONTENTS_LADDER@GOTPAGE
Lloh6:
	ldr	x11, [x11, _CONTENTS_LADDER@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_17
; %bb.3:
	ldr	x12, [x8, #8]
	ldr	w12, [x12, #8]
	tst	w12, w11
	b.ne	LBB0_17
LBB0_4:
Lloh8:
	adrp	x21, _CONTENTS_SOLID@GOTPAGE
Lloh9:
	ldr	x21, [x21, _CONTENTS_SOLID@GOTPAGEOFF]
	ldr	w11, [x21]
	tst	w11, w10
	b.eq	LBB0_17
; %bb.5:
	ldr	x10, [x8, #8]
	ldr	w10, [x10, #8]
	tst	w10, w11
	b.eq	LBB0_17
; %bb.6:
	ldr	x10, [x19, #32]
	cbz	x10, LBB0_8
; %bb.7:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
LBB0_8:
	ldr	x9, [x9, #32]
	cbnz	x9, LBB0_10
; %bb.9:
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_11
LBB0_10:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Error
LBB0_11:
	ldr	x8, [x20]
	str	x8, [x19]
	ldr	w8, [x21]
	stp	w8, wzr, [x19, #8]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_13
; %bb.12:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Error
LBB0_13:
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	ldr	x9, [x9, #24]
	str	x9, [x19, #24]
	ldr	x0, [x8]
	ldr	x10, [x0, #24]
	cbz	x10, LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x11, x10
	ldr	x10, [x10]
	str	x9, [x11]
	mov	x9, x11
	cbnz	x10, LBB0_14
; %bb.15:
	str	x11, [x19, #24]
	ldr	x0, [x8]
LBB0_16:
	bl	_FreeMemory
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	bl	_FreeMemory
Lloh16:
	adrp	x8, _c_pruned@GOTPAGE
Lloh17:
	ldr	x8, [x8, _c_pruned@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #2
	str	w9, [x8]
LBB0_17:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANENUM_LEAF,8,3              ; @PLANENUM_LEAF
	.comm	_create_aas,8,3                 ; @create_aas
	.comm	_CONTENTS_LADDER,4,2            ; @CONTENTS_LADDER
	.comm	_CONTENTS_SOLID,4,2             ; @CONTENTS_SOLID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"node->faces seperating CONTENTS_SOLID"

l_.str.1:                               ; @.str.1
	.asciz	"!node->faces with children"

l_.str.2:                               ; @.str.2
	.asciz	"PruneNodes: node->brushlist"

	.comm	_c_pruned,4,2                   ; @c_pruned
.subsections_via_symbols
