	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TryMergeBrushes                ## -- Begin function TryMergeBrushes
	.p2align	4, 0x90
_TryMergeBrushes:                       ## @TryMergeBrushes
	.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	(%rdi), %rax
	movq	8(%rsi), %rdx
	movq	(%rdx), %rcx
	addq	$2, %rcx
	cmpq	%rcx, (%rax)
	jg	LBB0_78
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rcx
	movq	(%rsi), %rsi
	movq	(%rsi), %rdi
	addq	$-2, %rdi
	cmpq	%rdi, (%rcx)
	jl	LBB0_78
## %bb.4:
	movq	8(%rdx), %rdi
	addq	$2, %rdi
	cmpq	%rdi, 8(%rax)
	jg	LBB0_78
## %bb.6:
	movq	8(%rsi), %rdi
	addq	$-2, %rdi
	cmpq	%rdi, 8(%rcx)
	jl	LBB0_78
## %bb.8:
	movq	16(%rdx), %rdx
	addq	$2, %rdx
	cmpq	%rdx, 16(%rax)
	jg	LBB0_78
## %bb.10:
	movq	16(%rsi), %rax
	addq	$-2, %rax
	cmpq	%rax, 16(%rcx)
	jge	LBB0_12
LBB0_78:
	xorl	%eax, %eax
LBB0_79:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	16(%r12), %r8d
	testl	%r8d, %r8d
	jle	LBB0_33
## %bb.13:
	movl	16(%r14), %edi
	xorl	%ecx, %ecx
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	jg	LBB0_78
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r15, %rcx
	incq	%rcx
	movslq	%r8d, %rax
	cmpq	%rax, %rcx
	jge	LBB0_34
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_23 Depth 2
                                        ##       Child Loop BB0_25 Depth 3
	movq	%rcx, %r15
	leaq	(%rcx,%rcx,2), %r13
	testl	%edi, %edi
	jle	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	24(%r12), %rcx
	movq	24(%r14), %rax
	movl	(%rcx,%r13,8), %ecx
	movl	%edi, %edx
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rsi), %ebx
	xorl	$1, %ebx
	cmpl	%ebx, %ecx
	je	LBB0_14
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	addq	$24, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_18
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	testl	%edi, %edi
	jle	LBB0_15
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=2
	incq	%rbx
	movslq	%edi, %rax
	movl	16(%r12), %r8d
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_23:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_25 Depth 3
	movq	24(%r14), %r9
	movq	24(%r12), %rsi
	leaq	(%rbx,%rbx,2), %r10
	movslq	(%r9,%r10,8), %r11
	testl	%r8d, %r8d
	jle	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	movl	%r11d, %ecx
	xorl	$1, %ecx
	movl	%r8d, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_16 Depth=1
                                        ##     Parent Loop BB0_23 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%ecx, (%rsi,%rax)
	je	LBB0_22
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=3
	addq	$24, %rax
	cmpq	%rax, %rdx
	jne	LBB0_25
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=2
	movslq	(%rsi,%r13,8), %rax
	cmpl	%r11d, %eax
	jne	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	8(%rsi,%r13,8), %rax
	movq	_TEXINFO_NODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_22
## %bb.29:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	8(%r9,%r10,8), %rdx
	cmpq	%rcx, %rdx
	je	LBB0_22
## %bb.30:                              ##   in Loop: Header=BB0_23 Depth=2
	cmpq	%rdx, %rax
	je	LBB0_22
	jmp	LBB0_78
LBB0_31:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	_mapplanes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	16(%rsi,%r13,8), %edi
	movl	16(%r9,%r10,8), %esi
	movl	(%rcx,%rax,8), %r8d
	movl	4(%rcx,%rax,8), %edx
	movl	(%rcx,%r11,8), %r9d
	movl	4(%rcx,%r11,8), %ecx
	callq	_WindingsNonConvex
	testq	%rax, %rax
	jne	LBB0_78
