	.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
	movq	_numbrushsides@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_nummapbrushes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_numbrushes@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jg	LBB0_1
## %bb.2:
	popq	%rbp
	retq
LBB0_1:
	callq	_EmitBrushes.cold.1
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function EmitBrushes.cold.1
_EmitBrushes.cold.1:                    ## @EmitBrushes.cold.1
	.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	_mapbrushes@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_dbrushes@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	32(%r12), %eax
	movl	%eax, 12(%rcx)
	andq	$0, (%rcx)
	movl	(%r12), %r8d
	movl	%r8d, 8(%rcx)
	testl	%r8d, %r8d
	jle	LBB1_5
## %bb.1:
	movq	_numbrushsides@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	movq	_MAX_MAP_BRUSHSIDES@GOTPCREL(%rip), %r13
	movq	_dbrushsides@GOTPCREL(%rip), %r14
LBB1_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdx
	cmpq	(%r13), %rcx
	jne	LBB1_3
## %bb.2:                               ##   in Loop: Header=BB1_4 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_Error
	movq	(%r15), %rdx
	movl	(%r12), %r8d
LBB1_3:                                 ##   in Loop: Header=BB1_4 Depth=1
	movq	(%r14), %rsi
	leaq	1(%rdx), %rcx
	movq	%rcx, (%r15)
	movq	8(%r12), %rdi
	movl	(%rdi,%rbx,8), %eax
	movl	%eax, (%rsi,%rdx,8)
	movl	4(%rdi,%rbx,8), %eax
	movl	%eax, 4(%rsi,%rdx,8)
	incq	%rbx
	movslq	%r8d, %rax
	cmpq	%rax, %rbx
	jl	LBB1_4
LBB1_5:
	movq	_vec3_origin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VectorCopy
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_numbrushsides,8,3              ## @numbrushsides
	.comm	_nummapbrushes,4,2              ## @nummapbrushes
	.comm	_numbrushes,4,2                 ## @numbrushes
	.comm	_mapbrushes,8,3                 ## @mapbrushes
	.comm	_dbrushes,8,3                   ## @dbrushes
	.comm	_MAX_MAP_BRUSHSIDES,8,3         ## @MAX_MAP_BRUSHSIDES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAX_MAP_BRUSHSIDES"

	.comm	_dbrushsides,8,3                ## @dbrushsides
	.comm	_vec3_origin,4,2                ## @vec3_origin
.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	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _numbrushsides@GOTPAGE
Lloh1:
	ldr	x8, [x8, _numbrushsides@GOTPAGEOFF]
Lloh2:
	adrp	x9, _nummapbrushes@GOTPAGE
Lloh3:
	ldr	x9, [x9, _nummapbrushes@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _numbrushes@GOTPAGE
Lloh7:
	ldr	x9, [x9, _numbrushes@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	cmp	w8, #1
	b.ge	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	_EmitBrushes.cold.1
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function EmitBrushes.cold.1
_EmitBrushes.cold.1:                    ; @EmitBrushes.cold.1
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh9:
	adrp	x8, _mapbrushes@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mapbrushes@GOTPAGEOFF]
Lloh11:
	ldr	x20, [x8]
Lloh12:
	adrp	x8, _dbrushes@GOTPAGE
Lloh13:
	ldr	x8, [x8, _dbrushes@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x8]
	ldr	w10, [x20, #32]
	str	xzr, [x9]
	ldr	w8, [x20]
	stp	w8, w10, [x9, #8]
	cmp	w8, #0
	b.le	LBB1_5
; %bb.1:
	mov	x21, #0
Lloh15:
	adrp	x22, _numbrushsides@GOTPAGE
Lloh16:
	ldr	x22, [x22, _numbrushsides@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh17:
	adrp	x23, _MAX_MAP_BRUSHSIDES@GOTPAGE
Lloh18:
	ldr	x23, [x23, _MAX_MAP_BRUSHSIDES@GOTPAGEOFF]
Lloh19:
	adrp	x19, l_.str@PAGE
Lloh20:
	add	x19, x19, l_.str@PAGEOFF
Lloh21:
	adrp	x24, _dbrushsides@GOTPAGE
Lloh22:
	ldr	x24, [x24, _dbrushsides@GOTPAGEOFF]
LBB1_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x23]
	mov	x10, x9
	cmp	x9, x11
	b.ne	LBB1_4
; %bb.3:                                ;   in Loop: Header=BB1_2 Depth=1
	mov	x0, x19
	bl	_Error
	ldr	x10, [x22]
	ldr	w8, [x20]
LBB1_4:                                 ;   in Loop: Header=BB1_2 Depth=1
	ldr	x11, [x24]
	add	x9, x10, #1
	str	x9, [x22]
	ldr	x12, [x20, #8]
	ldr	d0, [x12, x21, lsl #3]
	str	d0, [x11, x10, lsl #3]
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.lt	LBB1_2
LBB1_5:
Lloh23:
	adrp	x8, _vec3_origin@GOTPAGE
Lloh24:
	ldr	x8, [x8, _vec3_origin@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_VectorCopy
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_numbrushsides,8,3              ; @numbrushsides
	.comm	_nummapbrushes,4,2              ; @nummapbrushes
	.comm	_numbrushes,4,2                 ; @numbrushes
	.comm	_mapbrushes,8,3                 ; @mapbrushes
	.comm	_dbrushes,8,3                   ; @dbrushes
	.comm	_MAX_MAP_BRUSHSIDES,8,3         ; @MAX_MAP_BRUSHSIDES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAX_MAP_BRUSHSIDES"

	.comm	_dbrushsides,8,3                ; @dbrushsides
	.comm	_vec3_origin,4,2                ; @vec3_origin
.subsections_via_symbols
