	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function gl_color_shade_vertices_fast
LCPI0_0:
	.long	0x5f000000                      ## float 9.22337203E+18
LCPI0_2:
	.long	0x3f800000                      ## float 1
LCPI0_3:
	.long	0x2edbe6ff                      ## float 1.00000001E-10
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gl_color_shade_vertices_fast
	.p2align	4, 0x90
_gl_color_shade_vertices_fast:          ## @gl_color_shade_vertices_fast
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -144(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.1:
	movq	%rsi, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	24(%rax), %rax
	movq	(%rdx,%rsi,8), %rdx
	movss	12(%rax), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	mulss	12(%rdx), %xmm0
	cvttss2si	%xmm0, %rdx
	movq	%rdx, %rsi
	sarq	$63, %rsi
	subss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %rdi
	andq	%rsi, %rdi
	orq	%rdx, %rdi
	js	LBB0_2
## %bb.3:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rdi, %xmm0
	jmp	LBB0_4
LBB0_2:
	movq	%rdi, %rdx
	shrq	%rdx
	andl	$1, %edi
	orq	%rdx, %rdi
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rdi, %xmm0
	addss	%xmm0, %xmm0
LBB0_4:
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -76(%rbp)                ## 4-byte Spill
	movss	4(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -72(%rbp)                ## 4-byte Spill
	movss	8(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -68(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	xorps	%xmm8, %xmm8
	movq	%r15, %rax
	shlq	$4, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movaps	%xmm5, -96(%rbp)                ## 16-byte Spill
	movaps	%xmm4, -112(%rbp)               ## 16-byte Spill
	movaps	%xmm5, %xmm0
	movss	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_MIN2
	mulss	-76(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_FloatToInt
	movq	%r14, %rbx
	shlq	$4, %rbx
	movq	-144(%rbp), %r12                ## 8-byte Reload
	movss	%xmm0, (%r12,%rbx)
	movshdup	-96(%rbp), %xmm0                ## 16-byte Folded Reload
                                        ## xmm0 = mem[1,1,3,3]
	movss	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_MIN2
	mulss	-72(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_FloatToInt
	movss	%xmm0, 4(%r12,%rbx)
	movaps	-112(%rbp), %xmm0               ## 16-byte Reload
	movss	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_MIN2
	mulss	-68(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_FloatToInt
	xorps	%xmm8, %xmm8
	movss	%xmm0, 8(%r12,%rbx)
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 12(%r12,%rbx)
	incq	%r14
	cmpq	-136(%rbp), %r14                ## 8-byte Folded Reload
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	je	LBB0_19
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	leaq	(%r14,%r14,2), %rax
	movss	(%rcx,%rax,4), %xmm6            ## xmm6 = mem[0],zero,zero,zero
	testq	%r15, %r15
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm0, %xmm6
	movsd	4(%rcx,%rax,4), %xmm7           ## xmm7 = mem[0],zero
	xorps	%xmm0, %xmm7
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movsd	4(%rcx,%rax,4), %xmm7           ## xmm7 = mem[0],zero
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movsd	(%rax), %xmm5                   ## xmm5 = mem[0],zero
	movss	8(%rax), %xmm4                  ## xmm4 = mem[0],zero,zero,zero
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r12
	testq	%r12, %r12
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movshdup	%xmm7, %xmm3                    ## xmm3 = xmm7[1,1,3,3]
	movaps	%xmm6, -192(%rbp)               ## 16-byte Spill
	movaps	%xmm7, -176(%rbp)               ## 16-byte Spill
	movaps	%xmm3, -160(%rbp)               ## 16-byte Spill
	jmp	LBB0_10
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	24(%r12), %rax
	movq	(%rax,%r15,8), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsldup	%xmm1, %xmm2                    ## xmm2 = xmm1[0,0,2,2]
	mulps	%xmm0, %xmm2
	addps	%xmm2, %xmm5
	mulss	8(%rax), %xmm1
	addss	%xmm1, %xmm4
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	32(%r12), %r12
	testq	%r12, %r12
	je	LBB0_18
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	movss	4(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm7, %xmm0
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm6, %xmm1
	addss	%xmm0, %xmm1
	movss	8(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm0
	addss	%xmm1, %xmm0
	ucomiss	%xmm8, %xmm0
	jbe	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movq	(%rax,%r15,8), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	movsldup	%xmm0, %xmm2                    ## xmm2 = xmm0[0,0,2,2]
	mulps	%xmm1, %xmm2
	mulss	8(%rax), %xmm0
	addps	%xmm2, %xmm5
	addss	%xmm0, %xmm4
	movss	4(%rcx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm7, %xmm0
	movss	(%rcx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm6, %xmm1
	addss	%xmm0, %xmm1
	movss	8(%rcx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm0
	addss	%xmm1, %xmm0
	ucomiss	%xmm8, %xmm0
	jbe	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	ucomiss	LCPI0_2(%rip), %xmm0
	jbe	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rax,%rcx), %edi
	movaps	%xmm4, -112(%rbp)               ## 16-byte Spill
	movaps	%xmm5, -96(%rbp)                ## 16-byte Spill
	callq	_pow
	movaps	-160(%rbp), %xmm3               ## 16-byte Reload
	movaps	-176(%rbp), %xmm7               ## 16-byte Reload
	movaps	-192(%rbp), %xmm6               ## 16-byte Reload
	movaps	-96(%rbp), %xmm5                ## 16-byte Reload
	movaps	-112(%rbp), %xmm4               ## 16-byte Reload
	xorps	%xmm8, %xmm8
	movaps	%xmm0, %xmm1
	ucomiss	LCPI0_3(%rip), %xmm0
	ja	LBB0_16
	jmp	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	_SHINE_TABLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	xorps	%xmm1, %xmm1
	cvtsi2ss	%eax, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rbx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rbx,%rcx), %rcx
	movslq	%eax, %r13
	movss	(%rcx,%r13,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm8
	jbe	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rbx,%rax), %edi
	addq	%rax, %rbx
	movaps	%xmm4, -112(%rbp)               ## 16-byte Spill
	movaps	%xmm5, -96(%rbp)                ## 16-byte Spill
	callq	_gl_pow
	movaps	-160(%rbp), %xmm3               ## 16-byte Reload
	movaps	-176(%rbp), %xmm7               ## 16-byte Reload
	movaps	-192(%rbp), %xmm6               ## 16-byte Reload
	movaps	-96(%rbp), %xmm5                ## 16-byte Reload
	movaps	-112(%rbp), %xmm4               ## 16-byte Reload
	xorps	%xmm8, %xmm8
	movaps	%xmm0, %xmm1
	movq	(%rbx), %rax
	movss	%xmm0, (%rax,%r13,4)
	jmp	LBB0_16
LBB0_19:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHINE_TABLE_SIZE,4,2           ## @SHINE_TABLE_SIZE
	.comm	_A,4,2                          ## @A
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_color_shade_vertices_fast   ; -- Begin function gl_color_shade_vertices_fast
	.p2align	2
_gl_color_shade_vertices_fast:          ; @gl_color_shade_vertices_fast
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	d15, d14, [sp, #48]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #64]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #80]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #96]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x2, x4, [sp, #16]               ; 16-byte Folded Spill
	cbz	x2, LBB0_16
; %bb.1:
	mov	x20, x3
	mov	x22, x1
	mov	x23, x0
	mov	x24, #0
	ldr	x8, [x0]
	ldr	x25, [x8, x1, lsl #3]
	ldr	x8, [x0, #24]
	ldp	s14, s2, [x8, #4]
	ldr	s0, [x8, #12]
	ldr	s1, [x25, #12]
	fmul	s0, s0, s1
	fcvtzu	x9, s0
	ucvtf	s0, x9
	stp	s0, s2, [sp, #8]                ; 8-byte Folded Spill
	ldr	s13, [x8]
	mov	w9, #12
	fmov	s15, #1.00000000
	mov	w27, #59135
	movk	w27, #11995, lsl #16
Lloh0:
	adrp	x28, _SHINE_TABLE_SIZE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _SHINE_TABLE_SIZE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	fmov	s1, #1.00000000
	fmov	s0, s10
	bl	_MIN2
	fmul	s0, s13, s0
	bl	_FloatToInt
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x19, x8, x24, lsl #4
	str	s0, [x19]
	fmov	s1, #1.00000000
	fmov	s0, s9
	bl	_MIN2
	fmul	s0, s14, s0
	bl	_FloatToInt
	str	s0, [x19, #4]
	fmov	s1, #1.00000000
	fmov	s0, s8
	bl	_MIN2
	ldr	s1, [sp, #12]                   ; 4-byte Folded Reload
	fmul	s0, s1, s0
	bl	_FloatToInt
	str	s0, [x19, #8]
	ldr	s0, [sp, #8]                    ; 4-byte Folded Reload
	str	s0, [x19, #12]
	add	x24, x24, #1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x24, x8
	mov	w9, #12
	b.eq	LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mul	x8, x24, x9
	ldr	s11, [x20, x8]
	cbz	x22, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	fneg	s11, s11
	madd	x8, x24, x9, x20
	ldur	d0, [x8, #4]
	fneg.2s	v3, v0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x24, x9, x20
	ldur	d3, [x8, #4]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	s10, s9, [x25]
	ldr	s8, [x25, #8]
	ldr	x19, [x23, #16]
	cbz	x19, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	s12, v3[1]
	str	q3, [sp, #32]                   ; 16-byte Folded Spill
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x22, lsl #3]
	ldp	s0, s2, [x8]
	fmadd	s10, s1, s0, s10
	fmadd	s9, s1, s2, s9
	ldr	s0, [x8, #8]
	fmadd	s8, s1, s0, s8
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x19, [x19, #32]
	cbz	x19, LBB0_2
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19]
	ldp	s0, s1, [x8]
	fmul	s1, s3, s1
	fmadd	s0, s11, s0, s1
	ldr	s1, [x8, #8]
	fmadd	s0, s12, s1, s0
	fcmp	s0, #0.0
	b.le	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldp	x8, x9, [x19, #8]
	ldr	x8, [x8, x22, lsl #3]
	ldp	s1, s2, [x8]
	fmadd	s10, s0, s1, s10
	fmadd	s9, s0, s2, s9
	ldr	s1, [x8, #8]
	fmadd	s8, s0, s1, s8
	ldp	s0, s1, [x9]
	fmul	s1, s3, s1
	fmadd	s0, s11, s0, s1
	ldr	s1, [x9, #8]
	fmadd	s0, s12, s1, s0
	fcmp	s0, #0.0
	b.le	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	fcmp	s0, s15
	b.le	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x23, #8]
	add	x8, x8, x22, lsl #4
	ldr	w0, [x8, #8]
	bl	_pow
	ldr	q3, [sp, #32]                   ; 16-byte Folded Reload
	fmov	s1, s0
	fmov	s0, w27
	fcmp	s1, s0
	b.gt	LBB0_8
	b	LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [x28]
	sub	w8, w8, #1
	scvtf	s1, w8
	fmul	s1, s0, s1
	fcvtzs	w8, s1
	ldr	x9, [x23, #8]
	add	x26, x9, x22, lsl #4
	ldr	x9, [x26]
	ldr	s1, [x9, w8, sxtw #2]
	fcmp	s1, #0.0
	b.pl	LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=2
	sxtw	x21, w8
	ldr	w0, [x26, #8]
	bl	_gl_pow
	ldr	q3, [sp, #32]                   ; 16-byte Folded Reload
	fmov	s1, s0
	ldr	x8, [x26]
	str	s0, [x8, x21, lsl #2]
	b	LBB0_8
LBB0_16:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #96]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #80]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #64]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SHINE_TABLE_SIZE,4,2           ; @SHINE_TABLE_SIZE
	.comm	_A,4,2                          ; @A
.subsections_via_symbols