## %bb.32:                              ##   in Loop: Header=BB0_23 Depth=2
	movl	16(%r14), %edi
	jmp	LBB0_22
LBB0_33:
	movl	16(%r14), %edi
LBB0_34:
	addl	%r8d, %edi
	callq	_AllocBrush
	movq	%rax, %r8
	movl	32(%r12), %eax
	movl	%eax, 32(%r8)
	movl	$0, 16(%r8)
	movl	16(%r12), %r10d
	testl	%r10d, %r10d
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	jle	LBB0_60
## %bb.35:
	movq	24(%r12), %r9
	movl	16(%r14), %r8d
	movq	%r8, %rax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r13
	xorl	%r11d, %r11d
	movq	_TEXINFO_NODE@GOTPCREL(%rip), %r15
	jmp	LBB0_37
LBB0_36:                                ##   in Loop: Header=BB0_37 Depth=1
	incq	%r11
	cmpq	%r10, %r11
	je	LBB0_46
LBB0_37:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_40 Depth 2
	testl	%r8d, %r8d
	jle	LBB0_36
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	24(%r14), %rdx
	leaq	(%r11,%r11,2), %rax
	movl	(%r9,%rax,8), %ecx
	leaq	(%r9,%rax,8), %rax
	addq	$8, %rax
	xorl	%edi, %edi
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_40 Depth=2
	addq	$24, %rdi
	cmpq	%rdi, %r13
	je	LBB0_36
LBB0_40:                                ##   Parent Loop BB0_37 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	(%rdx,%rdi), %ecx
	jne	LBB0_39
## %bb.41:                              ##   in Loop: Header=BB0_40 Depth=2
	movq	(%rax), %rbx
	movq	(%r15), %rsi
	cmpq	%rsi, %rbx
	jne	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_40 Depth=2
	movq	8(%rdx,%rdi), %rbx
	movq	%rbx, (%rax)
	movq	(%r15), %rsi
LBB0_43:                                ##   in Loop: Header=BB0_40 Depth=2
	cmpq	%rsi, 8(%rdx,%rdi)
	jne	LBB0_39
## %bb.44:                              ##   in Loop: Header=BB0_40 Depth=2
	movq	%rbx, 8(%rdx,%rdi)
	jmp	LBB0_39
LBB0_46:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_49
LBB0_47:                                ##   in Loop: Header=BB0_49 Depth=1
	movq	24(%r8), %rcx
	cltq
	leaq	(%rax,%rax,2), %rdx
	incl	%eax
	movl	%eax, 16(%r8)
	movq	16(%r13), %rax
	movq	%rax, 16(%rcx,%rdx,8)
	movups	(%r13), %xmm0
	movups	%xmm0, (%rcx,%rdx,8)
LBB0_48:                                ##   in Loop: Header=BB0_49 Depth=1
	incq	%rbx
	movslq	16(%r12), %r10
	cmpq	%r10, %rbx
	jge	LBB0_60
