	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BuildTreeThread                ## -- Begin function BuildTreeThread
	.p2align	4, 0x90
_BuildTreeThread:                       ## @BuildTreeThread
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_NextNodeFromList
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, %rbx
	movq	_numthreads@GOTPCREL(%rip), %r13
	movq	_cancelconversion@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_NextNodeFromList
	movq	%rax, %rbx
	testq	%rbx, %rbx
	je	LBB0_20
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1, (%r13)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_IncreaseNodeCounter
	leaq	24(%rbx), %r14
	movq	24(%rbx), %r12
	cmpl	$1, (%r13)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_WindingMemory
	movq	_c_nodememory@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movq	_c_brushmemory@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movq	_c_peak_totalbspmemory@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_c_peak_totalbspmemory@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_c_nodes@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	24(%rbx), %r14
	movq	24(%rbx), %r12
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_drawflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_DrawBrushList
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r15)
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_LeafNode
	movq	_CONTENTS_SOLID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_c_solidleafnodes@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_create_aas@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	callq	_FreeBrushList
	movq	$0, (%r14)
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_FreeBrush
	movq	$0, 16(%rbx)
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_SelectSplitSide
	testq	%rax, %rax
	je	LBB0_12
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 40(%rbx)
	movl	(%rax), %eax
	andl	$-2, %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	callq	_AllocNode
	movq	%rbx, 32(%rax)
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_AllocNode
	movq	%rbx, 32(%rax)
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%rbx), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rcx
	addq	$24, %rdx
	addq	$24, %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_SplitBrushList
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	24(%rcx), %rdi
	movq	24(%rax), %rsi
	callq	_CheckBrushLists
	movq	%r12, %rdi
	callq	_FreeBrushList
	movq	$0, 24(%rbx)
	movq	16(%rbx), %rdi
	movl	4(%rbx), %esi
	movq	8(%rbx), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rcx
	addq	$16, %rdx
	addq	$16, %rcx
	callq	_SplitBrush
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	cmpq	$0, 16(%rcx)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_Error
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_FreeBrush
	movq	$0, 16(%rbx)
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_AddNodeToList
	movq	8(%rbx), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_20:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RemoveThread                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_numthreads,4,2                 ## @numthreads
	.comm	_c_nodememory,4,2               ## @c_nodememory
	.comm	_c_brushmemory,4,2              ## @c_brushmemory
	.comm	_c_peak_totalbspmemory,4,2      ## @c_peak_totalbspmemory
	.comm	_c_nodes,4,2                    ## @c_nodes
	.comm	_drawflag,8,3                   ## @drawflag
	.comm	_cancelconversion,8,3           ## @cancelconversion
	.comm	_CONTENTS_SOLID,4,2             ## @CONTENTS_SOLID
	.comm	_c_solidleafnodes,4,2           ## @c_solidleafnodes
	.comm	_create_aas,8,3                 ## @create_aas
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"child without volume brush"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BuildTreeThread                ; -- Begin function BuildTreeThread
	.p2align	2
_BuildTreeThread:                       ; @BuildTreeThread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	bl	_NextNodeFromList
	cbz	x0, LBB0_25
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x23, _numthreads@GOTPAGE
Lloh1:
	ldr	x23, [x23, _numthreads@GOTPAGEOFF]
Lloh2:
	adrp	x27, _c_nodes@GOTPAGE
Lloh3:
	ldr	x27, [x27, _c_nodes@GOTPAGEOFF]
Lloh4:
	adrp	x28, _drawflag@GOTPAGE
Lloh5:
	ldr	x28, [x28, _drawflag@GOTPAGEOFF]
Lloh6:
	adrp	x21, _cancelconversion@GOTPAGE
Lloh7:
	ldr	x21, [x21, _cancelconversion@GOTPAGEOFF]
Lloh8:
	adrp	x19, _CONTENTS_SOLID@GOTPAGE
Lloh9:
	ldr	x19, [x19, _CONTENTS_SOLID@GOTPAGEOFF]
Lloh10:
	adrp	x24, _create_aas@GOTPAGE
