	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FilterBrushIntoTree_r          ## -- Begin function FilterBrushIntoTree_r
	.p2align	4, 0x90
_FilterBrushIntoTree_r:                 ## @FilterBrushIntoTree_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rsi), %esi
	movq	_PLANENUM_LEAF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_10
## %bb.3:
	movq	32(%r14), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, 32(%r14)
	movl	$1, %eax
	cmpl	$0, 16(%rbx)
	jne	LBB0_11
## %bb.4:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%r14)
	movq	_qfalse@GOTPCREL(%rip), %rcx
LBB0_9:
	movq	(%rcx), %rcx
	movq	%rcx, 16(%r14)
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_10:
	leaq	-32(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_SplitBrush
	movq	%rbx, %rdi
	callq	_FreeBrush
	movq	-32(%rbp), %rdi
	movq	(%r14), %rax
	movq	(%rax), %rsi
	callq	_FilterBrushIntoTree_r
	movl	%eax, %ebx
	movq	-24(%rbp), %rdi
	movq	(%r14), %rax
	movq	8(%rax), %rsi
	callq	_FilterBrushIntoTree_r
	addl	%ebx, %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_CONTENTS_AREAPORTAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_11
## %bb.7:
	cmpq	$0, 24(%r14)
	jne	LBB0_11
## %bb.8:
	movq	_qtrue@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANENUM_LEAF,4,2              ## @PLANENUM_LEAF
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_CONTENTS_AREAPORTAL,4,2        ## @CONTENTS_AREAPORTAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FilterBrushIntoTree_r          ; -- Begin function FilterBrushIntoTree_r
	.p2align	2
_FilterBrushIntoTree_r:                 ; @FilterBrushIntoTree_r
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x1, #8]
Lloh0:
	adrp	x8, _PLANENUM_LEAF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLANENUM_LEAF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19, #32]
	str	x8, [x20, #24]
	str	x20, [x19, #32]
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_6
LBB0_3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_SplitBrush
	mov	x0, x20
	bl	_FreeBrush
	ldr	x0, [sp, #8]
	ldr	x8, [x19]
	ldr	x1, [x8]
	bl	_FilterBrushIntoTree_r
	mov	x20, x0
	ldr	x0, [sp]
	ldr	x8, [x19]
	ldr	x1, [x8, #8]
	bl	_FilterBrushIntoTree_r
	add	w0, w0, w20
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, _qtrue@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _qfalse@GOTPAGE
Lloh7:
	ldr	x9, [x9, _qfalse@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #16]
	mov	w0, #1
	b	LBB0_5
LBB0_8:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _CONTENTS_AREAPORTAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CONTENTS_AREAPORTAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.9:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_3
; %bb.10:
Lloh12:
	adrp	x8, _qtrue@GOTPAGE
Lloh13:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANENUM_LEAF,4,2              ; @PLANENUM_LEAF
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_CONTENTS_AREAPORTAL,4,2        ; @CONTENTS_AREAPORTAL
.subsections_via_symbols
