	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EmitBrushes                    ## -- Begin function EmitBrushes
	.p2align	4, 0x90
_EmitBrushes:                           ## @EmitBrushes
	.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
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	movq	_numbrushes@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rbx
	testq	%rbx, %rbx
	movq	_numbrushes@GOTPCREL(%rip), %r12
	je	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	(%r12), %rax
	movq	_MAX_MAP_BRUSHES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_Error
	movq	(%r12), %rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, (%rbx)
	movq	_dbrushes@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	(%r12), %r15
	leaq	1(%r15), %rax
	movq	%rax, (%r12)
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	callq	_EmitShader
	leaq	(%r15,%r15,2), %rcx
	movq	%rax, 16(%r14,%rcx,8)
	movq	_numbrushsides@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movq	%rax, (%r14,%rcx,8)
	movq	$0, 8(%r14,%rcx,8)
	movl	8(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%rcx,8), %rcx
	addq	$8, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	_dbrushsides@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incq	(%rax)
	incq	(%rdx)
	movl	8(%rcx,%r14), %eax
	shlq	$4, %r13
	movl	%eax, 8(%r15,%r13)
	movq	(%rcx,%r14), %rax
	movl	(%rax), %edi
	callq	_EmitShader
	movq	_numbrushsides@GOTPCREL(%rip), %rdx
	movq	%rax, (%r15,%r13)
	movl	8(%rbx), %eax
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r12
	movslq	%eax, %rcx
	addq	$24, %r14
	cmpq	%rcx, %r12
	jge	LBB0_11
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rbx), %rcx
	cmpq	$0, 16(%rcx,%r14)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%rdx), %r13
	movq	_MAX_MAP_BRUSHSIDES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	leaq	L_.str.1(%rip), %rdi
	callq	_Error
	movq	_numbrushsides@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r13
	movq	16(%rbx), %rcx
	jmp	LBB0_9
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_numbrushes,8,3                 ## @numbrushes
	.comm	_MAX_MAP_BRUSHES,8,3            ## @MAX_MAP_BRUSHES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAX_MAP_BRUSHES"

	.comm	_dbrushes,8,3                   ## @dbrushes
	.comm	_numbrushsides,8,3              ## @numbrushsides
	.comm	_MAX_MAP_BRUSHSIDES,8,3         ## @MAX_MAP_BRUSHSIDES
L_.str.1:                               ## @.str.1
	.asciz	"MAX_MAP_BRUSHSIDES "

	.comm	_dbrushsides,8,3                ## @dbrushsides
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EmitBrushes                    ; -- Begin function EmitBrushes
	.p2align	2
_EmitBrushes:                           ; @EmitBrushes
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _numbrushes@GOTPAGE
Lloh1:
	ldr	x22, [x22, _numbrushes@GOTPAGEOFF]
Lloh2:
	adrp	x26, _numbrushsides@GOTPAGE
Lloh3:
	ldr	x26, [x26, _numbrushsides@GOTPAGEOFF]
Lloh4:
	adrp	x27, _MAX_MAP_BRUSHSIDES@GOTPAGE
Lloh5:
	ldr	x27, [x27, _MAX_MAP_BRUSHSIDES@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh8:
	adrp	x28, _dbrushsides@GOTPAGE
Lloh9:
	ldr	x28, [x28, _dbrushsides@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [x19, #32]
	cbz	x19, LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x8, [x22]
Lloh10:
	adrp	x9, _MAX_MAP_BRUSHES@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MAX_MAP_BRUSHES@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
	ldr	x8, [x22]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x8, [x19]
Lloh15:
	adrp	x8, _dbrushes@GOTPAGE
Lloh16:
	ldr	x8, [x8, _dbrushes@GOTPAGEOFF]
Lloh17:
	ldr	x20, [x8]
	ldr	x23, [x22]
	add	x8, x23, #1
	str	x8, [x22]
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_EmitShader
	mov	w8, #24
	madd	x20, x23, x8, x20
	str	x0, [x20, #16]
	ldr	x8, [x26]
	str	x8, [x20]
	str	xzr, [x20, #8]!
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, #0
	mov	x24, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x10, [x28]
	ldr	x11, [x20]
	add	x11, x11, #1
	str	x11, [x20]
	ldr	x11, [x26]
	add	x11, x11, #1
	str	x11, [x26]
	add	x9, x9, x23
	ldr	w11, [x9, #8]
	add	x25, x10, x8, lsl #4
	str	w11, [x25, #8]
	ldr	x8, [x9]
	ldr	w0, [x8]
	bl	_EmitShader
	str	x0, [x25]
	ldr	w8, [x19, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x24, x24, #1
	add	x23, x23, #24
	cmp	x24, w8, sxtw
	b.ge	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19, #16]
	add	x10, x9, x23
	ldr	x10, [x10, #16]
	cbnz	x10, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x26]
	ldr	x10, [x27]
	cmp	x8, x10
	b.ne	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x21
	bl	_Error
	ldr	x8, [x26]
	ldr	x9, [x19, #16]
	b	LBB0_7
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_numbrushes,8,3                 ; @numbrushes
	.comm	_MAX_MAP_BRUSHES,8,3            ; @MAX_MAP_BRUSHES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAX_MAP_BRUSHES"

	.comm	_dbrushes,8,3                   ; @dbrushes
	.comm	_numbrushsides,8,3              ; @numbrushsides
	.comm	_MAX_MAP_BRUSHSIDES,8,3         ; @MAX_MAP_BRUSHSIDES
l_.str.1:                               ; @.str.1
	.asciz	"MAX_MAP_BRUSHSIDES "

	.comm	_dbrushsides,8,3                ; @dbrushsides
.subsections_via_symbols
