	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_material
_update_material:                       ## @update_material
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r15
	movq	(%r15), %rax
	movl	(%rax,%rsi,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_26
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_FRONT_AMBIENT_BIT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rax
	movl	28(%rax), %edi
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	28(%rax), %esi
	callq	_COPY_4V
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
LBB0_3:
	movq	_BACK_AMBIENT_BIT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rax
	movl	60(%rax), %edi
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	60(%rax), %esi
	callq	_COPY_4V
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
LBB0_5:
	movq	_FRONT_DIFFUSE_BIT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	movl	24(%rax), %edi
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	24(%rax), %esi
	callq	_COPY_4V
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
LBB0_7:
	movq	_BACK_DIFFUSE_BIT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_9
## %bb.8:
	movq	(%r14), %rax
	movl	56(%rax), %edi
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	56(%rax), %esi
	callq	_COPY_4V
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
LBB0_9:
	movq	_FRONT_SPECULAR_BIT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_11
## %bb.10:
	movq	(%r14), %rax
	movl	20(%rax), %edi
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	20(%rax), %esi
	callq	_COPY_4V
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
LBB0_11:
	movq	_BACK_SPECULAR_BIT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_13
## %bb.12:
	movq	(%r14), %rax
	movl	52(%rax), %edi
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	52(%rax), %esi
	callq	_COPY_4V
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
LBB0_13:
	movq	_FRONT_EMISSION_BIT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_15
## %bb.14:
	movq	(%r14), %rax
	movl	16(%rax), %edi
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	16(%rax), %esi
	callq	_COPY_4V
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
LBB0_15:
	movq	_BACK_EMISSION_BIT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_17
## %bb.16:
	movq	(%r14), %rax
	movl	48(%rax), %edi
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	48(%rax), %esi
	callq	_COPY_4V
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
LBB0_17:
	movq	_FRONT_SHININESS_BIT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_19
## %bb.18:
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	12(%rax), %eax
	movq	(%r14), %rdi
	movl	%eax, 12(%rdi)
	callq	_gl_compute_material_shine_table
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
LBB0_19:
	movq	_BACK_SHININESS_BIT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_21
## %bb.20:
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	44(%rax), %eax
	movq	(%r14), %rdi
	movl	%eax, 44(%rdi)
	addq	$32, %rdi
	callq	_gl_compute_material_shine_table
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
LBB0_21:
	movq	_FRONT_INDEXES_BIT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_23
## %bb.22:
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	8(%rcx), %edx
	movq	(%r14), %rsi
	movl	%edx, 8(%rsi)
	movl	4(%rcx), %edx
	movl	%edx, 4(%rsi)
	movl	(%rcx), %ecx
	movl	%ecx, (%rsi)
	movl	(%rax,%rbx,4), %ecx
LBB0_23:
	movq	_BACK_INDEXES_BIT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_25
## %bb.24:
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	40(%rcx), %edx
	movq	(%r14), %rsi
	movl	%edx, 40(%rsi)
	movl	36(%rcx), %edx
	movl	%edx, 36(%rsi)
	movl	32(%rcx), %ecx
	movl	%ecx, 32(%rsi)
LBB0_25:
	movl	$0, (%rax,%rbx,4)
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FRONT_AMBIENT_BIT,4,2          ## @FRONT_AMBIENT_BIT
	.comm	_BACK_AMBIENT_BIT,4,2           ## @BACK_AMBIENT_BIT
	.comm	_FRONT_DIFFUSE_BIT,4,2          ## @FRONT_DIFFUSE_BIT
	.comm	_BACK_DIFFUSE_BIT,4,2           ## @BACK_DIFFUSE_BIT
	.comm	_FRONT_SPECULAR_BIT,4,2         ## @FRONT_SPECULAR_BIT
	.comm	_BACK_SPECULAR_BIT,4,2          ## @BACK_SPECULAR_BIT
	.comm	_FRONT_EMISSION_BIT,4,2         ## @FRONT_EMISSION_BIT
	.comm	_BACK_EMISSION_BIT,4,2          ## @BACK_EMISSION_BIT
	.comm	_FRONT_SHININESS_BIT,4,2        ## @FRONT_SHININESS_BIT
	.comm	_BACK_SHININESS_BIT,4,2         ## @BACK_SHININESS_BIT
	.comm	_FRONT_INDEXES_BIT,4,2          ## @FRONT_INDEXES_BIT
	.comm	_BACK_INDEXES_BIT,4,2           ## @BACK_INDEXES_BIT
	.no_dead_strip	_update_material
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_material
_update_material:                       ; @update_material
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x21, [x0, #8]
	ldr	x8, [x21]
	ldr	w9, [x8, x1, lsl #2]
	cbz	w9, LBB0_26
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x10, _FRONT_AMBIENT_BIT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FRONT_AMBIENT_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x20]
	ldr	w0, [x8, #28]
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #28]
	bl	_COPY_4V
	ldr	x8, [x21]
	ldr	w9, [x8, x19, lsl #2]
LBB0_3:
Lloh3:
	adrp	x10, _BACK_AMBIENT_BIT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BACK_AMBIENT_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x20]
	ldr	w0, [x8, #60]
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #60]
	bl	_COPY_4V
	ldr	x8, [x21]
	ldr	w9, [x8, x19, lsl #2]
LBB0_5:
Lloh6:
	adrp	x10, _FRONT_DIFFUSE_BIT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FRONT_DIFFUSE_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x20]
	ldr	w0, [x8, #24]
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #24]
	bl	_COPY_4V
	ldr	x8, [x21]
	ldr	w9, [x8, x19, lsl #2]
LBB0_7:
Lloh9:
	adrp	x10, _BACK_DIFFUSE_BIT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BACK_DIFFUSE_BIT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x20]
	ldr	w0, [x8, #56]
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #56]
	bl	_COPY_4V
	ldr	x8, [x21]
	ldr	w9, [x8, x19, lsl #2]
LBB0_9:
Lloh12:
	adrp	x10, _FRONT_SPECULAR_BIT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _FRONT_SPECULAR_BIT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.10:
	ldr	x8, [x20]
	ldr	w0, [x8, #20]
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #20]
	bl	_COPY_4V
	ldr	x8, [x21]
	ldr	w9, [x8, x19, lsl #2]
LBB0_11:
Lloh15:
	adrp	x10, _BACK_SPECULAR_BIT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BACK_SPECULAR_BIT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.12:
	ldr	x8, [x20]
	ldr	w0, [x8, #52]
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #52]
	bl	_COPY_4V
	ldr	x8, [x21]
	ldr	w9, [x8, x19, lsl #2]
LBB0_13:
Lloh18:
	adrp	x10, _FRONT_EMISSION_BIT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _FRONT_EMISSION_BIT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_15
; %bb.14:
	ldr	x8, [x20]
	ldr	w0, [x8, #16]
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #16]
	bl	_COPY_4V
	ldr	x8, [x21]
	ldr	w9, [x8, x19, lsl #2]
LBB0_15:
Lloh21:
	adrp	x10, _BACK_EMISSION_BIT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _BACK_EMISSION_BIT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_17
; %bb.16:
	ldr	x8, [x20]
	ldr	w0, [x8, #48]
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #48]
	bl	_COPY_4V
	ldr	x8, [x21]
	ldr	w9, [x8, x19, lsl #2]
LBB0_17:
Lloh24:
	adrp	x10, _FRONT_SHININESS_BIT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _FRONT_SHININESS_BIT@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_19
; %bb.18:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w8, [x8, #12]
	ldr	x0, [x20]
	str	w8, [x0, #12]
	bl	_gl_compute_material_shine_table
	ldr	x8, [x21]
	ldr	w9, [x8, x19, lsl #2]
LBB0_19:
Lloh27:
	adrp	x10, _BACK_SHININESS_BIT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _BACK_SHININESS_BIT@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_21
; %bb.20:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w8, [x8, #44]
	ldr	x9, [x20]
	add	x0, x9, #32
	str	w8, [x9, #44]
	bl	_gl_compute_material_shine_table
	ldr	x8, [x21]
	ldr	w9, [x8, x19, lsl #2]
LBB0_21:
Lloh30:
	adrp	x10, _FRONT_INDEXES_BIT@GOTPAGE
Lloh31:
	ldr	x10, [x10, _FRONT_INDEXES_BIT@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_23
; %bb.22:
	ldr	x9, [x21, #8]
	ldr	x9, [x9, x19, lsl #3]
	ldr	w10, [x9, #8]
	ldr	x11, [x20]
	str	w10, [x11, #8]
	ldr	d0, [x9]
	str	d0, [x11]
	ldr	w9, [x8, x19, lsl #2]
LBB0_23:
Lloh33:
	adrp	x10, _BACK_INDEXES_BIT@GOTPAGE
Lloh34:
	ldr	x10, [x10, _BACK_INDEXES_BIT@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_25
; %bb.24:
	ldr	x9, [x21, #8]
	ldr	x9, [x9, x19, lsl #3]
	ldr	w10, [x9, #40]
	ldr	x11, [x20]
	str	w10, [x11, #40]
	ldr	d0, [x9, #32]
	str	d0, [x11, #32]
LBB0_25:
	str	wzr, [x8, x19, lsl #2]
LBB0_26:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.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
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_FRONT_AMBIENT_BIT,4,2          ; @FRONT_AMBIENT_BIT
	.comm	_BACK_AMBIENT_BIT,4,2           ; @BACK_AMBIENT_BIT
	.comm	_FRONT_DIFFUSE_BIT,4,2          ; @FRONT_DIFFUSE_BIT
	.comm	_BACK_DIFFUSE_BIT,4,2           ; @BACK_DIFFUSE_BIT
	.comm	_FRONT_SPECULAR_BIT,4,2         ; @FRONT_SPECULAR_BIT
	.comm	_BACK_SPECULAR_BIT,4,2          ; @BACK_SPECULAR_BIT
	.comm	_FRONT_EMISSION_BIT,4,2         ; @FRONT_EMISSION_BIT
	.comm	_BACK_EMISSION_BIT,4,2          ; @BACK_EMISSION_BIT
	.comm	_FRONT_SHININESS_BIT,4,2        ; @FRONT_SHININESS_BIT
	.comm	_BACK_SHININESS_BIT,4,2         ; @BACK_SHININESS_BIT
	.comm	_FRONT_INDEXES_BIT,4,2          ; @FRONT_INDEXES_BIT
	.comm	_BACK_INDEXES_BIT,4,2           ; @BACK_INDEXES_BIT
	.no_dead_strip	_update_material
.subsections_via_symbols
