	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function VS_GenerateFacetFor3Points
LCPI0_0:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_VS_GenerateFacetFor3Points
	.p2align	4, 0x90
_VS_GenerateFacetFor3Points:            ## @VS_GenerateFacetFor3Points
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	leaq	16(%rdx), %rdi
	movl	8(%rcx), %esi
	movl	8(%r8), %edx
	movl	8(%r9), %ecx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_VS_PlaneFromPoints
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_numfacets@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movq	%rcx, 40(%r12)
	movl	8(%r14), %edi
	movq	_surfaceOrigin@GOTPCREL(%rip), %rdx
	movq	_drawSurfaces@GOTPCREL(%rip), %rcx
	movq	%r13, %rax
	subq	(%rcx), %rax
	movq	(%rdx), %rcx
	movl	(%rcx,%rax), %esi
	movq	8(%r12), %rax
	movl	(%rax), %edx
	callq	_VectorAdd
	movl	8(%r15), %edi
	movq	%r13, %rax
	movq	_drawSurfaces@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	_surfaceOrigin@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax), %esi
	movq	8(%r12), %rax
	movl	4(%rax), %edx
	callq	_VectorAdd
	movl	8(%rbx), %edi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_drawSurfaces@GOTPCREL(%rip), %rcx
	subq	(%rcx), %r13
	movq	_surfaceOrigin@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r13), %esi
	movq	8(%r12), %rax
	movl	8(%rax), %edx
	callq	_VectorAdd
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movq	32(%r12), %rdx
	movq	(%rdx), %rsi
	movl	%ecx, (%rsi)
	movl	4(%rax), %eax
	movl	%eax, 4(%rsi)
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movq	8(%rdx), %rsi
	movl	%ecx, (%rsi)
	movl	4(%rax), %eax
	movl	%eax, 4(%rsi)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	movq	16(%rdx), %rdx
	movl	%ecx, (%rdx)
	movl	4(%rax), %eax
	movl	%eax, 4(%rdx)
	movq	8(%r12), %rax
	movq	24(%r12), %rdi
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_VS_GenerateBoundaryForPoints
	movq	8(%r12), %rax
	movq	24(%r12), %rdi
	addq	$4, %rdi
	movl	4(%rax), %edx
	movl	8(%rax), %ecx
	movq	%rbx, %rsi
	callq	_VS_GenerateBoundaryForPoints
	movq	8(%r12), %rax
	movq	24(%r12), %rdi
	addq	$8, %rdi
	movl	(%rax), %ecx
	movl	8(%rax), %edx
	movq	%rbx, %rsi
	callq	_VS_GenerateBoundaryForPoints
	movq	8(%r12), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_VectorSubtract
	callq	_VectorLength
	movq	_qfalse@GOTPCREL(%rip), %r13
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_7
## %bb.3:
	movq	8(%r12), %rax
	movl	4(%rax), %esi
	movl	8(%rax), %edi
	callq	_VectorSubtract
	callq	_VectorLength
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_7
## %bb.4:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movl	8(%rax), %esi
	callq	_VectorSubtract
	callq	_VectorLength
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_VS_TextureMatrixFromPoints
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r14, %rcx
	movq	%r15, %r8
	movq	%rbx, %r9
	callq	_VS_LightmapMatrixFromPoints
	movq	_qtrue@GOTPCREL(%rip), %r13
	movl	$3, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_qfalse@GOTPCREL(%rip), %r13
	xorl	%eax, %eax
LBB0_6:
	movl	%eax, (%r12)
LBB0_7:
	movl	(%r13), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_numfacets,4,2                  ## @numfacets
	.comm	_surfaceOrigin,8,3              ## @surfaceOrigin
	.comm	_drawSurfaces,8,3               ## @drawSurfaces
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VS_GenerateFacetFor3Points     ; -- Begin function VS_GenerateFacetFor3Points
	.p2align	2
