	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LightWorld                     ## -- Begin function LightWorld
	.p2align	4, 0x90
_LightWorld:                            ## @LightWorld
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_SetupGrid
	movq	_entities@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_ambientColor@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_GetVectorForKey
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_FloatForKey
	movl	(%r14), %edi
	movl	%edi, %esi
	callq	_VectorScale
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
	xorl	%eax, %eax
	callq	_CreateEntityLights
	movq	_numPointLights@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
	movq	_numAreaLights@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
	movq	_nogridlighting@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
	movq	_numGridPoints@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TraceGrid@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_RunThreadsOnIndividual
	movq	_gridBounds@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edx
	movl	8(%rax), %ecx
	movl	(%rbx), %r8d
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
LBB0_2:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
	movq	_numDrawSurfaces@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TraceLtm@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_RunThreadsOnIndividual
	movq	_c_visible@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
	movq	_c_occluded@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_qprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_entities,8,3                   ## @entities
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_color"

	.comm	_ambientColor,4,2               ## @ambientColor
L_.str.1:                               ## @.str.1
	.asciz	"ambient"

L_.str.2:                               ## @.str.2
	.asciz	"--- CreateLights ---\n"

L_.str.3:                               ## @.str.3
	.asciz	"%i point lights\n"

	.comm	_numPointLights,4,2             ## @numPointLights
L_.str.4:                               ## @.str.4
	.asciz	"%i area lights\n"

	.comm	_numAreaLights,4,2              ## @numAreaLights
	.comm	_nogridlighting,4,2             ## @nogridlighting
L_.str.5:                               ## @.str.5
	.asciz	"--- TraceGrid ---\n"

	.comm	_numGridPoints,4,2              ## @numGridPoints
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_TraceGrid,4,2                  ## @TraceGrid
L_.str.6:                               ## @.str.6
	.asciz	"%i x %i x %i = %i grid\n"

	.comm	_gridBounds,8,3                 ## @gridBounds
L_.str.7:                               ## @.str.7
	.asciz	"--- TraceLtm ---\n"

	.comm	_numDrawSurfaces,4,2            ## @numDrawSurfaces
	.comm	_TraceLtm,4,2                   ## @TraceLtm
L_.str.8:                               ## @.str.8
	.asciz	"%5i visible samples\n"

	.comm	_c_visible,4,2                  ## @c_visible
L_.str.9:                               ## @.str.9
	.asciz	"%5i occluded samples\n"

	.comm	_c_occluded,4,2                 ## @c_occluded
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LightWorld                     ; -- Begin function LightWorld
	.p2align	2
_LightWorld:                            ; @LightWorld
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	bl	_SetupGrid
Lloh0:
	adrp	x19, _entities@GOTPAGE
Lloh1:
	ldr	x19, [x19, _entities@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x20, _ambientColor@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ambientColor@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_GetVectorForKey
	ldr	x0, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_FloatForKey
	ldr	w0, [x20]
	mov	x1, x0
	bl	_VectorScale
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_qprintf
	bl	_CreateEntityLights
Lloh10:
	adrp	x8, _numPointLights@GOTPAGE
Lloh11:
	ldr	x8, [x8, _numPointLights@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_qprintf
Lloh15:
	adrp	x8, _numAreaLights@GOTPAGE
Lloh16:
	ldr	x8, [x8, _numAreaLights@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_qprintf
Lloh20:
	adrp	x8, _nogridlighting@GOTPAGE
Lloh21:
	ldr	x8, [x8, _nogridlighting@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x19, _qtrue@GOTPAGE
Lloh24:
	ldr	x19, [x19, _qtrue@GOTPAGEOFF]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh25:
	adrp	x0, l_.str.5@PAGE
Lloh26:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_qprintf
Lloh27:
	adrp	x20, _numGridPoints@GOTPAGE
Lloh28:
	ldr	x20, [x20, _numGridPoints@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	w1, [x19]
Lloh29:
	adrp	x8, _TraceGrid@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TraceGrid@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	bl	_RunThreadsOnIndividual
Lloh32:
	adrp	x8, _gridBounds@GOTPAGE
Lloh33:
	ldr	x8, [x8, _gridBounds@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldp	w9, w10, [x8]
	ldr	w8, [x8, #8]
	ldr	w11, [x20]
	stp	x8, x11, [sp, #16]
	stp	x9, x10, [sp]
Lloh35:
	adrp	x0, l_.str.6@PAGE
Lloh36:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_qprintf
LBB0_2:
Lloh37:
	adrp	x0, l_.str.7@PAGE
Lloh38:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_qprintf
Lloh39:
	adrp	x8, _numDrawSurfaces@GOTPAGE
Lloh40:
	ldr	x8, [x8, _numDrawSurfaces@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	ldr	w1, [x19]
Lloh42:
	adrp	x8, _TraceLtm@GOTPAGE
Lloh43:
	ldr	x8, [x8, _TraceLtm@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	bl	_RunThreadsOnIndividual
Lloh45:
	adrp	x8, _c_visible@GOTPAGE
Lloh46:
	ldr	x8, [x8, _c_visible@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh48:
	adrp	x0, l_.str.8@PAGE
Lloh49:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_qprintf
Lloh50:
	adrp	x8, _c_occluded@GOTPAGE
Lloh51:
	ldr	x8, [x8, _c_occluded@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh53:
	adrp	x0, l_.str.9@PAGE
Lloh54:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_qprintf
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_entities,8,3                   ; @entities
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_color"

	.comm	_ambientColor,4,2               ; @ambientColor
l_.str.1:                               ; @.str.1
	.asciz	"ambient"

l_.str.2:                               ; @.str.2
	.asciz	"--- CreateLights ---\n"

l_.str.3:                               ; @.str.3
	.asciz	"%i point lights\n"

	.comm	_numPointLights,4,2             ; @numPointLights
l_.str.4:                               ; @.str.4
	.asciz	"%i area lights\n"

	.comm	_numAreaLights,4,2              ; @numAreaLights
	.comm	_nogridlighting,4,2             ; @nogridlighting
l_.str.5:                               ; @.str.5
	.asciz	"--- TraceGrid ---\n"

	.comm	_numGridPoints,4,2              ; @numGridPoints
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_TraceGrid,4,2                  ; @TraceGrid
l_.str.6:                               ; @.str.6
	.asciz	"%i x %i x %i = %i grid\n"

	.comm	_gridBounds,8,3                 ; @gridBounds
l_.str.7:                               ; @.str.7
	.asciz	"--- TraceLtm ---\n"

	.comm	_numDrawSurfaces,4,2            ; @numDrawSurfaces
	.comm	_TraceLtm,4,2                   ; @TraceLtm
l_.str.8:                               ; @.str.8
	.asciz	"%5i visible samples\n"

	.comm	_c_visible,4,2                  ; @c_visible
l_.str.9:                               ; @.str.9
	.asciz	"%5i occluded samples\n"

	.comm	_c_occluded,4,2                 ; @c_occluded
.subsections_via_symbols
