	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function VL_GenerateFacetFor4Points
LCPI0_0:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_VL_GenerateFacetFor4Points
	.p2align	4, 0x90
_VL_GenerateFacetFor4Points:            ## @VL_GenerateFacetFor4Points
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	24(%rdx), %rdi
	movl	8(%rcx), %esi
	movl	8(%r8), %edx
	movl	8(%r9), %ecx
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_VL_PlaneFromPoints
	movq	_qfalse@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	movq	16(%rbp), %rax
	movl	8(%rax), %edi
	movl	28(%r15), %esi
	callq	_DotProduct
	subss	24(%r15), %xmm0
	callq	_fabs
	movq	_PLANAR_EPSILON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_11
## %bb.2:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	movq	%r14, %rbx
	movq	_surfaceOrigin@GOTPCREL(%rip), %rcx
	movq	_drawSurfaces@GOTPCREL(%rip), %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rax
	subq	(%r13), %rax
	movq	(%rcx), %rcx
	movl	(%rcx,%rax), %esi
	movq	16(%r15), %rax
	movl	(%rax), %edx
	callq	_VectorAdd
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	movq	%r14, %rax
	subq	(%r13), %rax
	movq	_surfaceOrigin@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	(%rcx,%rax), %esi
	movq	16(%r15), %rax
	movl	4(%rax), %edx
	callq	_VectorAdd
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	8(%r12), %edi
	movq	%r14, %rax
	subq	(%r13), %rax
	movq	(%rbx), %rcx
	movl	(%rcx,%rax), %esi
	movq	16(%r15), %rax
	movl	8(%rax), %edx
	callq	_VectorAdd
	movq	16(%rbp), %r12
	movl	8(%r12), %edi
	subq	(%r13), %r14
	movq	(%rbx), %rcx
	movl	(%rcx,%r14), %esi
	movq	16(%r15), %rax
	movl	12(%rax), %edx
	callq	_VectorAdd
	movq	16(%r15), %rax
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	movl	12(%rax), %ecx
	leaq	-48(%rbp), %rdi
	callq	_VL_PlaneFromPoints
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	%rax, %r14
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_Plane_Equal
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	movl	8(%rax), %esi
	movl	12(%rax), %edx
	leaq	-48(%rbp), %rdi
	callq	_VL_PlaneFromPoints
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	%rax, %r14
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_Plane_Equal
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movq	16(%r15), %rax
	movl	12(%rax), %esi
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	leaq	-48(%rbp), %rdi
	callq	_VL_PlaneFromPoints
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movq	_qfalse@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_Plane_Equal
	movq	%r14, %rcx
	testl	%eax, %eax
	movl	$0, %edx
	je	LBB0_14
## %bb.8:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movq	40(%r15), %rdx
	movq	(%rdx), %rsi
	movl	%ecx, (%rsi)
	movl	4(%rax), %eax
	movl	%eax, 4(%rsi)
	movq	%r12, %rdi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rax
	movl	(%rax), %ecx
	movq	8(%rdx), %rsi
	movl	%ecx, (%rsi)
	movl	4(%rax), %eax
	movl	%eax, 4(%rsi)
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rax
	movl	(%rax), %ecx
	movq	16(%rdx), %rsi
	movl	%ecx, (%rsi)
	movl	4(%rax), %eax
	movl	%eax, 4(%rsi)
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	movq	24(%rdx), %rdx
	movl	%ecx, (%rdx)
	movl	4(%rax), %eax
	movl	%eax, 4(%rdx)
	movq	16(%r15), %rax
	movq	32(%r15), %rdi
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movq	%rbx, %rsi
	callq	_VL_GenerateBoundaryForPoints
	movq	16(%r15), %rax
	movq	32(%r15), %rdi
	addq	$4, %rdi
	movl	4(%rax), %edx
	movl	8(%rax), %ecx
	movq	%rbx, %rsi
	callq	_VL_GenerateBoundaryForPoints
	movq	16(%r15), %rax
	movq	32(%r15), %rdi
	addq	$8, %rdi
	movl	8(%rax), %edx
	movl	12(%rax), %ecx
	movq	%rbx, %rsi
	callq	_VL_GenerateBoundaryForPoints
	movq	16(%r15), %rax
	movq	32(%r15), %rdi
	addq	$12, %rdi
	movl	(%rax), %ecx
	movl	12(%rax), %edx
	movq	%rbx, %rsi
	callq	_VL_GenerateBoundaryForPoints
	movq	16(%r15), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_VectorSubtract
	callq	_VectorLength
	movq	_qfalse@GOTPCREL(%rip), %rcx
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_15
## %bb.9:
	movq	%rcx, %rbx
	movq	16(%r15), %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_10
