	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function gl_index_shade_vertices
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x3a83126f                      ## float 0.00100000005
LCPI0_2:
	.long	0x3f800000                      ## float 1
LCPI0_3:
	.long	0x43340000                      ## float 180
LCPI0_4:
	.long	0x38d1b717                      ## float 9.99999974E-5
LCPI0_5:
	.long	0x5f000000                      ## float 9.22337203E+18
LCPI0_7:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_6:
	.quad	0x0000000000000000              ## double 0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gl_index_shade_vertices
	.p2align	4, 0x90
_gl_index_shade_vertices:               ## @gl_index_shade_vertices
	.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
	subq	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -272(%rbp)                 ## 8-byte Spill
	movq	%rcx, -256(%rbp)                ## 8-byte Spill
	movq	%rsi, -152(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, -264(%rbp)                ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_38
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movss	LCPI0_2(%rip), %xmm8            ## xmm8 = mem[0],zero,zero,zero
	movq	_SHINE_TABLE_SIZE@GOTPCREL(%rip), %r15
	leaq	-60(%rbp), %rbx
	movq	%r8, -248(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -208(%rbp)               ## 16-byte Spill
	xorps	%xmm0, %xmm0
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movss	12(%rax), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm6
	movss	16(%rax), %xmm2                 ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm1
	movss	8(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm3
	subss	%xmm2, %xmm3
	movaps	%xmm8, %xmm4
	subss	%xmm6, %xmm4
	mulss	-208(%rbp), %xmm4               ## 16-byte Folded Reload
	mulss	%xmm1, %xmm4
	addss	%xmm2, %xmm4
	mulss	%xmm6, %xmm3
	addss	%xmm4, %xmm3
	minss	%xmm3, %xmm0
LBB0_37:                                ##   in Loop: Header=BB0_2 Depth=1
	cvttss2si	%xmm0, %rax
	movq	%rax, %rcx
	sarq	$63, %rcx
	subss	LCPI0_5(%rip), %xmm0
	cvttss2si	%xmm0, %rdx
	andq	%rcx, %rdx
	orq	%rax, %rdx
	movq	-272(%rbp), %rax                ## 8-byte Reload
	movq	%rdx, (%rax,%rsi,8)
	incq	%rsi
	cmpq	-264(%rbp), %rsi                ## 8-byte Folded Reload
	je	LBB0_38
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	leaq	(%rsi,%rsi,2), %rax
	movss	(%r8,%rax,4), %xmm2             ## xmm2 = mem[0],zero,zero,zero
	cmpq	$0, -152(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm0, %xmm2
	movsd	4(%r8,%rax,4), %xmm1            ## xmm1 = mem[0],zero
	xorps	%xmm0, %xmm1
	movaps	%xmm1, -224(%rbp)               ## 16-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movsd	4(%r8,%rax,4), %xmm0            ## xmm0 = mem[0],zero
	movaps	%xmm0, -224(%rbp)               ## 16-byte Spill
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %r13
	testq	%r13, %r13
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, -280(%rbp)                ## 8-byte Spill
	movq	%rsi, %rax
	shlq	$4, %rax
	movq	-256(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax), %rdx
	movq	%rdx, -168(%rbp)                ## 8-byte Spill
	addq	%rcx, %rax
	addq	$8, %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movshdup	-224(%rbp), %xmm0               ## 16-byte Folded Reload
                                        ## xmm0 = mem[1,1,3,3]
	movaps	%xmm0, -304(%rbp)               ## 16-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -208(%rbp)               ## 16-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -240(%rbp)               ## 16-byte Spill
	movaps	%xmm2, -96(%rbp)                ## 16-byte Spill
	jmp	LBB0_9
LBB0_30:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %edi
	movaps	%xmm3, %xmm0
	callq	_pow
	movss	LCPI0_2(%rip), %xmm8            ## xmm8 = mem[0],zero,zero,zero
	movaps	-96(%rbp), %xmm2                ## 16-byte Reload
	movss	-64(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	movaps	-128(%rbp), %xmm7               ## 16-byte Reload
LBB0_33:                                ##   in Loop: Header=BB0_9 Depth=2
	mulss	%xmm4, %xmm7
	movaps	-208(%rbp), %xmm1               ## 16-byte Reload
	addss	%xmm7, %xmm1
	movaps	%xmm1, -208(%rbp)               ## 16-byte Spill
	mulss	52(%r13), %xmm0
	mulss	%xmm4, %xmm0
	movaps	-240(%rbp), %xmm1               ## 16-byte Reload
	addss	%xmm0, %xmm1
	movaps	%xmm1, -240(%rbp)               ## 16-byte Spill
LBB0_34:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	64(%r13), %r13
	testq	%r13, %r13
	je	LBB0_35
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rax
	movsd	24(%rax), %xmm0                 ## xmm0 = mem[0],zero
	ucomisd	LCPI0_6(%rip), %xmm0
	jne	LBB0_11
	jp	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	8(%r13), %rax
	movsd	(%rax), %xmm5                   ## xmm5 = mem[0],zero
	movss	8(%rax), %xmm6                  ## xmm6 = mem[0],zero,zero,zero
	movaps	%xmm8, %xmm4
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	cvtps2pd	(%rcx), %xmm0
	movupd	(%rax), %xmm1
	subpd	%xmm0, %xmm1
	cvtpd2ps	%xmm1, %xmm2
	movsd	16(%rax), %xmm0                 ## xmm0 = mem[0],zero
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	subsd	%xmm1, %xmm0
	xorps	%xmm3, %xmm3
	cvtsd2ss	%xmm0, %xmm3
	movapd	%xmm2, %xmm0
	mulps	%xmm2, %xmm0
	movshdup	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1,3,3]
	movaps	%xmm2, -112(%rbp)               ## 16-byte Spill
	movaps	%xmm2, %xmm1
	mulss	%xmm2, %xmm1
	addss	%xmm0, %xmm1
	movaps	%xmm3, -144(%rbp)               ## 16-byte Spill
	movaps	%xmm3, %xmm0
	mulss	%xmm3, %xmm0
	addss	%xmm1, %xmm0
	callq	_GL_SQRT
	ucomiss	LCPI0_1(%rip), %xmm0
	jbe	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=2
	movss	LCPI0_2(%rip), %xmm8            ## xmm8 = mem[0],zero,zero,zero
	movaps	%xmm8, %xmm1
	divss	%xmm0, %xmm1
	movsldup	%xmm1, %xmm2                    ## xmm2 = xmm1[0,0,2,2]
	movaps	-112(%rbp), %xmm5               ## 16-byte Reload
	mulps	%xmm2, %xmm5
	movaps	-144(%rbp), %xmm6               ## 16-byte Reload
	mulss	%xmm1, %xmm6
	movaps	-96(%rbp), %xmm2                ## 16-byte Reload
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=2
	movss	LCPI0_2(%rip), %xmm8            ## xmm8 = mem[0],zero,zero,zero
	movaps	-96(%rbp), %xmm2                ## 16-byte Reload
	movaps	-112(%rbp), %xmm5               ## 16-byte Reload
	movaps	-144(%rbp), %xmm6               ## 16-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=2
	movss	24(%r13), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	addss	20(%r13), %xmm1
	mulss	%xmm0, %xmm1
	addss	16(%r13), %xmm1
	movaps	%xmm8, %xmm4
	divss	%xmm1, %xmm4
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=2
	movshdup	%xmm5, %xmm0                    ## xmm0 = xmm5[1,1,3,3]
	movaps	-224(%rbp), %xmm1               ## 16-byte Reload
	mulss	%xmm0, %xmm1
	movaps	%xmm5, %xmm3
	mulss	%xmm2, %xmm3
	addss	%xmm1, %xmm3
	movaps	%xmm6, %xmm7
	mulss	-304(%rbp), %xmm7               ## 16-byte Folded Reload
	addss	%xmm3, %xmm7
	ucomiss	LCPI0_7(%rip), %xmm7
	jbe	LBB0_34
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=2
	movss	28(%r13), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	ucomiss	LCPI0_3(%rip), %xmm1
	movaps	%xmm5, -112(%rbp)               ## 16-byte Spill
	movaps	%xmm6, -144(%rbp)               ## 16-byte Spill
	jne	LBB0_17
	jnp	LBB0_22
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=2
	movaps	%xmm3, -192(%rbp)               ## 16-byte Spill
	movaps	%xmm7, -128(%rbp)               ## 16-byte Spill
	movss	%xmm4, -64(%rbp)                ## 4-byte Spill
	movaps	%xmm5, %xmm1
	movaps	LCPI0_0(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm2, %xmm1
	movss	%xmm1, -60(%rbp)
	xorps	%xmm2, %xmm0
	movss	%xmm0, -56(%rbp)
	xorps	%xmm2, %xmm6
	movss	%xmm6, -52(%rbp)
	movl	56(%r13), %esi
	movq	%rbx, %rdi
	callq	_DOT3
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	jae	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=2
	movss	32(%r13), %xmm2                 ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm2
	movss	LCPI0_2(%rip), %xmm8            ## xmm8 = mem[0],zero,zero,zero
	movaps	-128(%rbp), %xmm7               ## 16-byte Reload
	ja	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	_EXP_TABLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	xorps	%xmm1, %xmm1
	cvtsi2ss	%eax, %xmm1
	mulss	%xmm1, %xmm0
	cvttss2si	%xmm0, %eax
	xorps	%xmm1, %xmm1
	cvtss2sd	%xmm0, %xmm1
	movq	40(%r13), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	cvttps2dq	%xmm0, %xmm0
	cvtdq2pd	%xmm0, %xmm0
	subsd	%xmm0, %xmm1
	mulsd	8(%rax), %xmm1
	addsd	(%rax), %xmm1
	xorps	%xmm0, %xmm0
	cvtsd2ss	%xmm1, %xmm0
	movss	-64(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	jmp	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=2
	movss	LCPI0_2(%rip), %xmm8            ## xmm8 = mem[0],zero,zero,zero
	movaps	-128(%rbp), %xmm7               ## 16-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=2
	movaps	%xmm1, %xmm4
	movaps	-112(%rbp), %xmm5               ## 16-byte Reload
	movaps	-144(%rbp), %xmm6               ## 16-byte Reload
	movaps	-192(%rbp), %xmm3               ## 16-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=2
	mulss	48(%r13), %xmm7
	cmpq	$0, (%r14)
	movss	%xmm4, -64(%rbp)                ## 4-byte Spill
	movaps	%xmm7, -128(%rbp)               ## 16-byte Spill
	je	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movss	(%rax), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm0
	mulps	%xmm1, %xmm0
	movshdup	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1,3,3]
	movaps	%xmm1, -192(%rbp)               ## 16-byte Spill
	mulss	%xmm1, %xmm1
	addss	%xmm0, %xmm1
	movss	%xmm2, -76(%rbp)                ## 4-byte Spill
	movaps	%xmm2, %xmm0
	mulss	%xmm2, %xmm0
	addss	%xmm1, %xmm0
	callq	_GL_SQRT
	ucomiss	LCPI0_4(%rip), %xmm0
	jbe	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_9 Depth=2
	movss	LCPI0_2(%rip), %xmm8            ## xmm8 = mem[0],zero,zero,zero
	movaps	%xmm8, %xmm1
	divss	%xmm0, %xmm1
	movsldup	%xmm1, %xmm0                    ## xmm0 = xmm1[0,0,2,2]
	movaps	-192(%rbp), %xmm3               ## 16-byte Reload
	mulps	%xmm0, %xmm3
	movss	-76(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	movaps	-96(%rbp), %xmm2                ## 16-byte Reload
	movaps	-112(%rbp), %xmm5               ## 16-byte Reload
	movaps	-144(%rbp), %xmm6               ## 16-byte Reload
	movaps	%xmm0, %xmm1
	movaps	%xmm3, %xmm0
	jmp	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_9 Depth=2
	addss	%xmm8, %xmm6
	movaps	-96(%rbp), %xmm2                ## 16-byte Reload
	jmp	LBB0_28
LBB0_24:                                ##   in Loop: Header=BB0_9 Depth=2
	movss	LCPI0_2(%rip), %xmm8            ## xmm8 = mem[0],zero,zero,zero
	movaps	-96(%rbp), %xmm2                ## 16-byte Reload
	movaps	-112(%rbp), %xmm5               ## 16-byte Reload
	movaps	-144(%rbp), %xmm6               ## 16-byte Reload
	movss	-76(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movaps	-192(%rbp), %xmm0               ## 16-byte Reload
LBB0_26:                                ##   in Loop: Header=BB0_9 Depth=2
	subps	%xmm0, %xmm5
	movshdup	%xmm5, %xmm0                    ## xmm0 = xmm5[1,1,3,3]
	subss	%xmm1, %xmm6
	mulss	-224(%rbp), %xmm0               ## 16-byte Folded Reload
	movaps	%xmm5, %xmm3
	mulss	%xmm2, %xmm3
	addss	%xmm0, %xmm3
	movss	-64(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	movaps	-128(%rbp), %xmm7               ## 16-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_9 Depth=2
	movaps	%xmm6, %xmm1
	mulss	-304(%rbp), %xmm1               ## 16-byte Folded Reload
	addss	%xmm3, %xmm1
	xorps	%xmm0, %xmm0
	ucomiss	%xmm1, %xmm0
	jae	LBB0_33
## %bb.29:                              ##   in Loop: Header=BB0_9 Depth=2
	movaps	%xmm5, %xmm0
	mulps	%xmm5, %xmm0
	movshdup	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1,3,3]
	mulss	%xmm5, %xmm5
	addss	%xmm0, %xmm5
	mulss	%xmm6, %xmm6
	addss	%xmm5, %xmm6
	movaps	%xmm6, %xmm0
	movss	%xmm1, -112(%rbp)               ## 4-byte Spill
	callq	_GL_SQRT
	movss	-112(%rbp), %xmm3               ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movss	LCPI0_2(%rip), %xmm8            ## xmm8 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm3
	ucomiss	%xmm8, %xmm3
	ja	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	(%r15), %eax
	decl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	%xmm3, %xmm0
	cvttss2si	%xmm0, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movslq	%eax, %r12
	movss	(%rcx,%r12,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	movaps	-96(%rbp), %xmm2                ## 16-byte Reload
	movss	-64(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	movaps	-128(%rbp), %xmm7               ## 16-byte Reload
	jbe	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r14, %rbx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	20(%r14), %edi
	movaps	%xmm3, %xmm0
	callq	_gl_pow
	movaps	-128(%rbp), %xmm7               ## 16-byte Reload
	movss	-64(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	movaps	-96(%rbp), %xmm2                ## 16-byte Reload
	movss	LCPI0_2(%rip), %xmm8            ## xmm8 = mem[0],zero,zero,zero
	movq	(%r14), %rax
	movq	%rbx, %r14
	leaq	-60(%rbp), %rbx
	movss	%xmm0, (%rax,%r12,4)
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_2 Depth=1
	movaps	-240(%rbp), %xmm0               ## 16-byte Reload
	ucomiss	%xmm8, %xmm0
	movq	-248(%rbp), %r8                 ## 8-byte Reload
	movq	-280(%rbp), %rsi                ## 8-byte Reload
	jbe	LBB0_7
## %bb.36:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movss	8(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_37
LBB0_38:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_40
## %bb.39:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_40:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EXP_TABLE_SIZE,4,2             ## @EXP_TABLE_SIZE
	.comm	_SHINE_TABLE_SIZE,4,2           ## @SHINE_TABLE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_index_shade_vertices        ; -- Begin function gl_index_shade_vertices
	.p2align	2
_gl_index_shade_vertices:               ; @gl_index_shade_vertices
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	d15, d14, [sp, #176]            ; 16-byte Folded Spill
	stp	d13, d12, [sp, #192]            ; 16-byte Folded Spill
	stp	d11, d10, [sp, #208]            ; 16-byte Folded Spill
	stp	d9, d8, [sp, #224]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #240]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #256]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	.cfi_offset b14, -152
	.cfi_offset b15, -160
	stp	x5, x1, [sp, #48]               ; 16-byte Folded Spill
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #160]
	str	x2, [sp, #40]                   ; 8-byte Folded Spill
	cbz	x2, LBB0_36
; %bb.1:
	mov	x24, x0
	mov	x25, #0
	ldr	x8, [x0, #16]
	mov	w9, #24
	ldr	x10, [sp, #56]                  ; 8-byte Folded Reload
	madd	x9, x10, x9, x8
	add	x8, x9, #20
	stp	x9, x8, [sp, #64]               ; 16-byte Folded Spill
	add	x10, x9, #12
	add	x8, x9, #16
	stp	x8, x10, [sp, #16]              ; 16-byte Folded Spill
	add	x8, x9, #8
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	mov	w10, #12
	fmov	s12, #1.00000000
	mov	w19, #1127481344
Lloh3:
	adrp	x27, _SHINE_TABLE_SIZE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _SHINE_TABLE_SIZE@GOTPAGEOFF]
	mov	w26, #46871
	movk	w26, #14545, lsl #16
	mov	w23, #4719
	movk	w23, #14979, lsl #16
	str	x4, [sp]                        ; 8-byte Folded Spill
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	movi	d9, #0000000000000000
	movi	d11, #0000000000000000
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	s0, [x8]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	s1, [x8]
	fsub	s0, s0, s1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	s2, [x8]
	fsub	s3, s2, s1
	fsub	s4, s12, s11
	fmul	s4, s9, s4
	fmadd	s0, s4, s0, s1
	fmadd	s0, s11, s3, s0
	fcmp	s0, s2
	fcsel	s0, s2, s0, gt
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	fcvtzu	x8, s0
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	str	x8, [x9, x25, lsl #3]
	add	x25, x25, #1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x25, x8
	b.eq	LBB0_36
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mul	x8, x25, x10
	ldr	s8, [x4, x8]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	fneg	s8, s8
	madd	x8, x25, x10, x4
	ldur	d0, [x8, #4]
	fneg.2s	v0, v0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x25, x10, x4
	ldur	d0, [x8, #4]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	q0, [sp, #96]                   ; 16-byte Folded Spill
	ldr	x22, [x24, #8]
	cbz	x22, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x21, x8, x25, lsl #4
	add	x20, x21, #4
	add	x28, x21, #8
	ldr	q0, [sp, #96]                   ; 16-byte Folded Reload
	mov	s0, v0[1]
	str	s0, [sp, #124]                  ; 4-byte Folded Spill
	movi	d9, #0000000000000000
	movi	d11, #0000000000000000
	str	s8, [sp, #84]                   ; 4-byte Folded Spill
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
	bl	_pow
	fmov	s1, s0
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	fmul	s0, s14, s8
	ldp	s11, s9, [sp, #88]              ; 8-byte Folded Reload
	fmadd	s9, s0, s13, s9
	ldr	s0, [x22, #52]
	fmul	s0, s1, s0
	fmadd	s11, s0, s13, s11
	ldr	s8, [sp, #84]                   ; 4-byte Folded Reload
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x22, [x22, #64]
	cbz	x22, LBB0_34
LBB0_13:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	d0, [x8, #24]
	fcmp	d0, #0.0
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x22, #8]
	ldr	d4, [x8]
	ldr	s15, [x8, #8]
	fmov	s13, #1.00000000
	b	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	q0, [x8]
	ldr	d1, [x21]
	fcvtl	v1.2d, v1.2s
	fsub.2d	v0, v0, v1
	fcvtn	v2.2s, v0.2d
	ldr	d0, [x8, #16]
	ldr	s1, [x28]
	fcvt	d1, s1
	fsub	d0, d0, d1
	fcvt	s15, d0
	fmul.2s	v0, v2, v2
	mov	s0, v0[1]
	str	q2, [sp, #128]                  ; 16-byte Folded Spill
	fmla.s	s0, s2, v2[0]
	fmadd	s0, s15, s15, s0
	bl	_GL_SQRT
	fmov	s1, w23
	fcmp	s0, s1
	b.le	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	fdiv	s1, s12, s0
	ldr	q4, [sp, #128]                  ; 16-byte Folded Reload
	fmul.2s	v4, v4, v1[0]
	fmul	s15, s1, s15
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	q4, [sp, #128]                  ; 16-byte Folded Reload
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=2
	ldp	s1, s2, [x22, #16]
	ldr	s3, [x22, #24]
	fmadd	s2, s0, s3, s2
	fmadd	s0, s0, s2, s1
	fdiv	s13, s12, s0
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	q0, [sp, #96]                   ; 16-byte Folded Reload
	fmul.s	s10, s0, v4[1]
	fmla.s	s10, s8, v4[0]
	ldr	s0, [sp, #124]                  ; 4-byte Folded Reload
	fmadd	s14, s15, s0, s10
	fcmp	s14, #0.0
	b.le	LBB0_12
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	s0, [x22, #28]
	fmov	s1, w19
	fcmp	s0, s1
	stp	s11, s9, [sp, #88]              ; 8-byte Folded Spill
	str	q4, [sp, #128]                  ; 16-byte Folded Spill
	b.eq	LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=2
	fneg.2s	v0, v4
	str	d0, [sp, #144]
	fneg	s0, s15
	str	s0, [sp, #152]
	ldr	w1, [x22, #56]
	add	x0, sp, #144
	bl	_DOT3
	movi	d1, #0000000000000000
	fcmp	s0, #0.0
	b.ls	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	s2, [x22, #32]
	fcmp	s0, s2
	b.mi	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_13 Depth=2
Lloh5:
	adrp	x8, _EXP_TABLE_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXP_TABLE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	sub	w8, w8, #1
	scvtf	s1, w8
	fmul	s0, s0, s1
	fcvtzs	w8, s0
	fcvt	d0, s0
	ldr	x9, [x22, #40]
	ldr	x9, [x9, w8, sxtw #3]
	scvtf	d1, w8
	fsub	d0, d0, d1
	ldp	d1, d2, [x9]
	fmadd	d0, d0, d2, d1
	fcvt	s0, d0
	fmul	s1, s13, s0
LBB0_24:                                ;   in Loop: Header=BB0_13 Depth=2
	fmov	s13, s1
	ldr	q4, [sp, #128]                  ; 16-byte Folded Reload
LBB0_25:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	s11, v4[1]
	ldr	s8, [x22, #48]
	ldr	x8, [x24]
	cbz	x8, LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	s10, [x21]
	ldr	s9, [x20]
	ldr	s12, [x28]
	fmul	s0, s9, s9
	fmadd	s0, s10, s10, s0
	fmadd	s0, s12, s12, s0
	bl	_GL_SQRT
	fmov	s1, w26
	fcmp	s0, s1
	b.le	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_13 Depth=2
	fmov	s1, #1.00000000
	fdiv	s0, s1, s0
	fmul	s10, s10, s0
	fmul	s9, s9, s0
	fmul	s12, s12, s0
LBB0_28:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	q4, [sp, #128]                  ; 16-byte Folded Reload
	fsub	s4, s4, s10
	fsub	s11, s11, s9
	fsub	s0, s15, s12
	ldr	q1, [sp, #96]                   ; 16-byte Folded Reload
	fmul	s1, s1, s11
	ldr	s2, [sp, #84]                   ; 4-byte Folded Reload
	fmadd	s10, s4, s2, s1
	fmov	s12, #1.00000000
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_13 Depth=2
	fadd	s0, s15, s12
LBB0_30:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	s1, [sp, #124]                  ; 4-byte Folded Reload
	fmadd	s9, s0, s1, s10
	movi	d1, #0000000000000000
	fcmp	s9, #0.0
	b.ls	LBB0_11
; %bb.31:                               ;   in Loop: Header=BB0_13 Depth=2
	fmul	s1, s11, s11
	fmadd	s1, s4, s4, s1
	fmadd	s0, s0, s0, s1
	bl	_GL_SQRT
	fdiv	s0, s9, s0
	fcmp	s0, s12
	b.gt	LBB0_10
; %bb.32:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [x27]
	sub	w8, w8, #1
	scvtf	s1, w8
	fmul	s1, s0, s1
	fcvtzs	w8, s1
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x9, [x9]
	ldr	s1, [x9, w8, sxtw #2]
	fcmp	s1, #0.0
	b.pl	LBB0_11
; %bb.33:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x26, x27
	sxtw	x27, w8
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
	bl	_gl_pow
	fmov	s1, s0
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	str	s0, [x8, x27, lsl #2]
	mov	x27, x26
	mov	w26, #46871
	movk	w26, #14545, lsl #16
	b	LBB0_11
LBB0_34:                                ;   in Loop: Header=BB0_5 Depth=1
	fcmp	s11, s12
	ldr	x4, [sp]                        ; 8-byte Folded Reload
	mov	w10, #12
	b.le	LBB0_3
; %bb.35:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	s0, [x8]
	b	LBB0_4
LBB0_36:
	ldr	x8, [sp, #160]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_38
; %bb.37:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #272]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #256]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #240]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #224]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #208]            ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #192]            ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_38:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EXP_TABLE_SIZE,4,2             ; @EXP_TABLE_SIZE
	.comm	_SHINE_TABLE_SIZE,4,2           ; @SHINE_TABLE_SIZE
.subsections_via_symbols
