	.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_R_SplitLightVolume
LCPI0_0:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_VL_R_SplitLightVolume
	.p2align	4, 0x90
_VL_R_SplitLightVolume:                 ## @VL_R_SplitLightVolume
	.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
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-104(%rbp), %rsi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movq	%rbx, %rdi
	callq	_VL_SplitLightVolume
	movl	%eax, %r13d
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.1:
	movl	-44(%rbp), %edi
	movl	60(%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	-48(%rbp), %edi
	movl	56(%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	_numvolumes@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movq	%rcx, -56(%rbp)
	movl	40(%rbx), %eax
	movl	%eax, -64(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -104(%rbp)
	movups	24(%rbx), %xmm0
	movups	%xmm0, -80(%rbp)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_3
## %bb.2:
	movl	-84(%rbp), %edi
	movl	20(%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	-88(%rbp), %edi
	movl	16(%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%rbx), %rax
LBB0_3:
	movq	%rax, -96(%rbp)
	leaq	-104(%rbp), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_VL_R_FloodLight
	cmpq	$0, -104(%rbp)
	js	LBB0_5
## %bb.4:
	leaq	-104(%rbp), %rsi
	movq	%r14, %rdi
	callq	_VL_R_CastLightAtSurface
LBB0_5:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_numvolumes,4,2                 ## @numvolumes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VL_R_SplitLightVolume          ; -- Begin function VL_R_SplitLightVolume
	.p2align	2
_VL_R_SplitLightVolume:                 ; @VL_R_SplitLightVolume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x4
	mov	x22, x3
	mov	x23, x1
	mov	x19, x0
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16313, lsl #48
	fmov	d0, x8
	mov	x1, sp
	mov	x0, x23
	bl	_VL_SplitLightVolume
	mov	x21, x0
	cmp	w0, #2
	b.ne	LBB0_5
; %bb.1:
	ldr	w0, [sp, #60]
	ldr	w1, [x23, #60]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #56]
	ldr	w1, [x23, #56]
	mov	w2, #4
	bl	_memcpy
Lloh0:
	adrp	x8, _numvolumes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _numvolumes@GOTPAGEOFF]
	ldrsw	x9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	str	x9, [sp, #48]
	ldr	w8, [x23, #40]
	str	w8, [sp, #40]
	ldp	x9, x8, [x23]
	str	x9, [sp]
	ldur	q0, [x23, #24]
	stur	q0, [sp, #24]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.2:
	ldr	w0, [sp, #20]
	ldr	w1, [x23, #20]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #16]
	ldr	w1, [x23, #16]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x23, #8]
LBB0_3:
	str	x8, [sp, #8]
	mov	x1, sp
	mov	x0, x19
	mov	x2, x22
	mov	x3, x20
	bl	_VL_R_FloodLight
	ldr	x8, [sp]
	tbnz	x8, #63, LBB0_5
; %bb.4:
	mov	x1, sp
	mov	x0, x19
	bl	_VL_R_CastLightAtSurface
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_numvolumes,4,2                 ; @numvolumes
.subsections_via_symbols