## %bb.16:
	movq	16(%r15), %rax
	movl	8(%rax), %esi
	movl	12(%rax), %edi
	callq	_VectorSubtract
	callq	_VectorLength
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_18
LBB0_10:
	movq	%rbx, %rcx
	jmp	LBB0_15
LBB0_11:
	movq	_qfalse@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_12:
	movq	%r14, %rcx
LBB0_13:
	xorl	%edx, %edx
LBB0_14:
	movl	%edx, (%r15)
LBB0_15:
	movl	(%rcx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	16(%r15), %rax
	movl	(%rax), %edi
	movl	12(%rax), %esi
	callq	_VectorSubtract
	callq	_VectorLength
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	movq	%rbx, %rcx
	ja	LBB0_15
## %bb.19:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_VL_TextureMatrixFromPoints
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	movq	%r13, %r9
	callq	_VL_LightmapMatrixFromPoints
	movq	_numfacets@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movq	%rcx, 8(%r15)
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movl	$4, %edx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_PLANAR_EPSILON,8,3             ## @PLANAR_EPSILON
	.comm	_surfaceOrigin,8,3              ## @surfaceOrigin
	.comm	_drawSurfaces,8,3               ## @drawSurfaces
	.comm	_numfacets,4,2                  ## @numfacets
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VL_GenerateFacetFor4Points     ; -- Begin function VL_GenerateFacetFor4Points
	.p2align	2
_VL_GenerateFacetFor4Points:            ; @VL_GenerateFacetFor4Points
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x26, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x23, x1
	mov	x24, x0
	add	x25, x2, #24
	ldr	w1, [x3, #8]
	ldr	w2, [x4, #8]
	ldr	w3, [x5, #8]
	mov	x0, x25
	bl	_VL_PlaneFromPoints
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x26, #8]
	ldr	w1, [x19, #28]
	bl	_DotProduct
	ldr	s1, [x19, #24]
	fsub	s0, s0, s1
	bl	_fabs
Lloh0:
	adrp	x8, _PLANAR_EPSILON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLANAR_EPSILON@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_3
LBB0_2:
	mov	w8, #0
Lloh3:
	adrp	x27, _qfalse@GOTPAGE
Lloh4:
	ldr	x27, [x27, _qfalse@GOTPAGEOFF]
	b	LBB0_15
LBB0_3:
	ldr	w0, [x22, #8]
Lloh5:
	adrp	x27, _surfaceOrigin@GOTPAGE
Lloh6:
	ldr	x27, [x27, _surfaceOrigin@GOTPAGEOFF]
	ldr	x8, [x27]
Lloh7:
	adrp	x28, _drawSurfaces@GOTPAGE
Lloh8:
	ldr	x28, [x28, _drawSurfaces@GOTPAGEOFF]
	ldr	x9, [x28]
	sub	x9, x24, x9
	ldr	w1, [x8, x9]
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	bl	_VectorAdd
	ldr	w0, [x21, #8]
	ldr	x8, [x27]
	ldr	x9, [x28]
	sub	x9, x24, x9
	ldr	w1, [x8, x9]
	ldr	x8, [x19, #16]
	ldr	w2, [x8, #4]
	bl	_VectorAdd
	ldr	w0, [x20, #8]
	ldr	x8, [x27]
	ldr	x9, [x28]
	sub	x9, x24, x9
	ldr	w1, [x8, x9]
	ldr	x8, [x19, #16]
	ldr	w2, [x8, #8]
	bl	_VectorAdd
	ldr	w0, [x26, #8]
	ldr	x8, [x27]
	ldr	x9, [x28]
	sub	x9, x24, x9
	ldr	w1, [x8, x9]
	ldr	x8, [x19, #16]
	ldr	w2, [x8, #12]
	bl	_VectorAdd
	ldr	x8, [x19, #16]
	ldp	w1, w2, [x8, #4]
	ldr	w3, [x8, #12]
	add	x0, sp, #8
	bl	_VL_PlaneFromPoints
Lloh9:
	adrp	x27, _qfalse@GOTPAGE
Lloh10:
	ldr	x27, [x27, _qfalse@GOTPAGEOFF]
	cbz	w0, LBB0_14
; %bb.4:
	ldr	w2, [x27]
	add	x1, sp, #8
	mov	x0, x25
	bl	_Plane_Equal
	cbz	w0, LBB0_14
; %bb.5:
	ldr	x8, [x19, #16]
	ldp	w1, w2, [x8, #8]
	ldr	w3, [x8]
	add	x0, sp, #8
	bl	_VL_PlaneFromPoints
Lloh11:
	adrp	x27, _qfalse@GOTPAGE
Lloh12:
	ldr	x27, [x27, _qfalse@GOTPAGEOFF]
	cbz	w0, LBB0_14
; %bb.6:
	ldr	w2, [x27]
	add	x1, sp, #8
	mov	x0, x25
	bl	_Plane_Equal
	cbz	w0, LBB0_14
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	w1, [x8, #12]
	ldp	w2, w3, [x8]
	add	x0, sp, #8
	bl	_VL_PlaneFromPoints
Lloh13:
	adrp	x27, _qfalse@GOTPAGE
Lloh14:
	ldr	x27, [x27, _qfalse@GOTPAGEOFF]
	cbz	w0, LBB0_14
; %bb.8:
	ldr	w2, [x27]
	add	x1, sp, #8
	mov	x0, x25
	bl	_Plane_Equal
	cbz	w0, LBB0_14
; %bb.9:
	ldr	x8, [x22]
	ldr	w9, [x8]
	ldp	x0, x10, [x19, #32]
	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]
	ldp	x11, x10, [x10, #16]
	str	w9, [x11]
	ldr	w8, [x8, #4]
	str	w8, [x11, #4]
	ldr	x8, [x26]
	ldr	w9, [x8]
	str	w9, [x10]
	ldr	w8, [x8, #4]
	str	w8, [x10, #4]
	ldr	x8, [x19, #16]
	ldp	w2, w3, [x8]
	mov	x1, x25
	bl	_VL_GenerateBoundaryForPoints
	ldr	x8, [x19, #32]
	add	x0, x8, #4
	ldr	x8, [x19, #16]
	ldp	w2, w3, [x8, #4]
	mov	x1, x25
	bl	_VL_GenerateBoundaryForPoints
	ldr	x8, [x19, #32]
	add	x0, x8, #8
	ldr	x8, [x19, #16]
	ldp	w2, w3, [x8, #8]
	mov	x1, x25
	bl	_VL_GenerateBoundaryForPoints
	ldr	x8, [x19, #32]
	add	x0, x8, #12
	ldr	x8, [x19, #16]
	ldr	w2, [x8, #12]
	ldr	w3, [x8]
	mov	x1, x25
	bl	_VL_GenerateBoundaryForPoints
	ldr	x8, [x19, #16]
	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_13
; %bb.10:
	ldr	x8, [x19, #16]
	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_13
; %bb.11:
	ldr	x8, [x19, #16]
	ldp	w1, w0, [x8, #8]
	bl	_VectorSubtract
	bl	_VectorLength
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16313, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.mi	LBB0_13
; %bb.12:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	w1, [x8, #12]
	bl	_VectorSubtract
	bl	_VectorLength
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16313, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.pl	LBB0_17
LBB0_13:
Lloh15:
	adrp	x27, _qfalse@GOTPAGE
Lloh16:
	ldr	x27, [x27, _qfalse@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
	mov	w8, #0
LBB0_15:
	str	w8, [x19]
LBB0_16:
	ldr	w0, [x27]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_VL_TextureMatrixFromPoints
	mov	x0, x24
	mov	x1, x23
	mov	x2, x19
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_VL_LightmapMatrixFromPoints
Lloh17:
	adrp	x8, _numfacets@GOTPAGE
Lloh18:
	ldr	x8, [x8, _numfacets@GOTPAGEOFF]
	ldrsw	x9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	str	x9, [x19, #8]
Lloh19:
	adrp	x27, _qtrue@GOTPAGE
Lloh20:
	ldr	x27, [x27, _qtrue@GOTPAGEOFF]
	mov	w8, #4
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_PLANAR_EPSILON,8,3             ; @PLANAR_EPSILON
	.comm	_surfaceOrigin,8,3              ; @surfaceOrigin
	.comm	_drawSurfaces,8,3               ; @drawSurfaces
	.comm	_numfacets,4,2                  ; @numfacets
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
