	.file	"extr_light.c_LightWorld.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_color"
.LC1:
	.string	"ambient"
.LC2:
	.string	"--- CreateLights ---\n"
.LC3:
	.string	"%i point lights\n"
.LC4:
	.string	"%i area lights\n"
.LC5:
	.string	"--- TraceGrid ---\n"
.LC6:
	.string	"%i x %i x %i = %i grid\n"
.LC7:
	.string	"--- TraceLtm ---\n"
.LC8:
	.string	"%5i visible samples\n"
.LC9:
	.string	"%5i occluded samples\n"
	.text
	.p2align 4
	.globl	LightWorld
	.type	LightWorld, @function
LightWorld:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	xor	eax, eax
	call	SetupGrid@PLT
	mov	edx, DWORD PTR ambientColor[rip]
	mov	rdi, QWORD PTR entities[rip]
	lea	rsi, .LC0[rip]
	call	GetVectorForKey@PLT
	mov	rdi, QWORD PTR entities[rip]
	lea	rsi, .LC1[rip]
	call	FloatForKey@PLT
	mov	edi, DWORD PTR ambientColor[rip]
	mov	esi, edi
	call	VectorScale@PLT
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	qprintf@PLT
	xor	eax, eax
	call	CreateEntityLights@PLT
	mov	esi, DWORD PTR numPointLights[rip]
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	qprintf@PLT
	mov	esi, DWORD PTR numAreaLights[rip]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	qprintf@PLT
	mov	eax, DWORD PTR nogridlighting[rip]
	test	eax, eax
	je	.L5
.L2:
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	qprintf@PLT
	mov	edx, DWORD PTR TraceLtm[rip]
	mov	esi, DWORD PTR qtrue[rip]
	mov	edi, DWORD PTR numDrawSurfaces[rip]
	call	RunThreadsOnIndividual@PLT
	mov	esi, DWORD PTR c_visible[rip]
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	qprintf@PLT
	mov	esi, DWORD PTR c_occluded[rip]
	lea	rdi, .LC9[rip]
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	qprintf@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	qprintf@PLT
	mov	edx, DWORD PTR TraceGrid[rip]
	mov	esi, DWORD PTR qtrue[rip]
	mov	edi, DWORD PTR numGridPoints[rip]
	call	RunThreadsOnIndividual@PLT
	mov	rax, QWORD PTR gridBounds[rip]
	mov	r8d, DWORD PTR numGridPoints[rip]
	lea	rdi, .LC6[rip]
	mov	ecx, DWORD PTR 8[rax]
	mov	edx, DWORD PTR 4[rax]
	mov	esi, DWORD PTR [rax]
	xor	eax, eax
	call	qprintf@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	LightWorld, .-LightWorld
	.comm	qtrue,4,4
	.comm	numPointLights,4,4
	.comm	numGridPoints,4,4
	.comm	numDrawSurfaces,4,4
	.comm	numAreaLights,4,4
	.comm	nogridlighting,4,4
	.comm	gridBounds,8,8
	.comm	entities,8,8
	.comm	c_visible,4,4
	.comm	c_occluded,4,4
	.comm	ambientColor,4,4
	.comm	TraceLtm,4,4
	.comm	TraceGrid,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_light.c_LightWorld.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"_color\000"
	.align	2
.LC1:
	.ascii	"ambient\000"
	.align	2
.LC2:
	.ascii	"--- CreateLights ---\012\000"
	.align	2
.LC3:
	.ascii	"%i point lights\012\000"
	.align	2
.LC4:
	.ascii	"%i area lights\012\000"
	.align	2
.LC5:
	.ascii	"--- TraceGrid ---\012\000"
	.align	2
.LC6:
	.ascii	"%i x %i x %i = %i grid\012\000"
	.align	2
.LC7:
	.ascii	"--- TraceLtm ---\012\000"
	.align	2
.LC8:
	.ascii	"%5i visible samples\012\000"
	.align	2
.LC9:
	.ascii	"%5i occluded samples\012\000"
	.text
	.align	2
	.global	LightWorld
	.syntax unified
	.arm
	.fpu softvfp
	.type	LightWorld, %function
LightWorld:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r4, .L7
	ldr	r5, .L7+4
	sub	sp, sp, #12
	bl	SetupGrid
	ldr	r2, [r4]
	ldr	r1, .L7+8
	ldr	r0, [r5]
	bl	GetVectorForKey
	ldr	r1, .L7+12
	ldr	r0, [r5]
	bl	FloatForKey
	ldr	r2, [r4]
	mov	r1, r0
	mov	r0, r2
	bl	VectorScale
	ldr	r0, .L7+16
	bl	qprintf
	bl	CreateEntityLights
	ldr	r3, .L7+20
	ldr	r0, .L7+24
	ldr	r1, [r3]
	bl	qprintf
	ldr	r3, .L7+28
	ldr	r0, .L7+32
	ldr	r1, [r3]
	bl	qprintf
	ldr	r3, .L7+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r4, .L7+40
.L2:
	ldr	r0, .L7+44
	bl	qprintf
	ldr	r3, .L7+48
	ldr	r2, .L7+52
	ldr	r1, [r4]
	ldr	r2, [r2]
	ldr	r0, [r3]
	bl	RunThreadsOnIndividual
	ldr	r3, .L7+56
	ldr	r0, .L7+60
	ldr	r1, [r3]
	bl	qprintf
	ldr	r3, .L7+64
	ldr	r0, .L7+68
	ldr	r1, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, lr}
	b	qprintf
.L4:
	ldr	r0, .L7+72
	bl	qprintf
	ldr	r5, .L7+76
	ldr	r3, .L7+80
	ldr	r4, .L7+40
	ldr	r2, [r3]
	ldr	r1, [r4]
	ldr	r0, [r5]
	bl	RunThreadsOnIndividual
	ldr	r3, .L7+84
	ldr	ip, [r5]
	ldr	r1, [r3]
	ldr	r0, .L7+88
	ldm	r1, {r1, r2, r3}
	str	ip, [sp]
	bl	qprintf
	b	.L2
.L8:
	.align	2
.L7:
	.word	ambientColor
	.word	entities
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	numPointLights
	.word	.LC3
	.word	numAreaLights
	.word	.LC4
	.word	nogridlighting
	.word	qtrue
	.word	.LC7
	.word	numDrawSurfaces
	.word	TraceLtm
	.word	c_visible
	.word	.LC8
	.word	c_occluded
	.word	.LC9
	.word	.LC5
	.word	numGridPoints
	.word	TraceGrid
	.word	gridBounds
	.word	.LC6
	.size	LightWorld, .-LightWorld
	.comm	qtrue,4,4
	.comm	numPointLights,4,4
	.comm	numGridPoints,4,4
	.comm	numDrawSurfaces,4,4
	.comm	numAreaLights,4,4
	.comm	nogridlighting,4,4
	.comm	gridBounds,4,4
	.comm	entities,4,4
	.comm	c_visible,4,4
	.comm	c_occluded,4,4
	.comm	ambientColor,4,4
	.comm	TraceLtm,4,4
	.comm	TraceGrid,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