LBB0_49:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_51 Depth 2
                                        ##     Child Loop BB0_55 Depth 2
	leaq	(%rbx,%rbx,2), %r13
	shlq	$3, %r13
	addq	24(%r12), %r13
	movl	16(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_53
## %bb.50:                              ##   in Loop: Header=BB0_49 Depth=1
	movq	24(%r14), %rax
	movl	(%r13), %ecx
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_51:                                ##   Parent Loop BB0_49 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rsi), %edi
	xorl	$1, %edi
	cmpl	%edi, %ecx
	je	LBB0_48
## %bb.52:                              ##   in Loop: Header=BB0_51 Depth=2
	addq	$24, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_51
LBB0_53:                                ##   in Loop: Header=BB0_49 Depth=1
	movl	16(%r8), %eax
	testl	%eax, %eax
	jle	LBB0_57
## %bb.54:                              ##   in Loop: Header=BB0_49 Depth=1
	movq	24(%r8), %rcx
	movl	(%r13), %edx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_55:                                ##   Parent Loop BB0_49 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%edx, (%rcx)
	je	LBB0_58
## %bb.56:                              ##   in Loop: Header=BB0_55 Depth=2
	incq	%r15
	addq	$24, %rcx
	cmpq	%r15, %rax
	jne	LBB0_55
	jmp	LBB0_47
LBB0_57:                                ##   in Loop: Header=BB0_49 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_59
LBB0_58:                                ##   in Loop: Header=BB0_49 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_Log_Print
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	16(%r8), %eax
LBB0_59:                                ##   in Loop: Header=BB0_49 Depth=1
	cmpl	%eax, %r15d
	jge	LBB0_47
	jmp	LBB0_48
LBB0_60:
	cmpl	$0, 16(%r14)
	jle	LBB0_77
## %bb.61:
	xorl	%r15d, %r15d
LBB0_62:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_64 Depth 2
                                        ##     Child Loop BB0_69 Depth 2
	leaq	(%r15,%r15,2), %r13
	shlq	$3, %r13
	addq	24(%r14), %r13
	testl	%r10d, %r10d
	jle	LBB0_67
## %bb.63:                              ##   in Loop: Header=BB0_62 Depth=1
	movq	24(%r12), %rax
	movl	(%r13), %ecx
	movl	%r10d, %edx
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_64:                                ##   Parent Loop BB0_62 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rsi), %edi
	cmpl	%edi, %ecx
	je	LBB0_75
## %bb.65:                              ##   in Loop: Header=BB0_64 Depth=2
	xorl	$1, %edi
	cmpl	%edi, %ecx
	je	LBB0_75
## %bb.66:                              ##   in Loop: Header=BB0_64 Depth=2
	addq	$24, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_64
LBB0_67:                                ##   in Loop: Header=BB0_62 Depth=1
	movl	16(%r8), %eax
	testl	%eax, %eax
	jle	LBB0_71
## %bb.68:                              ##   in Loop: Header=BB0_62 Depth=1
	movq	24(%r8), %rcx
	movl	(%r13), %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_69:                                ##   Parent Loop BB0_62 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%edx, (%rcx)
	je	LBB0_72
## %bb.70:                              ##   in Loop: Header=BB0_69 Depth=2
	incq	%rbx
	addq	$24, %rcx
	cmpq	%rbx, %rax
	jne	LBB0_69
	jmp	LBB0_74
LBB0_71:                                ##   in Loop: Header=BB0_62 Depth=1
	xorl	%ebx, %ebx
	cmpl	%eax, %ebx
	jl	LBB0_75
LBB0_74:                                ##   in Loop: Header=BB0_62 Depth=1
	movq	24(%r8), %rcx
	cltq
	leaq	(%rax,%rax,2), %rdx
	incl	%eax
	movl	%eax, 16(%r8)
	movq	16(%r13), %rax
	movq	%rax, 16(%rcx,%rdx,8)
	movups	(%r13), %xmm0
	movups	%xmm0, (%rcx,%rdx,8)
LBB0_75:                                ##   in Loop: Header=BB0_62 Depth=1
	incq	%r15
	movslq	16(%r14), %rax
	cmpq	%rax, %r15
	jge	LBB0_77
## %bb.76:                              ##   in Loop: Header=BB0_62 Depth=1
	movl	16(%r12), %r10d
	jmp	LBB0_62
LBB0_72:                                ##   in Loop: Header=BB0_62 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_Log_Print
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	16(%r8), %eax
	cmpl	%eax, %ebx
	jl	LBB0_75
	jmp	LBB0_74
LBB0_77:
	movq	%r8, %rdi
	callq	_BSPBrushWindings
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_BoundBrush
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_CheckBSPBrush
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_79
	.cfi_endproc
                                        ## -- End function
	.comm	_TEXINFO_NODE,8,3               ## @TEXINFO_NODE
	.comm	_mapplanes,8,3                  ## @mapplanes
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"brush duplicate plane\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TryMergeBrushes                ; -- Begin function TryMergeBrushes
	.p2align	2
_TryMergeBrushes:                       ; @TryMergeBrushes
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0]
	ldr	x9, [x1, #8]
	ldr	x10, [x8]
	ldr	x11, [x9]
	add	x11, x11, #2
	cmp	x10, x11
	b.gt	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x10, [x0, #8]
	ldr	x12, [x10]
	ldr	x11, [x1]
	ldr	x13, [x11]
	sub	x13, x13, #2
	cmp	x12, x13
	b.lt	LBB0_6
; %bb.2:
	ldr	x12, [x8, #8]
	ldr	x13, [x9, #8]
	add	x13, x13, #2
	cmp	x12, x13
	b.gt	LBB0_6
; %bb.3:
	ldr	x12, [x10, #8]
	ldr	x13, [x11, #8]
	sub	x13, x13, #2
	cmp	x12, x13
	b.lt	LBB0_6
; %bb.4:
	ldr	x8, [x8, #16]
	ldr	x9, [x9, #16]
	add	x9, x9, #2
	cmp	x8, x9
	b.gt	LBB0_6
; %bb.5:
	ldr	x8, [x10, #16]
	ldr	x9, [x11, #16]
	sub	x9, x9, #2
	cmp	x8, x9
	b.ge	LBB0_8
LBB0_6:
	mov	x21, #0
LBB0_7:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w9, [x20, #16]
	cmp	w9, #0
	b.le	LBB0_29
; %bb.9:
	mov	x21, #0
	mov	w22, #0
	ldr	w8, [x19, #16]
	mov	w23, #24
Lloh0:
	adrp	x24, _TEXINFO_NODE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TEXINFO_NODE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _mapplanes@GOTPAGE
Lloh3:
	ldr	x25, [x25, _mapplanes@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #1
	cmp	x21, w9, sxtw
	b.ge	LBB0_30
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
                                        ;       Child Loop BB0_20 Depth 3
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x11, [x20, #24]
	ldr	x10, [x19, #24]
	mul	x12, x21, x23
	ldr	w11, [x11, x12]
	mov	w12, w8
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x10]
	eor	w13, w13, #0x1
	cmp	w11, w13
	b.eq	LBB0_27
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x10, x10, #24
	subs	x12, x12, #1
	b.ne	LBB0_13
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x26, #0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x26, x26, #1
	ldr	w9, [x20, #16]
	cmp	x26, w8, sxtw
	b.ge	LBB0_10
LBB0_18:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_20 Depth 3
	ldr	x10, [x19, #24]
	ldr	x11, [x20, #24]
	mul	x12, x26, x23
	ldrsw	x12, [x10, x12]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	eor	w13, w12, #0x1
	mov	w9, w9
	mov	x14, x11
LBB0_20:                                ;   Parent Loop BB0_11 Depth=1
                                        ;     Parent Loop BB0_18 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w15, [x14]
	cmp	w15, w13
	b.eq	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=3
	add	x14, x14, #24
	subs	x9, x9, #1
	b.ne	LBB0_20
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=2
	mul	x9, x21, x23
	ldrsw	x9, [x11, x9]
	cmp	w9, w12
	b.ne	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=2
	madd	x9, x21, x23, x11
	ldr	x9, [x9, #8]
	ldr	x11, [x24]
	cmp	x9, x11
	b.eq	LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=2
	madd	x10, x26, x23, x10
	ldr	x10, [x10, #8]
	cmp	x10, x11
	ccmp	x9, x10, #4, ne
	b.eq	LBB0_17
	b	LBB0_6
LBB0_25:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	x8, [x25]
	madd	x11, x21, x23, x11
	ldr	w0, [x11, #16]
	madd	x10, x26, x23, x10
	ldr	w1, [x10, #16]
	add	x9, x8, x9, lsl #3
	add	x8, x8, x12, lsl #3
	ldp	w4, w2, [x9]
	ldp	w5, w3, [x8]
	bl	_WindingsNonConvex
	cbnz	x0, LBB0_6
; %bb.26:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w8, [x19, #16]
	b	LBB0_17
LBB0_27:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w22, #0
	b.gt	LBB0_6
; %bb.28:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w22, #1
	b	LBB0_10
LBB0_29:
	ldr	w8, [x19, #16]
LBB0_30:
	add	w0, w8, w9
	bl	_AllocBrush
	mov	x21, x0
	ldr	w8, [x20, #32]
	str	w8, [x0, #32]
	str	wzr, [x0, #16]
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_56
; %bb.31:
	mov	x9, #0
	ldr	x10, [x20, #24]
	ldr	w11, [x19, #16]
	mov	w12, #24
Lloh4:
	adrp	x13, _TEXINFO_NODE@GOTPAGE
Lloh5:
	ldr	x13, [x13, _TEXINFO_NODE@GOTPAGEOFF]
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_41
LBB0_33:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_36 Depth 2
	cmp	w11, #1
	b.lt	LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	x16, [x19, #24]
	madd	x14, x9, x12, x10
	ldr	w15, [x14], #8
	add	x16, x16, #8
	mov	x17, x11
	b	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_36 Depth=2
	add	x16, x16, #24
	subs	x17, x17, #1
	b.eq	LBB0_32
LBB0_36:                                ;   Parent Loop BB0_33 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w0, [x16, #-8]
	cmp	w15, w0
	b.ne	LBB0_35
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=2
	ldr	x0, [x14]
	ldr	x1, [x13]
	cmp	x0, x1
	b.ne	LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_36 Depth=2
	ldr	x0, [x16]
	str	x0, [x14]
	ldr	x1, [x13]
LBB0_39:                                ;   in Loop: Header=BB0_36 Depth=2
	ldr	x2, [x16]
	cmp	x2, x1
	b.ne	LBB0_35
; %bb.40:                               ;   in Loop: Header=BB0_36 Depth=2
	str	x0, [x16]
	b	LBB0_35
LBB0_41:
	mov	x23, #0
	mov	w24, #24
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_44
LBB0_42:                                ;   in Loop: Header=BB0_44 Depth=1
	ldr	x9, [x21, #24]
	smaddl	x9, w8, w24, x9
	add	w8, w8, #1
	str	w8, [x21, #16]
	ldr	q0, [x25]
	ldr	x8, [x25, #16]
	str	x8, [x9, #16]
	str	q0, [x9]
LBB0_43:                                ;   in Loop: Header=BB0_44 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20, #16]
	cmp	x23, x8
	b.ge	LBB0_55
LBB0_44:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_46 Depth 2
                                        ;     Child Loop BB0_50 Depth 2
	ldr	x8, [x20, #24]
	madd	x25, x23, x24, x8
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_48
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	ldr	x9, [x19, #24]
	ldr	w10, [x25]
LBB0_46:                                ;   Parent Loop BB0_44 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x9]
	eor	w11, w11, #0x1
	cmp	w10, w11
	b.eq	LBB0_43
; %bb.47:                               ;   in Loop: Header=BB0_46 Depth=2
	add	x9, x9, #24
	subs	x8, x8, #1
	b.ne	LBB0_46
LBB0_48:                                ;   in Loop: Header=BB0_44 Depth=1
	ldr	w8, [x21, #16]
	cmp	w8, #1
	b.lt	LBB0_52
; %bb.49:                               ;   in Loop: Header=BB0_44 Depth=1
	mov	x26, #0
	ldr	x9, [x21, #24]
	ldr	w10, [x25]
LBB0_50:                                ;   Parent Loop BB0_44 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x9]
	cmp	w11, w10
	b.eq	LBB0_53
; %bb.51:                               ;   in Loop: Header=BB0_50 Depth=2
	add	x26, x26, #1
	add	x9, x9, #24
	cmp	x8, x26
	b.ne	LBB0_50
	b	LBB0_42
LBB0_52:                                ;   in Loop: Header=BB0_44 Depth=1
	mov	w26, #0
	b	LBB0_54
LBB0_53:                                ;   in Loop: Header=BB0_44 Depth=1
	mov	x0, x22
	bl	_Log_Print
	ldr	w8, [x21, #16]
LBB0_54:                                ;   in Loop: Header=BB0_44 Depth=1
	cmp	w26, w8
	b.ge	LBB0_42
	b	LBB0_43
LBB0_55:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_56:
	ldr	w9, [x19, #16]
	cmp	w9, #1
	b.lt	LBB0_71
; %bb.57:
	mov	x23, #0
	mov	w24, #24
Lloh8:
	adrp	x22, l_.str@PAGE
Lloh9:
	add	x22, x22, l_.str@PAGEOFF
LBB0_58:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_60 Depth 2
                                        ;     Child Loop BB0_64 Depth 2
	ldr	x9, [x19, #24]
	madd	x25, x23, x24, x9
	cmp	w8, #1
	b.lt	LBB0_62
; %bb.59:                               ;   in Loop: Header=BB0_58 Depth=1
	ldr	x9, [x20, #24]
	ldr	w10, [x25]
	mov	w8, w8
LBB0_60:                                ;   Parent Loop BB0_58 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x9]
	eor	w12, w11, #0x1
	cmp	w10, w11
	ccmp	w10, w12, #4, ne
	b.eq	LBB0_68
; %bb.61:                               ;   in Loop: Header=BB0_60 Depth=2
	add	x9, x9, #24
	subs	x8, x8, #1
	b.ne	LBB0_60
LBB0_62:                                ;   in Loop: Header=BB0_58 Depth=1
	ldr	w8, [x21, #16]
	cmp	w8, #1
	b.lt	LBB0_66
; %bb.63:                               ;   in Loop: Header=BB0_58 Depth=1
	mov	x26, #0
	ldr	x9, [x21, #24]
	ldr	w10, [x25]
LBB0_64:                                ;   Parent Loop BB0_58 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x9]
	cmp	w11, w10
	b.eq	LBB0_70
; %bb.65:                               ;   in Loop: Header=BB0_64 Depth=2
	add	x26, x26, #1
	add	x9, x9, #24
	cmp	x8, x26
	b.ne	LBB0_64
	b	LBB0_67
LBB0_66:                                ;   in Loop: Header=BB0_58 Depth=1
	mov	w26, #0
	cmp	w26, w8
	b.lt	LBB0_68
LBB0_67:                                ;   in Loop: Header=BB0_58 Depth=1
	ldr	x9, [x21, #24]
	smaddl	x9, w8, w24, x9
	add	w8, w8, #1
	str	w8, [x21, #16]
	ldr	q0, [x25]
	ldr	x8, [x25, #16]
	str	x8, [x9, #16]
	str	q0, [x9]
LBB0_68:                                ;   in Loop: Header=BB0_58 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19, #16]
	cmp	x23, x8
	b.ge	LBB0_71
; %bb.69:                               ;   in Loop: Header=BB0_58 Depth=1
	ldr	w8, [x20, #16]
	b	LBB0_58
LBB0_70:                                ;   in Loop: Header=BB0_58 Depth=1
	mov	x0, x22
	bl	_Log_Print
	ldr	w8, [x21, #16]
	cmp	w26, w8
	b.lt	LBB0_68
	b	LBB0_67
LBB0_71:
	mov	x0, x21
	bl	_BSPBrushWindings
	mov	x0, x21
	bl	_BoundBrush
	mov	x0, x21
	bl	_CheckBSPBrush
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TEXINFO_NODE,8,3               ; @TEXINFO_NODE
	.comm	_mapplanes,8,3                  ; @mapplanes
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"brush duplicate plane\n"

.subsections_via_symbols
