	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FilterStructuralBrushesIntoTree ## -- Begin function FilterStructuralBrushesIntoTree
	.p2align	4, 0x90
_FilterStructuralBrushesIntoTree:       ## @FilterStructuralBrushesIntoTree
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_qprintf
	movq	(%rbx), %rbx
	movl	$0, %r15d
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.1:
	xorl	%r15d, %r15d
	movq	_qtrue@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpq	$0, 16(%rbx)
	jne	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	movq	%rbx, %rdi
	callq	_CopyBrush
	movl	(%r14), %esi
	movq	%rax, %rdi
	callq	_FilterBrushIntoTree_r
	addl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %r8
	cmpl	$1, %ecx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %cl
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	shlq	$4, %rdx
	cmpq	$0, 8(%r8,%rdx)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	movl	%eax, (%r8,%rdx)
	jmp	LBB0_16
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %esi
	andl	$-2, %esi
	leaq	24(%r8), %rdi
	xorl	%edx, %edx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	addq	$2, %rdx
	addq	$32, %rdi
	cmpq	%rdx, %rsi
	je	LBB0_13
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, -16(%rdi)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	(%r13), %eax
	movl	%eax, -24(%rdi)
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	cmpq	$0, (%rdi)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	(%r13), %eax
	movl	%eax, -8(%rdi)
	jmp	LBB0_12
LBB0_17:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_qprintf
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"----- FilterStructuralBrushesIntoTree -----\n"

	.comm	_qtrue,4,2                      ## @qtrue
L_.str.1:                               ## @.str.1
	.asciz	"%5i structural brushes\n"

L_.str.2:                               ## @.str.2
	.asciz	"%5i cluster references\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FilterStructuralBrushesIntoTree ; -- Begin function FilterStructuralBrushesIntoTree
	.p2align	2
_FilterStructuralBrushesIntoTree:       ; @FilterStructuralBrushesIntoTree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_qprintf
	ldr	x20, [x20]
	cbz	x20, LBB0_10
; %bb.1:
	mov	w21, #0
	mov	w22, #0
Lloh2:
	adrp	x23, _qtrue@GOTPAGE
Lloh3:
	ldr	x23, [x23, _qtrue@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x20, #24]
	cbz	x20, LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	mov	x0, x20
	bl	_CopyBrush
	ldr	w1, [x19]
	bl	_FilterBrushIntoTree_r
	add	w21, w0, w21
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x20, #8]
	add	x9, x9, #8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x9, x9, #16
	subs	x8, x8, #1
	b.eq	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x9]
	cbz	x10, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w10, [x23]
	stur	w10, [x9, #-8]
	b	LBB0_7
LBB0_10:
	mov	w22, #0
	mov	w21, #0
LBB0_11:
	str	x22, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_qprintf
	str	x21, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_qprintf
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"----- FilterStructuralBrushesIntoTree -----\n"

	.comm	_qtrue,4,2                      ; @qtrue
l_.str.1:                               ; @.str.1
	.asciz	"%5i structural brushes\n"

l_.str.2:                               ; @.str.2
	.asciz	"%5i cluster references\n"

.subsections_via_symbols