Lloh11:
	ldr	x24, [x24, _create_aas@GOTPAGEOFF]
Lloh12:
	adrp	x25, _c_solidleafnodes@GOTPAGE
Lloh13:
	ldr	x25, [x25, _c_solidleafnodes@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_NextNodeFromList
	mov	x20, x0
	cbz	x0, LBB0_25
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_IncreaseNodeCounter
	ldr	w8, [x23]
	mov	x26, x20
	ldr	x22, [x26, #24]!
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_WindingMemory
Lloh14:
	adrp	x8, _c_nodememory@GOTPAGE
Lloh15:
	ldr	x8, [x8, _c_nodememory@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _c_brushmemory@GOTPAGE
Lloh18:
	ldr	x9, [x9, _c_brushmemory@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	add	w8, w8, w0
	add	w8, w8, w9
Lloh20:
	adrp	x9, _c_peak_totalbspmemory@GOTPAGE
Lloh21:
	ldr	x9, [x9, _c_peak_totalbspmemory@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh23:
	adrp	x9, _c_peak_totalbspmemory@GOTPAGE
Lloh24:
	ldr	x9, [x9, _c_peak_totalbspmemory@GOTPAGEOFF]
Lloh25:
	str	w8, [x9]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	add	w8, w8, #1
	str	w8, [x27]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x20
	ldr	x22, [x26, #24]!
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x28]
	cbz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_DrawBrushList
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_LeafNode
	ldr	w8, [x20]
	ldr	w9, [x19]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	add	w8, w8, #1
	str	w8, [x25]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x26]
	bl	_FreeBrushList
	str	xzr, [x26]
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_FreeBrush
	str	xzr, [x20, #16]
	b	LBB0_2
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_SelectSplitSide
	cbz	x0, LBB0_12
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	str	x0, [x20, #40]
	ldr	w8, [x0]
	and	w8, w8, #0xfffffffe
	str	w8, [x20, #4]
	bl	_AllocNode
	str	x20, [x0, #32]
	ldr	x8, [x20, #8]
	str	x0, [x8]
	bl	_AllocNode
	str	x20, [x0, #32]
	ldr	x8, [x20, #8]
	str	x0, [x8, #8]
	ldr	x8, [x20, #8]
	ldp	x9, x8, [x8]
	add	x2, x9, #24
	add	x3, x8, #24
	mov	x0, x22
	mov	x1, x20
	bl	_SplitBrushList
	ldr	x8, [x20, #8]
	ldp	x9, x8, [x8]
	ldr	x0, [x9, #24]
	ldr	x1, [x8, #24]
	bl	_CheckBrushLists
	mov	x0, x22
	bl	_FreeBrushList
	str	xzr, [x20, #24]
	ldr	w1, [x20, #4]
	ldp	x8, x0, [x20, #8]
	ldp	x9, x8, [x8]
	add	x2, x9, #16
	add	x3, x8, #16
	bl	_SplitBrush
	ldr	x8, [x20, #8]
	ldr	x9, [x8]
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_FreeBrush
	str	xzr, [x20, #16]
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, #8]
	bl	_AddNodeToList
	ldr	x8, [x20, #8]
	ldr	x20, [x8]
	cbnz	x20, LBB0_3
LBB0_25:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_RemoveThread
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_numthreads,4,2                 ; @numthreads
	.comm	_c_nodememory,4,2               ; @c_nodememory
	.comm	_c_brushmemory,4,2              ; @c_brushmemory
	.comm	_c_peak_totalbspmemory,4,2      ; @c_peak_totalbspmemory
	.comm	_c_nodes,4,2                    ; @c_nodes
	.comm	_drawflag,8,3                   ; @drawflag
	.comm	_cancelconversion,8,3           ; @cancelconversion
	.comm	_CONTENTS_SOLID,4,2             ; @CONTENTS_SOLID
	.comm	_c_solidleafnodes,4,2           ; @c_solidleafnodes
	.comm	_create_aas,8,3                 ; @create_aas
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"child without volume brush"

.subsections_via_symbols
