	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VS_TestLightLeafs              ## -- Begin function VS_TestLightLeafs
	.p2align	4, 0x90
_VS_TestLightLeafs:                     ## @VS_TestLightLeafs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_numvsounds@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.1:
	xorl	%ebx, %ebx
	movq	_vsounds@GOTPCREL(%rip), %r15
	movq	_LIGHT_POINTRADIAL@GOTPCREL(%rip), %r12
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edx
	movl	8(%rax), %ecx
	callq	_qprintf
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %r13
	movq	(%r13), %rax
	cmpq	(%r12), %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_LIGHT_POINTSPOT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rdi
	callq	_VS_LightLeafnum
	movq	_dleafs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	cmpl	$-1, (%rcx,%rax,4)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	leaq	L_.str(%rip), %rdi
	cmpq	(%r12), %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	_LIGHT_POINTSPOT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_numvsounds,4,2                 ## @numvsounds
	.comm	_vsounds,8,3                    ## @vsounds
	.comm	_LIGHT_POINTRADIAL,8,3          ## @LIGHT_POINTRADIAL
	.comm	_LIGHT_POINTSPOT,8,3            ## @LIGHT_POINTSPOT
	.comm	_dleafs,8,3                     ## @dleafs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"light in solid at %1.1f %1.1f %1.1f\n"

L_.str.1:                               ## @.str.1
	.asciz	"spot light in solid at %1.1f %1.1f %1.1f\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VS_TestLightLeafs              ; -- Begin function VS_TestLightLeafs
	.p2align	2
_VS_TestLightLeafs:                     ; @VS_TestLightLeafs
	.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
Lloh0:
	adrp	x19, _numvsounds@GOTPAGE
Lloh1:
	ldr	x19, [x19, _numvsounds@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x20, #0
Lloh2:
	adrp	x21, _vsounds@GOTPAGE
Lloh3:
	ldr	x21, [x21, _vsounds@GOTPAGEOFF]
Lloh4:
	adrp	x22, _LIGHT_POINTRADIAL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _LIGHT_POINTRADIAL@GOTPAGEOFF]
Lloh6:
	adrp	x23, _LIGHT_POINTSPOT@GOTPAGE
Lloh7:
	ldr	x23, [x23, _LIGHT_POINTSPOT@GOTPAGEOFF]
Lloh8:
	adrp	x24, l_.str@PAGE
Lloh9:
	add	x24, x24, l_.str@PAGEOFF
Lloh10:
	adrp	x25, _dleafs@GOTPAGE
Lloh11:
	ldr	x25, [x25, _dleafs@GOTPAGEOFF]
Lloh12:
	adrp	x26, l_.str.1@PAGE
Lloh13:
	add	x26, x26, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27, #8]
	ldp	w1, w2, [x8]
	ldr	w3, [x8, #8]
	bl	_qprintf
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x27, [x8, x20, lsl #3]
	ldr	x8, [x27]
	ldr	x9, [x22]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x27, #8]
	bl	_VS_LightLeafnum
	ldr	x8, [x25]
	ldr	w8, [x8, w0, sxtw #2]
	cmn	w8, #1
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	ldr	x9, [x22]
	mov	x0, x24
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x23]
	mov	x0, x26
	cmp	x8, x9
	b.eq	LBB0_2
	b	LBB0_3
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_numvsounds,4,2                 ; @numvsounds
	.comm	_vsounds,8,3                    ; @vsounds
	.comm	_LIGHT_POINTRADIAL,8,3          ; @LIGHT_POINTRADIAL
	.comm	_LIGHT_POINTSPOT,8,3            ; @LIGHT_POINTSPOT
	.comm	_dleafs,8,3                     ; @dleafs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"light in solid at %1.1f %1.1f %1.1f\n"

l_.str.1:                               ; @.str.1
	.asciz	"spot light in solid at %1.1f %1.1f %1.1f\n"

.subsections_via_symbols
