	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VertexLightingThread           ## -- Begin function VertexLightingThread
	.p2align	4, 0x90
_VertexLightingThread:                  ## @VertexLightingThread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_drawSurfaces@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	(%rax,%rcx,8), %rdx
	movq	_MST_TRIANGLE_SOUP@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_4
## %bb.1:
	movq	_novertexlighting@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	jne	LBB0_4
## %bb.2:
	cmpl	$-1, 8(%rax,%rcx,8)
	je	LBB0_4
## %bb.3:
	leaq	(%rax,%rcx,8), %rbx
	movq	_dshaders@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	16(%rax,%rcx,8), %rax
	movl	(%rdx,%rax,4), %edi
	callq	_ShaderInfoForShader
	movl	8(%rax), %esi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	leaq	-12(%rbp), %r8
	movq	%rbx, %rdi
	callq	_VertexLighting
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drawSurfaces,8,3               ## @drawSurfaces
	.comm	_MST_TRIANGLE_SOUP,8,3          ## @MST_TRIANGLE_SOUP
	.comm	_novertexlighting,8,3           ## @novertexlighting
	.comm	_dshaders,8,3                   ## @dshaders
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VertexLightingThread           ; -- Begin function VertexLightingThread
	.p2align	2
_VertexLightingThread:                  ; @VertexLightingThread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _drawSurfaces@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drawSurfaces@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #24
	smaddl	x19, w0, w9, x8
	ldr	x9, [x19]
Lloh3:
	adrp	x10, _MST_TRIANGLE_SOUP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MST_TRIANGLE_SOUP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _novertexlighting@GOTPAGE
Lloh7:
	ldr	x11, [x11, _novertexlighting@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x11, #0, #0, ne
	b.ne	LBB0_3
; %bb.1:
	sxtw	x9, w0
	mov	w10, #24
	madd	x10, x9, x10, x8
	ldr	w10, [x10, #8]
	cmn	w10, #1
	b.eq	LBB0_3
; %bb.2:
Lloh9:
	adrp	x10, _dshaders@GOTPAGE
Lloh10:
	ldr	x10, [x10, _dshaders@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	mov	w11, #24
	madd	x8, x9, x11, x8
	ldr	x8, [x8, #16]
	ldr	w0, [x10, x8, lsl #2]
	bl	_ShaderInfoForShader
	ldp	w2, w1, [x0, #4]
	ldr	w3, [x0]
	add	x4, sp, #12
	mov	x0, x19
	bl	_VertexLighting
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_drawSurfaces,8,3               ; @drawSurfaces
	.comm	_MST_TRIANGLE_SOUP,8,3          ; @MST_TRIANGLE_SOUP
	.comm	_novertexlighting,8,3           ; @novertexlighting
	.comm	_dshaders,8,3                   ; @dshaders
.subsections_via_symbols