_VS_GenerateFacetFor3Points:            ; @VS_GenerateFacetFor3Points
	.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
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x23, x1
	mov	x24, x0
	add	x25, x2, #16
	ldr	w1, [x3, #8]
	ldr	w2, [x4, #8]
	ldr	w3, [x5, #8]
	mov	x0, x25
	bl	_VS_PlaneFromPoints
	cbz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _numfacets@GOTPAGE
Lloh1:
	ldr	x8, [x8, _numfacets@GOTPAGEOFF]
	ldrsw	x9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	str	x9, [x19, #40]
	ldr	w0, [x22, #8]
Lloh2:
	adrp	x26, _surfaceOrigin@GOTPAGE
Lloh3:
	ldr	x26, [x26, _surfaceOrigin@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh4:
	adrp	x27, _drawSurfaces@GOTPAGE
Lloh5:
	ldr	x27, [x27, _drawSurfaces@GOTPAGEOFF]
	ldr	x9, [x27]
	sub	x9, x24, x9
	ldr	w1, [x8, x9]
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
	bl	_VectorAdd
	ldr	w0, [x21, #8]
	ldr	x8, [x26]
	ldr	x9, [x27]
	sub	x9, x24, x9
	ldr	w1, [x8, x9]
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #4]
	bl	_VectorAdd
	ldr	w0, [x20, #8]
	ldr	x8, [x26]
	ldr	x9, [x27]
	sub	x9, x24, x9
	ldr	w1, [x8, x9]
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #8]
	bl	_VectorAdd
	ldr	x8, [x22]
	ldr	w9, [x8]
	ldp	x0, x10, [x19, #24]
	ldp	x11, x12, [x10]
	str	w9, [x11]
	ldr	w8, [x8, #4]
	str	w8, [x11, #4]
	ldr	x8, [x21]
	ldr	w9, [x8]
	str	w9, [x12]
	ldr	w8, [x8, #4]
	str	w8, [x12, #4]
	ldr	x8, [x20]
	ldr	w9, [x8]
	ldr	x10, [x10, #16]
	str	w9, [x10]
	ldr	w8, [x8, #4]
	str	w8, [x10, #4]
	ldr	x8, [x19, #8]
	ldp	w2, w3, [x8]
	mov	x1, x25
	bl	_VS_GenerateBoundaryForPoints
	ldr	x8, [x19, #24]
	add	x0, x8, #4
	ldr	x8, [x19, #8]
	ldp	w2, w3, [x8, #4]
	mov	x1, x25
	bl	_VS_GenerateBoundaryForPoints
	ldr	x8, [x19, #24]
	add	x0, x8, #8
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #8]
	ldr	w3, [x8]
	mov	x1, x25
	bl	_VS_GenerateBoundaryForPoints
	ldr	x8, [x19, #8]
	ldp	w1, w0, [x8]
	bl	_VectorSubtract
	bl	_VectorLength
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16313, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.mi	LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	ldp	w1, w0, [x8, #4]
	bl	_VectorSubtract
	bl	_VectorLength
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16313, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.mi	LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x8, #8]
	bl	_VectorSubtract
	bl	_VectorLength
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16313, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.pl	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _qfalse@GOTPAGE
Lloh7:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	w9, #0
Lloh8:
	adrp	x8, _qfalse@GOTPAGE
Lloh9:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_6:
	str	w9, [x19]
LBB0_7:
	ldr	w0, [x8]
	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
LBB0_8:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_VS_TextureMatrixFromPoints
	mov	x0, x24
	mov	x1, x23
	mov	x2, x19
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_VS_LightmapMatrixFromPoints
Lloh10:
	adrp	x8, _qtrue@GOTPAGE
Lloh11:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	mov	w9, #3
	b	LBB0_6
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_numfacets,4,2                  ; @numfacets
	.comm	_surfaceOrigin,8,3              ; @surfaceOrigin
	.comm	_drawSurfaces,8,3               ; @drawSurfaces
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
