	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shade_vertices
_shade_vertices:                        ## @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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rax
	movq	24(%rdi), %r15
	cmpq	$0, (%rax)
	movl	48(%r15), %eax
	je	LBB0_26
## %bb.1:
	testl	%eax, %eax
	je	LBB0_2
## %bb.9:
	cmpq	$0, 8(%r14)
	je	LBB0_23
## %bb.10:
	cmpq	$0, 72(%r15)
	je	LBB0_20
## %bb.11:
	movq	(%r15), %rcx
	shlq	$2, %rcx
	addq	24(%r15), %rcx
	leaq	-64(%rbp), %r8
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_gl_color_shade_vertices_fast
	movq	(%r15), %rbx
	cmpq	8(%r15), %rbx
	jae	LBB0_14
## %bb.12:
	leaq	-64(%rbp), %r12
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	64(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r12, %rsi
	callq	_COPY_4V
	incq	%rbx
	cmpq	8(%r15), %rbx
	jb	LBB0_13
LBB0_14:
	cmpq	$0, (%r14)
	je	LBB0_18
## %bb.15:
	movq	(%r15), %rcx
	shlq	$2, %rcx
	addq	24(%r15), %rcx
	leaq	-64(%rbp), %r8
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_gl_color_shade_vertices_fast
	movq	(%r15), %rbx
	cmpq	8(%r15), %rbx
	jae	LBB0_18
## %bb.16:
	leaq	-64(%rbp), %r14
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r14, %rsi
	callq	_COPY_4V
	incq	%rbx
	cmpq	8(%r15), %rbx
	jb	LBB0_17
	jmp	LBB0_18
LBB0_26:
	testl	%eax, %eax
	je	LBB0_27
## %bb.33:
	movl	8(%r15), %edx
	movq	(%r15), %r9
	subl	%r9d, %edx
	shlq	$2, %r9
	movq	32(%r15), %rcx
	addq	%r9, %rcx
	movq	24(%r15), %r8
	addq	%r9, %r8
	addq	40(%r15), %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gl_index_shade_vertices
	cmpq	$0, (%r14)
	je	LBB0_18
## %bb.34:
	movq	(%r15), %rax
	leaq	(,%rax,4), %r9
	movq	32(%r15), %rcx
	addq	%r9, %rcx
	movq	24(%r15), %r8
	addq	%r9, %r8
	addq	16(%r15), %r9
	movl	8(%r15), %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	-48(%rbp), %rsi
	jne	LBB0_32
## %bb.35:
	subl	%eax, %edx
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_index_shade_vertices        ## TAILCALL
LBB0_2:
	movq	(%r15), %r13
	movq	8(%r15), %rsi
	cmpq	%rsi, %r13
	jae	LBB0_7
## %bb.3:
	leaq	(,%r13,8), %r12
	leaq	(,%r13,4), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movq	8(%r15), %rsi
	addq	$8, %r12
	addq	$4, %rbx
	cmpq	%rsi, %r13
	jae	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_update_material
	movq	32(%r15), %rcx
	addq	%rbx, %rcx
	movq	24(%r15), %r8
	addq	%rbx, %r8
	movq	64(%r15), %r9
	addq	%r12, %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_gl_color_shade_vertices
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	32(%r15), %rcx
	addq	%rbx, %rcx
	movq	24(%r15), %r8
	addq	%rbx, %r8
	movq	56(%r15), %r9
	addq	%r12, %r9
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_gl_color_shade_vertices
	jmp	LBB0_6
LBB0_23:
	movl	8(%r15), %edx
	movq	(%r15), %r9
	leaq	(,%r9,4), %r8
	movq	32(%r15), %rcx
	addq	%r8, %rcx
	addq	24(%r15), %r8
	subl	%r9d, %edx
	shlq	$3, %r9
	addq	64(%r15), %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gl_color_shade_vertices
	cmpq	$0, (%r14)
	je	LBB0_18
## %bb.24:
	movq	(%r15), %rax
	leaq	(,%rax,4), %r8
	movq	32(%r15), %rcx
	addq	%r8, %rcx
	addq	24(%r15), %r8
	leaq	(,%rax,8), %r9
	addq	56(%r15), %r9
	movl	8(%r15), %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	-48(%rbp), %rsi
	jne	LBB0_32
## %bb.25:
	subl	%eax, %edx
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_color_shade_vertices        ## TAILCALL
LBB0_27:
	movq	(%r15), %r12
	movq	8(%r15), %rsi
	cmpq	%rsi, %r12
	jae	LBB0_7
## %bb.28:
	leaq	(,%r12,4), %rbx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_29 Depth=1
	incq	%r12
	movq	8(%r15), %rsi
	addq	$4, %rbx
	cmpq	%rsi, %r12
	jae	LBB0_7
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_update_material
	movq	32(%r15), %rcx
	addq	%rbx, %rcx
	movq	24(%r15), %r8
	addq	%rbx, %r8
	movq	40(%r15), %r9
	addq	%rbx, %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_gl_index_shade_vertices
	cmpq	$0, (%r14)
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	32(%r15), %rcx
	addq	%rbx, %rcx
	movq	24(%r15), %r8
	addq	%rbx, %r8
	movq	16(%r15), %r9
	addq	%rbx, %r9
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_gl_index_shade_vertices
	jmp	LBB0_31
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.8:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_material                ## TAILCALL
LBB0_20:
	movl	8(%r15), %edx
	movq	(%r15), %r8
	leaq	(,%r8,4), %rcx
	addq	24(%r15), %rcx
	subl	%r8d, %edx
	shlq	$3, %r8
	addq	64(%r15), %r8
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gl_color_shade_vertices_fast
	cmpq	$0, (%r14)
	je	LBB0_18
## %bb.21:
	movq	(%r15), %rax
	leaq	(,%rax,4), %rcx
	addq	24(%r15), %rcx
	leaq	(,%rax,8), %r8
	addq	56(%r15), %r8
	movl	8(%r15), %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	-48(%rbp), %rsi
	jne	LBB0_32
## %bb.22:
	subl	%eax, %edx
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_color_shade_vertices_fast   ## TAILCALL
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_shade_vertices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shade_vertices
_shade_vertices:                        ; @shade_vertices
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldp	x8, x21, [x0, #16]
	ldr	x9, [x8]
	ldr	w8, [x21, #48]
	cbz	x9, LBB0_7
; %bb.1:
	cbz	w8, LBB0_11
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_20
; %bb.3:
	ldr	x8, [x21, #72]
	cbz	x8, LBB0_30
; %bb.4:
	ldr	x8, [x21, #24]
	ldr	x9, [x21]
	add	x3, x8, x9, lsl #2
	add	x4, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_gl_color_shade_vertices_fast
	ldr	x20, [x21]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	cmp	x20, x8
	b.hs	LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #64]
	ldr	x0, [x8, x20, lsl #3]
	add	x1, sp, #8
	bl	_COPY_4V
	add	x20, x20, #1
	b	LBB0_5
LBB0_7:
	cbz	w8, LBB0_23
; %bb.8:
	ldr	w8, [x21, #8]
	ldr	x9, [x21]
	sub	w2, w8, w9
	lsl	x8, x9, #2
	ldp	x10, x9, [x21, #24]
	add	x3, x9, x8
	add	x4, x10, x8
	ldr	x9, [x21, #40]
	add	x5, x9, x8
	mov	x0, x19
	mov	w1, #0
	bl	_gl_index_shade_vertices
	ldr	x8, [x19]
	cbz	x8, LBB0_33
; %bb.9:
	ldr	w8, [x21, #8]
	ldr	x9, [x21]
	ldp	x11, x10, [x21, #24]
	ldr	x12, [x21, #16]
	ldr	x13, [sp, #24]
Lloh3:
	adrp	x14, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x14, [x14, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x14, [x14]
	cmp	x14, x13
	b.ne	LBB0_35
; %bb.10:
	sub	w2, w8, w9
	lsl	x8, x9, #2
	add	x3, x10, x8
	add	x4, x11, x8
	add	x5, x12, x8
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_gl_index_shade_vertices
LBB0_11:
	ldp	x20, x1, [x21]
	cmp	x20, x1
	b.hs	LBB0_28
; %bb.12:
	lsl	x22, x20, #3
	lsl	x23, x20, #2
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x20, x20, #1
	ldr	x1, [x21, #8]
	add	x22, x22, #8
	add	x23, x23, #4
	cmp	x20, x1
	b.hs	LBB0_28
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_update_material
	ldp	x9, x8, [x21, #24]
	add	x3, x8, x23
	add	x4, x9, x23
	ldr	x8, [x21, #64]
	add	x5, x8, x22
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_gl_color_shade_vertices
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldp	x9, x8, [x21, #24]
	add	x3, x8, x23
	add	x4, x9, x23
	ldr	x8, [x21, #56]
	add	x5, x8, x22
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_gl_color_shade_vertices
	b	LBB0_13
LBB0_16:
	ldr	x8, [x19]
	cbz	x8, LBB0_33
; %bb.17:
	ldr	x8, [x21, #24]
	ldr	x9, [x21]
	add	x3, x8, x9, lsl #2
	add	x4, sp, #8
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_gl_color_shade_vertices_fast
	ldr	x19, [x21]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	cmp	x19, x8
	b.hs	LBB0_33
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x21, #56]
	ldr	x0, [x8, x19, lsl #3]
	add	x1, sp, #8
	bl	_COPY_4V
	add	x19, x19, #1
	b	LBB0_18
LBB0_20:
	ldr	w8, [x21, #8]
	ldr	x9, [x21]
	sub	w2, w8, w9
	lsl	x8, x9, #2
	ldp	x11, x10, [x21, #24]
	add	x3, x10, x8
	add	x4, x11, x8
	ldr	x8, [x21, #64]
	add	x5, x8, x9, lsl #3
	mov	x0, x19
	mov	w1, #0
	bl	_gl_color_shade_vertices
	ldr	x8, [x19]
	cbz	x8, LBB0_33
; %bb.21:
	ldr	w9, [x21, #8]
	ldr	x8, [x21]
	ldp	x11, x10, [x21, #24]
	ldr	x12, [x21, #56]
	ldr	x13, [sp, #24]
Lloh6:
	adrp	x14, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x14, [x14, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x14, [x14]
	cmp	x14, x13
	b.ne	LBB0_35
; %bb.22:
	sub	w2, w9, w8
	lsl	x9, x8, #2
	add	x3, x10, x9
	add	x4, x11, x9
	add	x5, x12, x8, lsl #3
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_gl_color_shade_vertices
LBB0_23:
	ldp	x20, x1, [x21]
	cmp	x20, x1
	b.hs	LBB0_28
; %bb.24:
	lsl	x22, x20, #2
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x20, x20, #1
	ldr	x1, [x21, #8]
	add	x22, x22, #4
	cmp	x20, x1
	b.hs	LBB0_28
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_update_material
	ldp	x9, x8, [x21, #24]
	add	x3, x8, x22
	add	x4, x9, x22
	ldr	x8, [x21, #40]
	add	x5, x8, x22
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_gl_index_shade_vertices
	ldr	x8, [x19]
	cbz	x8, LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [x21, #32]
	add	x3, x8, x22
	ldp	x9, x8, [x21, #16]
	add	x4, x8, x22
	add	x5, x9, x22
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_gl_index_shade_vertices
	b	LBB0_25
LBB0_28:
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.29:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_update_material
LBB0_30:
	ldr	w8, [x21, #8]
	ldr	x9, [x21]
	sub	w2, w8, w9
	ldr	x8, [x21, #24]
	add	x3, x8, x9, lsl #2
	ldr	x8, [x21, #64]
	add	x4, x8, x9, lsl #3
	mov	x0, x19
	mov	w1, #0
	bl	_gl_color_shade_vertices_fast
	ldr	x8, [x19]
	cbz	x8, LBB0_33
; %bb.31:
	ldr	w9, [x21, #8]
	ldr	x8, [x21]
	ldr	x10, [x21, #24]
	ldr	x11, [x21, #56]
	ldr	x12, [sp, #24]
Lloh12:
	adrp	x13, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x13, [x13, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x13, [x13]
	cmp	x13, x12
	b.ne	LBB0_35
; %bb.32:
	sub	w2, w9, w8
	add	x3, x10, x8, lsl #2
	add	x4, x11, x8, lsl #3
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_gl_color_shade_vertices_fast
LBB0_33:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.34:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_shade_vertices
.subsections_via_symbols
