	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function VS_FloodLight
LCPI0_0:
	.long	0x3dcccccd                      ## float 0.100000001
LCPI0_1:
	.long	0x45800000                      ## float 4096
LCPI0_2:
	.long	0x41000000                      ## float 8
LCPI0_3:
	.long	0x41b40000                      ## float 22.5
LCPI0_4:
	.long	0x42340000                      ## float 45
LCPI0_5:
	.long	0x43bf4000                      ## float 382.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_VS_FloodLight
	.p2align	4, 0x90
_VS_FloodLight:                         ## @VS_FloodLight
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_41
## %bb.1:
	movq	%rdi, %r15
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_40:
	leaq	32(%r15), %rsi
	leaq	-144(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_VS_R_SubdivideAreaSpotLight
	jmp	LBB0_41
LBB0_2:
	movl	48(%r15), %eax
	movq	_LDAT_LINEAR@GOTPCREL(%rip), %rcx
	movss	4(%r15), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	_lightLinearScale@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm0
	jmp	LBB0_7
LBB0_38:
	leaq	32(%r15), %rsi
	leaq	-144(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_VS_R_SubdivideDirectedAreaLight
	jmp	LBB0_41
LBB0_16:
	movl	48(%r15), %eax
	movq	_LDAT_LINEAR@GOTPCREL(%rip), %rcx
	movss	4(%r15), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	cmpl	(%rcx), %eax
	jne	LBB0_18
## %bb.17:
	movq	_lightLinearScale@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm0
	jmp	LBB0_21
LBB0_39:
	leaq	32(%r15), %rsi
	leaq	-144(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_VS_R_SubdivideRadialAreaLight
	jmp	LBB0_41
LBB0_32:
	movl	48(%r15), %eax
	movq	_LDAT_LINEAR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_36
## %bb.33:
	movss	4(%r15), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	ja	LBB0_34
LBB0_36:
	movq	8(%r15), %rdi
	movq	24(%r15), %rsi
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%rdi, %rdx
	callq	_VectorMA
	movq	8(%r15), %rdi
	callq	_VS_LightLeafnum
	movq	_dleafs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	cmpl	$-1, (%rcx,%rax,4)
	je	LBB0_8
## %bb.37:
	callq	_VS_FloodLight.cold.1
	jmp	LBB0_41
LBB0_4:
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jb	LBB0_6
## %bb.5:
	sqrtss	%xmm0, %xmm0
	jmp	LBB0_7
LBB0_18:
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jb	LBB0_20
## %bb.19:
	sqrtss	%xmm0, %xmm0
	jmp	LBB0_21
LBB0_6:
	callq	_sqrt
LBB0_7:
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	_MAX_WORLD_COORD@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	movq	8(%r15), %rdi
	callq	_VS_LightLeafnum
	movq	_dleafs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	cmpl	$-1, (%rcx,%rax,4)
	je	LBB0_8
## %bb.9:
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	maxss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	leaq	-144(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	movq	8(%r15), %rsi
	movq	-136(%rbp), %r8
	movss	(%rsi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	movq	(%r8), %rcx
	movss	%xmm0, (%rcx)
	movss	4(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	movss	%xmm0, 4(%rcx)
	movss	8(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	movss	%xmm0, 8(%rcx)
	movss	(%rsi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	movq	8(%r8), %rax
	movss	%xmm0, (%rax)
	movss	4(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	movss	%xmm0, 4(%rax)
	movss	8(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	movss	%xmm0, 8(%rax)
	movss	(%rsi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	movq	16(%r8), %rax
	movss	%xmm0, (%rax)
	movss	4(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	movss	%xmm0, 4(%rax)
	movss	8(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	movss	%xmm0, 8(%rax)
	movss	(%rsi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	movq	24(%r8), %rax
	movss	%xmm0, (%rax)
	movss	4(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	movss	%xmm0, 4(%rax)
	addss	8(%rsi), %xmm1
	movss	%xmm1, 8(%rax)
	movq	$4, -144(%rbp)
	movl	$4, %ebx
	movl	$1, %r14d
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi
	addq	%r12, %rdi
	movq	%r14, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rbx
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r8,%rdx,8), %rdx
	callq	_VS_PlaneFromPoints
	movq	-144(%rbp), %rbx
	movq	8(%r15), %rsi
	cmpq	%r14, %rbx
	jbe	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-136(%rbp), %r8
	movq	(%r8,%r14,8), %rcx
	addq	$16, %r12
	incq	%r14
	jmp	LBB0_10
LBB0_20:
	callq	_sqrt
LBB0_21:
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movl	16(%r15), %ebx
	leaq	-144(%rbp), %rdi
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	movq	8(%r15), %rdi
	callq	_VS_LightLeafnum
	movq	_dleafs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movslq	%eax, %r12
	cmpl	$-1, (%r14,%r12,4)
	je	LBB0_8
## %bb.22:
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm0
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movaps	%xmm0, %xmm1
	maxss	LCPI0_1(%rip), %xmm1
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm1, -52(%rbp)                ## 4-byte Spill
	mulss	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ebx, %xmm1
	mulss	%xmm0, %xmm1
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	callq	_VectorClear
	movq	24(%r15), %rdi
	callq	_CrossProduct
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_VectorScale
	movq	$0, -144(%rbp)
	movss	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	-136(%rbp), %rax
	movq	(%rax,%rcx,8), %rdi
	movq	24(%r15), %rsi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_RotatePointAroundVector
	movq	8(%r15), %rdi
	movq	-144(%rbp), %rax
	movq	-136(%rbp), %rcx
	movq	(%rcx,%rax,8), %rdx
	movq	%rdx, %rsi
	callq	_VectorAdd
	movq	-144(%rbp), %rax
	movq	-136(%rbp), %rcx
	movq	(%rcx,%rax,8), %rdi
	movq	24(%r15), %rsi
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	%rdi, %rdx
	callq	_VectorMA
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	-144(%rbp), %rcx
	incq	%rcx
	movq	%rcx, -144(%rbp)
	addss	LCPI0_4(%rip), %xmm0
	movss	LCPI0_5(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	ja	LBB0_23
## %bb.24:
	testq	%rcx, %rcx
	je	LBB0_30
## %bb.25:
	xorl	%ebx, %ebx
	xorl	%r8d, %r8d
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rcx
LBB0_29:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	(%r9,%rdx,8), %rdx
	movq	(%r9,%r8,8), %rcx
	callq	_VS_PlaneFromPoints
	movq	-144(%rbp), %rcx
	addq	$16, %rbx
	movq	%r13, %r8
	cmpq	%r13, %rcx
	jbe	LBB0_30
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi
	addq	%rbx, %rdi
	movq	8(%r15), %rsi
	movq	-136(%rbp), %r9
	leaq	1(%r8), %r13
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_29
LBB0_8:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r15)
LBB0_41:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	8(%r15), %rdi
	movq	24(%r15), %rsi
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_VectorMA
	movq	24(%r15), %rdi
	movq	-96(%rbp), %rsi
	callq	_VectorCopy
	movq	-96(%rbp), %rdi
	callq	_VectorInverse
	movq	-96(%rbp), %rdi
	callq	_DotProduct
	movq	%rax, -88(%rbp)
	movq	-96(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	(%r14,%r12,4), %eax
	movl	%eax, -128(%rbp)
	movl	$-1, -124(%rbp)
	movq	_VOLUME_NORMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)
	movq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	-120(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	(%r14,%r12,4), %edx
	leaq	-144(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_VS_R_FloodLight
	cmpl	$0, -124(%rbp)
	js	LBB0_41
## %bb.31:
	leaq	-144(%rbp), %rsi
	movq	%r15, %rdi
	callq	_VS_R_CastLightAtSurface
	jmp	LBB0_41
LBB0_34:
	ucomiss	%xmm1, %xmm0
	jae	LBB0_36
## %bb.35:
	callq	_sqrt
	jmp	LBB0_36
LBB0_15:
	movq	%rsi, %rdi
	callq	_VectorCopy
	ud2
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
LJTI0_0:
	.long	L0_0_set_40
	.long	L0_0_set_39
	.long	L0_0_set_38
	.long	L0_0_set_16
	.long	L0_0_set_2
	.long	L0_0_set_32
	.end_data_region
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function VS_FloodLight.cold.1
_VS_FloodLight.cold.1:                  ## @VS_FloodLight.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
	callq	_VectorClear
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_LDAT_LINEAR,4,2                ## @LDAT_LINEAR
	.comm	_lightLinearScale,4,2           ## @lightLinearScale
	.comm	_MAX_WORLD_COORD,4,2            ## @MAX_WORLD_COORD
	.comm	_dleafs,8,3                     ## @dleafs
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_VOLUME_NORMAL,8,3              ## @VOLUME_NORMAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VS_FloodLight                  ; -- Begin function VS_FloodLight
	.p2align	2
_VS_FloodLight:                         ; @VS_FloodLight
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d11, d10, [sp, #96]             ; 16-byte Folded Spill
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_26
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	add	x1, x19, #32
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcpy
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	bl	_VS_R_SubdivideAreaSpotLight
	b	LBB0_26
LBB0_3:
	ldr	w8, [x19, #48]
Lloh2:
	adrp	x9, _LDAT_LINEAR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LDAT_LINEAR@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	s0, [x19, #4]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.4:
Lloh5:
	adrp	x8, _lightLinearScale@GOTPAGE
Lloh6:
	ldr	x8, [x8, _lightLinearScale@GOTPAGEOFF]
Lloh7:
	ldr	s1, [x8]
	fmul	s8, s0, s1
	b	LBB0_14
LBB0_5:
	add	x1, x19, #32
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcpy
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	bl	_VS_R_SubdivideDirectedAreaLight
	b	LBB0_26
LBB0_6:
	ldr	w8, [x19, #48]
Lloh8:
	adrp	x9, _LDAT_LINEAR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LDAT_LINEAR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	s0, [x19, #4]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.7:
Lloh11:
	adrp	x8, _lightLinearScale@GOTPAGE
Lloh12:
	ldr	x8, [x8, _lightLinearScale@GOTPAGEOFF]
Lloh13:
	ldr	s1, [x8]
	fmul	s8, s0, s1
	b	LBB0_17
LBB0_8:
	add	x1, x19, #32
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcpy
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	bl	_VS_R_SubdivideRadialAreaLight
	b	LBB0_26
LBB0_9:
	ldr	w8, [x19, #48]
Lloh14:
	adrp	x9, _LDAT_LINEAR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LDAT_LINEAR@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.10:
	ldr	s0, [x19, #4]
	fcmp	s0, #0.0
	b.mi	LBB0_27
LBB0_11:
	ldr	x0, [x19, #8]
	ldr	x1, [x19, #24]
	mov	w8, #52429
	movk	w8, #15820, lsl #16
	fmov	s0, w8
	mov	x2, x0
	bl	_VectorMA
	ldr	x0, [x19, #8]
	bl	_VS_LightLeafnum
Lloh17:
	adrp	x8, _dleafs@GOTPAGE
Lloh18:
	ldr	x8, [x8, _dleafs@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	w8, [x8, w0, sxtw #2]
	cmn	w8, #1
	b.eq	LBB0_25
; %bb.12:
	bl	_VS_FloodLight.cold.2
LBB0_13:
	fsqrt	s8, s0
	fcmp	s8, s8
	b.vs	LBB0_29
LBB0_14:
Lloh20:
	adrp	x8, _MAX_WORLD_COORD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MAX_WORLD_COORD@GOTPAGEOFF]
Lloh22:
	ldr	s9, [x8]
	mov	x20, x19
	ldr	x0, [x20, #8]!
	bl	_VS_LightLeafnum
Lloh23:
	adrp	x8, _dleafs@GOTPAGE
Lloh24:
	ldr	x8, [x8, _dleafs@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	w8, [x8, w0, sxtw #2]
	cmn	w8, #1
	b.eq	LBB0_25
; %bb.15:
	add	x0, sp, #8
	fmov	s0, s8
	fmov	s1, s9
	mov	x1, x20
	bl	_VS_FloodLight.cold.1
LBB0_16:
	fsqrt	s8, s0
	fcmp	s8, s8
	b.vs	LBB0_30
LBB0_17:
	ldr	w22, [x19, #16]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #88
	bl	_memset
	ldr	x0, [x19, #8]
	bl	_VS_LightLeafnum
                                        ; kill: def $w0 killed $w0 def $x0
Lloh26:
	adrp	x8, _dleafs@GOTPAGE
Lloh27:
	ldr	x8, [x8, _dleafs@GOTPAGEOFF]
Lloh28:
	ldr	x20, [x8]
	ldr	w8, [x20, w0, sxtw #2]
	cmn	w8, #1
	b.eq	LBB0_25
; %bb.18:
	fadd	s8, s8, s8
	mov	w8, #1166016512
	fmov	s0, w8
	fmaxnm	s9, s8, s0
	sxtw	x21, w0
	fmov	s0, #8.00000000
	fmul	s0, s9, s0
	scvtf	s1, w22
	fmul	s10, s0, s1
	bl	_VectorClear
	ldr	x0, [x19, #24]
	bl	_CrossProduct
	fmov	s0, s10
	bl	_VectorScale
	mov	x8, #0
	str	xzr, [sp, #8]
	mov	w9, #1102315520
	fmov	s10, w9
	mov	w22, #1110704128
	mov	w23, #16384
	movk	w23, #17343, lsl #16
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [sp, #16]
	ldr	x0, [x9, x8, lsl #3]
	ldr	x1, [x19, #24]
	fmov	s0, s10
	bl	_RotatePointAroundVector
	ldr	x0, [x19, #8]
	ldp	x9, x8, [sp, #8]
	ldr	x1, [x8, x9, lsl #3]
	mov	x2, x1
	bl	_VectorAdd
	ldp	x9, x8, [sp, #8]
	ldr	x0, [x8, x9, lsl #3]
	ldr	x1, [x19, #24]
	fmov	s0, s9
	mov	x2, x0
	bl	_VectorMA
	ldr	x8, [sp, #8]
	add	x8, x8, #1
	str	x8, [sp, #8]
	fmov	s0, w22
	fadd	s10, s10, s0
	fmov	s0, w23
	fcmp	s10, s0
	b.mi	LBB0_19
; %bb.20:
	cbz	x8, LBB0_23
; %bb.21:
	mov	x22, #0
	mov	x9, #0
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [sp, #88]
	ldr	x11, [sp, #16]
	add	x0, x10, x22
	ldr	x1, [x19, #8]
	add	x23, x9, #1
	udiv	x10, x23, x8
	msub	x8, x10, x8, x23
	ldr	x2, [x11, x8, lsl #3]
	ldr	x3, [x11, x9, lsl #3]
	bl	_VS_PlaneFromPoints
	ldr	x8, [sp, #8]
	add	x22, x22, #16
	mov	x9, x23
	cmp	x8, x23
	b.hi	LBB0_22
LBB0_23:
	ldr	x0, [x19, #8]
	ldr	x1, [x19, #24]
	fmov	s0, s8
	bl	_VectorMA
	ldr	x0, [x19, #24]
	ldr	x1, [sp, #56]
	bl	_VectorCopy
	ldr	x0, [sp, #56]
	bl	_VectorInverse
	ldr	x0, [sp, #56]
	bl	_DotProduct
	str	x0, [sp, #64]
	ldur	q0, [sp, #56]
	stur	q0, [sp, #72]
	lsl	x21, x21, #2
	ldr	w8, [x20, x21]
	mov	w9, #-1
	stp	w8, w9, [sp, #24]
Lloh29:
	adrp	x8, _VOLUME_NORMAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VOLUME_NORMAL@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	x8, [sp, #48]
	ldr	x0, [sp, #40]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [sp, #32]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w2, [x20, x21]
	add	x1, sp, #8
	mov	x0, x19
	mov	w3, #0
	bl	_VS_R_FloodLight
	ldr	w8, [sp, #28]
	tbnz	w8, #31, LBB0_26
; %bb.24:
	add	x1, sp, #8
	mov	x0, x19
	bl	_VS_R_CastLightAtSurface
	b	LBB0_26
LBB0_25:
Lloh32:
	adrp	x8, _qtrue@GOTPAGE
Lloh33:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [x19, #40]
LBB0_26:
	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	d9, d8, [sp, #112]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_27:
	fsqrt	s1, s0
	fcmp	s1, s1
	b.vc	LBB0_11
; %bb.28:
	bl	_sqrt
	b	LBB0_11
LBB0_29:
	bl	_sqrt
	fmov	s8, s0
	b	LBB0_14
LBB0_30:
	bl	_sqrt
	fmov	s8, s0
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2                               ; -- Begin function VS_FloodLight.cold.1
_VS_FloodLight.cold.1:                  ; @VS_FloodLight.cold.1
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x1
	mov	x20, x0
	fcmp	s0, s1
	fcsel	s8, s0, s1, gt
	mov	w1, #0
	mov	w2, #88
	bl	_memset
	ldr	x1, [x19]
	ldr	x8, [x20, #8]
	ldr	s0, [x1]
	fsub	s0, s0, s8
	ldp	x3, x9, [x8]
	str	s0, [x3]
	ldr	s0, [x1, #4]
	fadd	s0, s8, s0
	str	s0, [x3, #4]
	ldr	s0, [x1, #8]
	fadd	s0, s8, s0
	str	s0, [x3, #8]
	ldr	s0, [x1]
	fsub	s0, s0, s8
	str	s0, [x9]
	ldr	s0, [x1, #4]
	fadd	s0, s8, s0
	str	s0, [x9, #4]
	ldr	s0, [x1, #8]
	fsub	s0, s0, s8
	str	s0, [x9, #8]
	ldr	s0, [x1]
	fsub	s0, s0, s8
	ldp	x2, x9, [x8, #8]
	str	s0, [x9]
	ldr	s0, [x1, #4]
	fsub	s0, s0, s8
	str	s0, [x9, #4]
	ldr	s0, [x1, #8]
	fsub	s0, s0, s8
	str	s0, [x9, #8]
	ldr	s0, [x1]
	fsub	s0, s0, s8
	ldr	x8, [x8, #24]
	str	s0, [x8]
	ldr	s0, [x1, #4]
	fsub	s0, s0, s8
	str	s0, [x8, #4]
	ldr	s0, [x1, #8]
	fadd	s0, s8, s0
	str	s0, [x8, #8]
	mov	w8, #4
	str	x8, [x20]
	ldr	x0, [x20, #80]
	bl	_VS_PlaneFromPoints
	ldr	x8, [x20]
	ldr	x1, [x19]
	cmp	x8, #2
	b.lo	LBB1_3
; %bb.1:
	mov	w21, #1
	mov	w22, #16
LBB1_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x3, [x9, x21, lsl #3]
	ldr	x10, [x20, #80]
	add	x21, x21, #1
	add	x0, x10, x22
	udiv	x10, x21, x8
	msub	x8, x10, x8, x21
	ldr	x2, [x9, x8, lsl #3]
	bl	_VS_PlaneFromPoints
	ldr	x8, [x20]
	ldr	x1, [x19]
	add	x22, x22, #16
	cmp	x8, x21
	b.hi	LBB1_2
LBB1_3:
	mov	x0, x1
	bl	_VectorCopy
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function VS_FloodLight.cold.2
_VS_FloodLight.cold.2:                  ; @VS_FloodLight.cold.2
	.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
	bl	_VectorClear
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.comm	_LDAT_LINEAR,4,2                ; @LDAT_LINEAR
	.comm	_lightLinearScale,4,2           ; @lightLinearScale
	.comm	_MAX_WORLD_COORD,4,2            ; @MAX_WORLD_COORD
	.comm	_dleafs,8,3                     ; @dleafs
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_VOLUME_NORMAL,8,3              ; @VOLUME_NORMAL
.subsections_via_symbols
