	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MakeBrushFromTriangle          ## -- Begin function MakeBrushFromTriangle
	.p2align	4, 0x90
_MakeBrushFromTriangle:                 ## @MakeBrushFromTriangle
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	(%rdi), %esi
	movl	4(%rdi), %edx
	movq	_MIN_WORLD_COORD@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	addq	$10, %rcx
	callq	_VectorSet
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	movq	(%r13), %rcx
	addq	$10, %rcx
	callq	_VectorSet
	movl	(%r15), %esi
	movl	4(%r15), %edx
	movq	(%r13), %rcx
	addq	$10, %rcx
	callq	_VectorSet
	movq	_buildBrush@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	$0, 32(%rax)
	movq	_qfalse@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_AddBrushSide
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_AddBrushSide
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_AddBrushSide
	movq	%r15, %rdi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_AddBrushSide
	movq	%r14, %rcx
	callq	_AddBrushSide
	movq	(%r13), %rdi
	movq	(%rdi), %rax
	movq	$-1, (%rax)
	movq	_num_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	decq	%rax
	movq	%rax, 16(%rdi)
	movq	_entitySourceBrushes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	callq	_RemoveDuplicateBrushPlanes
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r13), %rdi
	callq	_SetBrushContents
	movq	_CONTENTS_DETAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r13), %rcx
	orl	%eax, 8(%rcx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FinishBrush                    ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_WORLD_COORD,8,3            ## @MIN_WORLD_COORD
	.comm	_buildBrush,8,3                 ## @buildBrush
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_num_entities,8,3               ## @num_entities
	.comm	_entitySourceBrushes,4,2        ## @entitySourceBrushes
	.comm	_CONTENTS_DETAIL,4,2            ## @CONTENTS_DETAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MakeBrushFromTriangle          ; -- Begin function MakeBrushFromTriangle
	.p2align	2
_MakeBrushFromTriangle:                 ; @MakeBrushFromTriangle
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldp	w1, w2, [x0]
Lloh0:
	adrp	x23, _MIN_WORLD_COORD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MIN_WORLD_COORD@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x3, x8, #10
	bl	_VectorSet
	ldp	w1, w2, [x22]
	ldr	x8, [x23]
	add	x3, x8, #10
	bl	_VectorSet
	ldp	w1, w2, [x20]
	ldr	x8, [x23]
	add	x3, x8, #10
	bl	_VectorSet
Lloh2:
	adrp	x23, _buildBrush@GOTPAGE
Lloh3:
	ldr	x23, [x23, _buildBrush@GOTPAGEOFF]
	ldr	x8, [x23]
	str	xzr, [x8, #32]
Lloh4:
	adrp	x9, _qfalse@GOTPAGE
Lloh5:
	ldr	x9, [x9, _qfalse@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	str	w9, [x8, #24]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_AddBrushSide
	mov	x0, x21
	mov	x2, x22
	mov	x3, x19
	bl	_AddBrushSide
	mov	x0, x22
	mov	x2, x20
	mov	x3, x19
	bl	_AddBrushSide
	mov	x0, x20
	mov	x2, x21
	mov	x3, x19
	bl	_AddBrushSide
	mov	x3, x19
	bl	_AddBrushSide
	ldr	x0, [x23]
	ldr	x8, [x0]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x8]
Lloh7:
	adrp	x8, _num_entities@GOTPAGE
Lloh8:
	ldr	x8, [x8, _num_entities@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	sub	x8, x8, #1
	str	x8, [x0, #16]
Lloh10:
	adrp	x8, _entitySourceBrushes@GOTPAGE
Lloh11:
	ldr	x8, [x8, _entitySourceBrushes@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x0, #12]
	bl	_RemoveDuplicateBrushPlanes
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x23]
	bl	_SetBrushContents
Lloh13:
	adrp	x8, _CONTENTS_DETAIL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CONTENTS_DETAIL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	x9, [x23]
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_FinishBrush
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_WORLD_COORD,8,3            ; @MIN_WORLD_COORD
	.comm	_buildBrush,8,3                 ; @buildBrush
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_num_entities,8,3               ; @num_entities
	.comm	_entitySourceBrushes,4,2        ; @entitySourceBrushes
	.comm	_CONTENTS_DETAIL,4,2            ; @CONTENTS_DETAIL
.subsections_via_symbols
