	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GridAndVertexLighting          ## -- Begin function GridAndVertexLighting
	.p2align	4, 0x90
_GridAndVertexLighting:                 ## @GridAndVertexLighting
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_SetupGrid
	xorl	%eax, %eax
	callq	_FindSkyBrushes
	xorl	%eax, %eax
	callq	_CreateFilters
	xorl	%eax, %eax
	callq	_InitTrace
	xorl	%eax, %eax
	callq	_CreateEntityLights
	xorl	%eax, %eax
	callq	_CreateSurfaceLights
	movq	_nogridlighting@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__printf
	movq	_numGridPoints@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TraceGrid@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_RunThreadsOnIndividual
LBB0_2:
	movq	_novertexlighting@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	__printf
	movq	_numDrawSurfaces@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VertexLightingThread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_RunThreadsOnIndividual
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	__printf
	movq	_numDrawSurfaces@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TriSoupLightingThread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	popq	%rbp
	jmp	_RunThreadsOnIndividual         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nogridlighting,4,2             ## @nogridlighting
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--- TraceGrid ---\n"

	.comm	_numGridPoints,4,2              ## @numGridPoints
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_TraceGrid,4,2                  ## @TraceGrid
	.comm	_novertexlighting,4,2           ## @novertexlighting
L_.str.1:                               ## @.str.1
	.asciz	"--- Vertex Lighting ---\n"

	.comm	_numDrawSurfaces,4,2            ## @numDrawSurfaces
	.comm	_VertexLightingThread,4,2       ## @VertexLightingThread
L_.str.2:                               ## @.str.2
	.asciz	"--- Model Lighting ---\n"

	.comm	_TriSoupLightingThread,4,2      ## @TriSoupLightingThread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GridAndVertexLighting          ; -- Begin function GridAndVertexLighting
	.p2align	2
_GridAndVertexLighting:                 ; @GridAndVertexLighting
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_SetupGrid
	bl	_FindSkyBrushes
	bl	_CreateFilters
	bl	_InitTrace
	bl	_CreateEntityLights
	bl	_CreateSurfaceLights
Lloh0:
	adrp	x8, _nogridlighting@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nogridlighting@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x19, _qtrue@GOTPAGE
Lloh4:
	ldr	x19, [x19, _qtrue@GOTPAGEOFF]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	__printf
Lloh7:
	adrp	x8, _numGridPoints@GOTPAGE
Lloh8:
	ldr	x8, [x8, _numGridPoints@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x19]
Lloh10:
	adrp	x8, _TraceGrid@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TraceGrid@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_RunThreadsOnIndividual
LBB0_2:
Lloh13:
	adrp	x8, _novertexlighting@GOTPAGE
Lloh14:
	ldr	x8, [x8, _novertexlighting@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x20, _numDrawSurfaces@GOTPAGE
Lloh17:
	ldr	x20, [x20, _numDrawSurfaces@GOTPAGEOFF]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__printf
	ldr	w0, [x20]
	ldr	w1, [x19]
Lloh20:
	adrp	x8, _VertexLightingThread@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VertexLightingThread@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_RunThreadsOnIndividual
LBB0_4:
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__printf
	ldr	w0, [x20]
	ldr	w1, [x19]
Lloh25:
	adrp	x8, _TriSoupLightingThread@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TriSoupLightingThread@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_RunThreadsOnIndividual
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_nogridlighting,4,2             ; @nogridlighting
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--- TraceGrid ---\n"

	.comm	_numGridPoints,4,2              ; @numGridPoints
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_TraceGrid,4,2                  ; @TraceGrid
	.comm	_novertexlighting,4,2           ; @novertexlighting
l_.str.1:                               ; @.str.1
	.asciz	"--- Vertex Lighting ---\n"

	.comm	_numDrawSurfaces,4,2            ; @numDrawSurfaces
	.comm	_VertexLightingThread,4,2       ; @VertexLightingThread
l_.str.2:                               ; @.str.2
	.asciz	"--- Model Lighting ---\n"

	.comm	_TriSoupLightingThread,4,2      ; @TriSoupLightingThread
.subsections_via_symbols
