	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function VertexLighting
LCPI0_0:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_VertexLighting
	.p2align	4, 0x90
_VertexLighting:                        ## @VertexLighting
	.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	%rcx, %r14
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movl	8(%rax), %edi
	callq	_VectorCopy
	cmpl	$0, (%rbx)
	jle	LBB0_9
## %bb.1:
	cvttss2si	-44(%rbp), %eax         ## 4-byte Folded Reload
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	(%rbx), %r13d
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_drawVerts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rbx), %ecx
	addl	%r13d, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,2), %rdx
	leaq	(%rax,%rdx,8), %rcx
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rax,%rdx,8), %edi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rsi
	movl	16(%rax,%rdx,8), %edi
	movq	_MST_TRIANGLE_SOUP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
                                        ## implicit-def: $rsi
                                        ## implicit-def: $esi
                                        ## implicit-def: $si
                                        ## implicit-def: $sil
                                        ## implicit-def: $sih
                                        ## implicit-def: $hsi
	jne	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rsi
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movq	%r14, %r9
	callq	_LightingAtSample
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	LCPI0_0(%rip), %xmm0
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_VectorScale
	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	_drawVerts,8,3                  ## @drawVerts
	.comm	_MST_TRIANGLE_SOUP,8,3          ## @MST_TRIANGLE_SOUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VertexLighting                 ; -- Begin function VertexLighting
	.p2align	2
_VertexLighting:                        ; @VertexLighting
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x3
	fmov	s8, s0
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0, #24]
	ldr	w0, [x8, #8]
	bl	_VectorCopy
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w24, #0
	fcvtzs	w23, s8
Lloh0:
	adrp	x25, _drawVerts@GOTPAGE
Lloh1:
	ldr	x25, [x25, _drawVerts@GOTPAGEOFF]
	mov	w26, #24
Lloh2:
	adrp	x27, _MST_TRIANGLE_SOUP@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MST_TRIANGLE_SOUP@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	ldr	w8, [x22]
	cmp	w24, w8
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25]
	ldr	w8, [x22, #4]
	add	w8, w24, w8
	sxtw	x10, w8
	smaddl	x8, w8, w26, x9
	ldr	x11, [x22, #16]
	cbz	x11, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x9, x10, x26, x9
	ldr	w0, [x9, #16]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x22, #8]
	ldr	x12, [x27]
	madd	x9, x10, x26, x9
	ldr	w0, [x9, #16]
	cmp	x11, x12
                                        ; implicit-def: $x1
                                        ; implicit-def: $w1
	b.ne	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x8]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_LightingAtSample
	fcmp	s8, #0.0
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x23
	bl	_VectorScale
	b	LBB0_2
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_drawVerts,8,3                  ; @drawVerts
	.comm	_MST_TRIANGLE_SOUP,8,3          ; @MST_TRIANGLE_SOUP
.subsections_via_symbols
