	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function LightingAtSample
LCPI0_0:
	.long	0x41800000                      ## float 16
LCPI0_2:
	.long	0xc2000000                      ## float -32
LCPI0_3:
	.long	0x3d000000                      ## float 0.03125
LCPI0_4:
	.long	0x3f800000                      ## float 1
LCPI0_7:
	.long	0xbf800000                      ## float -1
LCPI0_8:
	.long	0xc1000000                      ## float -8
LCPI0_9:
	.long	0x41000000                      ## float 8
LCPI0_10:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
LCPI0_5:
	.quad	0x3ff0000000000000              ## double 1
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_6:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_LightingAtSample
	.p2align	4, 0x90
_LightingAtSample:                      ## @LightingAtSample
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_ambientColor@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdx, %rsi
	callq	_VectorCopy
	movq	_lights@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_46
## %bb.1:
                                        ## implicit-def: $xmm0
                                        ## kill: killed $xmm0
	jmp	LBB0_2
LBB0_36:                                ##   in Loop: Header=BB0_2 Depth=1
	movss	%xmm5, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	80(%r14), %r14
	testq	%r14, %r14
	je	LBB0_46
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_DotProduct
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_DotProduct
	movss	-64(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	ucomiss	%xmm1, %xmm0
	ja	LBB0_45
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_exactPointToPolygon@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	8(%r14), %rax
	movq	_emit_area@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	je	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rcx, %rax
	jne	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	callq	_DotProduct
	movaps	%xmm0, %xmm1
	subss	24(%r14), %xmm1
	cmpq	$0, 64(%r14)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movss	LCPI0_7(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	ja	LBB0_45
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r13, %r13
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_notrace@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rsi
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	leaq	-88(%rbp), %rdx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movss	%xmm1, -64(%rbp)                ## 4-byte Spill
	callq	_TraceLine
	movss	-64(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	cmpq	$0, -80(%rbp)
	jne	LBB0_45
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	ucomiss	LCPI0_8(%rip), %xmm1
	ja	LBB0_12
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_emit_point@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	movq	%r12, %rsi
	callq	_VectorSubtract
	callq	_VectorNormalize
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	maxss	%xmm0, %xmm1
	movss	%xmm1, -64(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_DotProduct
	movaps	%xmm0, %xmm5
	cmpq	$0, 56(%r14)
	movss	40(%r14), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	mulss	%xmm0, %xmm5
	movq	_linearScale@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm5
	subss	-64(%rbp), %xmm5                ## 4-byte Folded Reload
LBB0_33:                                ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm1, %xmm1
	xorps	%xmm0, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	ucomiss	%xmm5, %xmm1
	ja	LBB0_45
	jmp	LBB0_35
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_emit_spotlight@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	movq	%r12, %rsi
	callq	_VectorSubtract
	movq	16(%r14), %rsi
	callq	_DotProduct
	ucomiss	LCPI0_10(%rip), %xmm0
	ja	LBB0_45
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	xorps	LCPI0_1(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movq	(%r14), %rdi
	movq	16(%r14), %rsi
	callq	_VectorMA
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
	mulss	44(%r14), %xmm0
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movq	%r12, %rdi
	callq	_VectorSubtract
	callq	_VectorLength
	movaps	-64(%rbp), %xmm1                ## 16-byte Reload
	ucomiss	%xmm1, %xmm0
	jae	LBB0_45
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movaps	%xmm0, %xmm2
	movaps	%xmm1, %xmm0
	addss	LCPI0_2(%rip), %xmm0
	subss	%xmm2, %xmm1
	mulss	LCPI0_3(%rip), %xmm1
	cmpnless	%xmm0, %xmm2
	andps	%xmm2, %xmm1
	movss	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	andnps	%xmm0, %xmm2
	orps	%xmm1, %xmm2
	movaps	%xmm2, -64(%rbp)                ## 16-byte Spill
	callq	_VectorNormalize
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	maxss	%xmm0, %xmm1
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_DotProduct
	movss	40(%r14), %xmm5                 ## xmm5 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm1
	divss	%xmm1, %xmm5
	mulss	%xmm0, %xmm5
	mulss	-64(%rbp), %xmm5                ## 16-byte Folded Reload
	jmp	LBB0_35
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax
	movaps	LCPI0_5(%rip), %xmm0            ## xmm0 = [1.0E+0,1.0E+0]
	movups	%xmm0, (%rax)
	movabsq	$4607182418800017408, %rcx      ## imm = 0x3FF0000000000000
	movq	%rcx, 16(%rax)
	ucomiss	LCPI0_8(%rip), %xmm1
	jbe	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movss	LCPI0_9(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movss	LCPI0_9(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	callq	_VectorMA
	jmp	LBB0_15
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rcx, %rax
	jne	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	movq	%r12, %rsi
	callq	_VectorSubtract
	callq	_VectorNormalize
	movss	%xmm0, -92(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_DotProduct
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	jae	LBB0_45
## %bb.30:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %rdi
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	callq	_DotProduct
	movss	-64(%rbp), %xmm5                ## 4-byte Reload
                                        ## xmm5 = mem[0],zero,zero,zero
	xorps	LCPI0_1(%rip), %xmm0
	mulss	%xmm0, %xmm5
	xorps	%xmm0, %xmm0
	ucomiss	%xmm5, %xmm0
	jae	LBB0_45
## %bb.31:                              ##   in Loop: Header=BB0_2 Depth=1
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	maxss	-92(%rbp), %xmm0                ## 4-byte Folded Reload
	cmpq	$0, 56(%r14)
	movss	40(%r14), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	je	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_2 Depth=1
	mulss	%xmm1, %xmm5
	movq	_linearScale@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm5
	subss	%xmm0, %xmm5
	jmp	LBB0_33
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movss	-64(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm1
	divss	%xmm1, %xmm0
	mulss	%xmm0, %xmm5
	jmp	LBB0_35
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_VectorCopy
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	72(%r14), %edx
	movq	%rbx, %rsi
	callq	_PointToPolygonFormFactor
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	jb	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 64(%r14)
	je	LBB0_45
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	xorps	LCPI0_1(%rip), %xmm0
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r14), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	cvtss2sd	%xmm1, %xmm1
	movq	-88(%rbp), %rcx
	movss	(%r15), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	mulsd	(%rcx), %xmm1
	cvtss2sd	%xmm2, %xmm2
	addsd	%xmm2, %xmm1
	cvtsd2ss	%xmm1, %xmm1
	movss	4(%r15), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	movss	%xmm1, (%r15)
	movss	4(%rax), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	cvtss2sd	%xmm1, %xmm1
	cvtss2sd	%xmm2, %xmm2
	mulsd	8(%rcx), %xmm1
	addsd	%xmm2, %xmm1
	cvtsd2ss	%xmm1, %xmm1
	movss	%xmm1, 4(%r15)
	mulss	8(%rax), %xmm0
	cvtss2sd	%xmm0, %xmm0
	movss	8(%r15), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	mulsd	16(%rcx), %xmm0
	addsd	%xmm1, %xmm0
	jmp	LBB0_44
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movss	-44(%rbp), %xmm5                ## 4-byte Reload
                                        ## xmm5 = mem[0],zero,zero,zero
LBB0_35:                                ##   in Loop: Header=BB0_2 Depth=1
	movss	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm5, %xmm0
	jae	LBB0_36
## %bb.37:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%r13, %r13
	je	LBB0_42
## %bb.38:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_notrace@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_42
## %bb.39:                              ##   in Loop: Header=BB0_2 Depth=1
	movss	%xmm5, -64(%rbp)                ## 4-byte Spill
	movq	(%r14), %rsi
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	leaq	-88(%rbp), %rdx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_TraceLine
	cmpq	$0, -80(%rbp)
	je	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_2 Depth=1
	movss	-64(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_45
LBB0_42:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax
	movaps	LCPI0_5(%rip), %xmm0            ## xmm0 = [1.0E+0,1.0E+0]
	movups	%xmm0, (%rax)
	movabsq	$4607182418800017408, %rcx      ## imm = 0x3FF0000000000000
	movq	%rcx, 16(%rax)
	movsd	LCPI0_6(%rip), %xmm2            ## xmm2 = mem[0],zero
	movapd	%xmm2, %xmm0
	movapd	%xmm2, %xmm1
	jmp	LBB0_43
LBB0_41:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax
	movsd	(%rax), %xmm2                   ## xmm2 = mem[0],zero
	movsd	8(%rax), %xmm1                  ## xmm1 = mem[0],zero
	movsd	16(%rax), %xmm0                 ## xmm0 = mem[0],zero
	movss	-64(%rbp), %xmm5                ## 4-byte Reload
                                        ## xmm5 = mem[0],zero,zero,zero
LBB0_43:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r14), %rax
	movss	(%rax), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm5, %xmm3
	cvtss2sd	%xmm3, %xmm3
	mulsd	%xmm2, %xmm3
	movss	(%r15), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	movss	4(%r15), %xmm4                  ## xmm4 = mem[0],zero,zero,zero
	cvtss2sd	%xmm2, %xmm2
	addsd	%xmm3, %xmm2
	cvtsd2ss	%xmm2, %xmm2
	movss	%xmm2, (%r15)
	movss	4(%rax), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm5, %xmm2
	cvtss2sd	%xmm2, %xmm2
	mulsd	%xmm1, %xmm2
	xorps	%xmm1, %xmm1
	cvtss2sd	%xmm4, %xmm1
	addsd	%xmm2, %xmm1
	cvtsd2ss	%xmm1, %xmm1
	movss	%xmm1, 4(%r15)
	movss	8(%rax), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm5, %xmm1
	cvtss2sd	%xmm1, %xmm1
	mulsd	%xmm0, %xmm1
	movss	8(%r15), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	movss	%xmm5, -44(%rbp)                ## 4-byte Spill
LBB0_44:                                ##   in Loop: Header=BB0_2 Depth=1
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, 8(%r15)
	jmp	LBB0_45
LBB0_34:                                ##   in Loop: Header=BB0_2 Depth=1
	mulss	%xmm0, %xmm0
	divss	%xmm0, %xmm1
	mulss	%xmm1, %xmm5
	jmp	LBB0_35
LBB0_46:
	orq	%r13, -104(%rbp)                ## 8-byte Folded Spill
	je	LBB0_48
## %bb.47:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_SunToPlane
LBB0_48:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ambientColor,8,3               ## @ambientColor
	.comm	_lights,8,3                     ## @lights
	.comm	_exactPointToPolygon,8,3        ## @exactPointToPolygon
	.comm	_emit_area,8,3                  ## @emit_area
	.comm	_notrace,4,2                    ## @notrace
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_emit_point,8,3                 ## @emit_point
	.comm	_linearScale,4,2                ## @linearScale
	.comm	_emit_spotlight,8,3             ## @emit_spotlight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LightingAtSample               ; -- Begin function LightingAtSample
	.p2align	2
_LightingAtSample:                      ; @LightingAtSample
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d15, d14, [sp, #32]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #48]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #64]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	.cfi_offset b14, -152
	.cfi_offset b15, -160
	mov	x19, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ambientColor@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ambientColor@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	mov	x1, x2
	bl	_VectorCopy
Lloh3:
	adrp	x8, _lights@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lights@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
	cbz	x25, LBB0_44
; %bb.1:
Lloh6:
	adrp	x26, _exactPointToPolygon@GOTPAGE
Lloh7:
	ldr	x26, [x26, _exactPointToPolygon@GOTPAGEOFF]
Lloh8:
	adrp	x27, _emit_area@GOTPAGE
Lloh9:
	ldr	x27, [x27, _emit_area@GOTPAGEOFF]
	fmov	s10, #16.00000000
Lloh10:
	adrp	x28, _emit_point@GOTPAGE
Lloh11:
	ldr	x28, [x28, _emit_point@GOTPAGEOFF]
	fmov	s11, #1.00000000
	fmov.2d	v0, #1.00000000
	str	q0, [sp]                        ; 16-byte Folded Spill
	fmov	s14, #-1.00000000
	fmov	s15, #-8.00000000
	fmov	s12, #8.00000000
                                        ; implicit-def: $s13
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	fmov	s13, s8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x25, [x25, #80]
	cbz	x25, LBB0_44
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	mov	x1, x21
	bl	_DotProduct
	fmov	s8, s0
	mov	x0, x21
	mov	x1, x22
	bl	_DotProduct
	fsub	s0, s8, s0
	fcmp	s0, #0.0
	b.mi	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x26]
	ldr	x8, [x25, #8]
	ldr	x9, [x27]
	cmp	x10, #0
	ccmp	x8, x9, #0, ne
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x28]
	cmp	x8, x10
	b.ne	LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x25]
	mov	x1, x22
	bl	_VectorSubtract
	bl	_VectorNormalize
	fmax	s8, s0, s10
	mov	x0, x21
	bl	_DotProduct
	ldr	x8, [x25, #56]
	ldr	s1, [x25, #40]
	cbz	x8, LBB0_28
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	fmul	s0, s0, s1
Lloh12:
	adrp	x8, _linearScale@GOTPAGE
Lloh13:
	ldr	x8, [x8, _linearScale@GOTPAGEOFF]
Lloh14:
	ldr	s1, [x8]
	fnmsub	s8, s0, s1, s8
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	movi	d13, #0000000000000000
	fcmp	s8, #0.0
	b.mi	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	fcmp	s8, s11
	b.ls	LBB0_2
	b	LBB0_36
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x25, #16]
	mov	x0, x22
	bl	_DotProduct
	ldr	s1, [x25, #24]
	fsub	s8, s0, s1
	ldr	x8, [x25, #64]
	cbnz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	fcmp	s8, s14
	b.mi	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x24, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x8, _notrace@GOTPAGE
Lloh16:
	ldr	x8, [x8, _notrace@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cbnz	w8, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x25]
Lloh18:
	adrp	x8, _qfalse@GOTPAGE
Lloh19:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	add	x2, sp, #16
	mov	x0, x22
	mov	x4, x19
	bl	_TraceLine
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_3
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh21:
	adrp	x10, _emit_spotlight@GOTPAGE
Lloh22:
	ldr	x10, [x10, _emit_spotlight@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x25]
	mov	x1, x22
	bl	_VectorSubtract
	ldr	x1, [x25, #16]
	bl	_DotProduct
	fcmp	s0, #0.0
	b.gt	LBB0_3
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	fneg	s8, s0
	ldr	x0, [x25]
	ldr	x1, [x25, #16]
	fmov	s0, s8
	bl	_VectorMA
	ldr	s0, [x25, #44]
	fmul	s8, s0, s8
	mov	x0, x22
	bl	_VectorSubtract
	bl	_VectorLength
	fcmp	s0, s8
	b.ge	LBB0_3
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	movi.2s	v1, #194, lsl #24
	fadd	s1, s8, s1
	fsub	s2, s8, s0
	movi.2s	v3, #61, lsl #24
	fmul	s2, s2, s3
	fcmp	s0, s1
	fcsel	s8, s2, s11, hi
	bl	_VectorNormalize
	fmax	s9, s0, s10
	mov	x0, x21
	bl	_DotProduct
	ldr	s1, [x25, #40]
	fmul	s2, s9, s9
	fdiv	s1, s1, s2
	fmul	s0, s0, s1
	fmul	s8, s8, s0
	fcmp	s8, s11
	b.ls	LBB0_2
	b	LBB0_36
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	str	q0, [x8]
	mov	x9, #4607182418800017408
	str	x9, [x8, #16]
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	fcmp	s8, s15
	fccmp	s8, s12, #0, gt
	b.mi	LBB0_30
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_VectorCopy
	b	LBB0_31
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x8, x9
	b.ne	LBB0_35
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x25]
	mov	x1, x22
	bl	_VectorSubtract
	bl	_VectorNormalize
	fmov	s8, s0
	mov	x0, x21
	bl	_DotProduct
	fcmp	s0, #0.0
	b.ls	LBB0_3
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
	fmov	s9, s0
	ldr	x0, [x25, #16]
	bl	_DotProduct
	fneg	s0, s0
	fmul	s0, s9, s0
	fcmp	s0, #0.0
	b.ls	LBB0_3
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
	fmax	s1, s8, s10
	ldr	x8, [x25, #56]
	ldr	s2, [x25, #40]
	cbz	x8, LBB0_43
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
	fmul	s0, s0, s2
Lloh24:
	adrp	x8, _linearScale@GOTPAGE
Lloh25:
	ldr	x8, [x8, _linearScale@GOTPAGEOFF]
Lloh26:
	ldr	s2, [x8]
	fnmsub	s8, s0, s2, s1
	b	LBB0_9
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
	fmul	s2, s8, s8
	fdiv	s1, s1, s2
LBB0_29:                                ;   in Loop: Header=BB0_4 Depth=1
	fmul	s8, s0, s1
	fcmp	s8, s11
	b.ls	LBB0_2
	b	LBB0_36
LBB0_30:                                ;   in Loop: Header=BB0_4 Depth=1
	fsub	s0, s12, s8
	ldr	x1, [x25, #16]
	mov	x0, x22
	bl	_VectorMA
LBB0_31:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x25, #72]
	mov	x1, x21
	bl	_PointToPolygonFormFactor
	fcmp	s0, #0.0
	b.hi	LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, #64]
	cbz	x8, LBB0_3
; %bb.33:                               ;   in Loop: Header=BB0_4 Depth=1
	fneg	s0, s0
LBB0_34:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, #32]
	ldr	s1, [x8]
	fmul	s1, s0, s1
	fcvt	d1, s1
	ldr	x9, [sp, #16]
	ldr	d2, [x9]
	ldp	s3, s4, [x20]
	fcvt	d3, s3
	fmadd	d1, d1, d2, d3
	fcvt	s1, d1
	str	s1, [x20]
	ldr	s1, [x8, #4]
	fmul	s1, s0, s1
	fcvt	d1, s1
	ldr	d2, [x9, #8]
	fcvt	d3, s4
	fmadd	d1, d1, d2, d3
	fcvt	s1, d1
	str	s1, [x20, #4]
	ldr	s1, [x8, #8]
	fmul	s0, s0, s1
	fcvt	d0, s0
	ldr	d1, [x9, #16]
	ldr	s2, [x20, #8]
	fcvt	d2, s2
	fmadd	d0, d0, d1, d2
	b	LBB0_42
LBB0_35:                                ;   in Loop: Header=BB0_4 Depth=1
	fmov	s8, s13
	fcmp	s8, s11
	b.ls	LBB0_2
LBB0_36:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x24, LBB0_40
; %bb.37:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh27:
	adrp	x8, _notrace@GOTPAGE
Lloh28:
	ldr	x8, [x8, _notrace@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cbnz	w8, LBB0_40
; %bb.38:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x25]
Lloh30:
	adrp	x8, _qfalse@GOTPAGE
Lloh31:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	add	x2, sp, #16
	mov	x0, x22
	mov	x4, x19
	bl	_TraceLine
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_2
; %bb.39:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
	ldp	d2, d1, [x8]
	ldr	d0, [x8, #16]
	b	LBB0_41
LBB0_40:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	str	q0, [x8]
	mov	x9, #4607182418800017408
	str	x9, [x8, #16]
	fmov	d0, #1.00000000
	fmov	d1, #1.00000000
	fmov	d2, #1.00000000
LBB0_41:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, #48]
	ldr	s3, [x8]
	fmul	s3, s8, s3
	fcvt	d3, s3
	ldp	s4, s5, [x20]
	fcvt	d4, s4
	fmadd	d2, d3, d2, d4
	fcvt	s2, d2
	str	s2, [x20]
	ldr	s2, [x8, #4]
	fmul	s2, s8, s2
	fcvt	d2, s2
	fcvt	d3, s5
	fmadd	d1, d2, d1, d3
	fcvt	s1, d1
	str	s1, [x20, #4]
	ldr	s1, [x8, #8]
	fmul	s1, s8, s1
	fcvt	d1, s1
	ldr	s2, [x20, #8]
	fcvt	d2, s2
	fmadd	d0, d1, d0, d2
	fmov	s13, s8
LBB0_42:                                ;   in Loop: Header=BB0_4 Depth=1
	fcvt	s0, d0
	str	s0, [x20, #8]
	b	LBB0_3
LBB0_43:                                ;   in Loop: Header=BB0_4 Depth=1
	fmul	s1, s1, s1
	fdiv	s1, s2, s1
	b	LBB0_29
LBB0_44:
	orr	x8, x23, x24
	cbz	x8, LBB0_46
; %bb.45:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_SunToPlane
LBB0_46:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #64]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #48]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ambientColor,8,3               ; @ambientColor
	.comm	_lights,8,3                     ; @lights
	.comm	_exactPointToPolygon,8,3        ; @exactPointToPolygon
	.comm	_emit_area,8,3                  ; @emit_area
	.comm	_notrace,4,2                    ; @notrace
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_emit_point,8,3                 ; @emit_point
	.comm	_linearScale,4,2                ; @linearScale
	.comm	_emit_spotlight,8,3             ; @emit_spotlight
.subsections_via_symbols
