	.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_set_material
LCPI0_0:
	.long	0x43000000                      ## float 128
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gl_set_material
	.p2align	4, 0x90
_gl_set_material:                       ## @gl_set_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_INSIDE_BEGIN_END
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	movq	24(%rax), %rcx
	movq	(%rax), %rdx
	movq	8(%rax), %rsi
	movq	(%rcx,%rdx,8), %r15
	orl	%r12d, (%rsi,%rdx,4)
	movq	_GL_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	jmp	LBB0_3
LBB0_2:
	movq	8(%rbx), %r15
	movq	_NEW_LIGHTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_3:
	movq	_FRONT_AMBIENT_BIT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.4:
	movl	44(%r15), %edi
	movq	%r14, %rsi
	callq	_COPY_4V
LBB0_5:
	movq	_BACK_AMBIENT_BIT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.6:
	movl	92(%r15), %edi
	movq	%r14, %rsi
	callq	_COPY_4V
LBB0_7:
	movq	_FRONT_DIFFUSE_BIT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_9
## %bb.8:
	movl	40(%r15), %edi
	movq	%r14, %rsi
	callq	_COPY_4V
LBB0_9:
	movq	_BACK_DIFFUSE_BIT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_11
## %bb.10:
	movl	88(%r15), %edi
	movq	%r14, %rsi
	callq	_COPY_4V
LBB0_11:
	movq	_FRONT_SPECULAR_BIT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_13
## %bb.12:
	movl	36(%r15), %edi
	movq	%r14, %rsi
	callq	_COPY_4V
LBB0_13:
	movq	_BACK_SPECULAR_BIT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_15
## %bb.14:
	movl	84(%r15), %edi
	movq	%r14, %rsi
	callq	_COPY_4V
LBB0_15:
	movq	_FRONT_EMISSION_BIT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_17
## %bb.16:
	movl	32(%r15), %edi
	movq	%r14, %rsi
	callq	_COPY_4V
LBB0_17:
	movq	_BACK_EMISSION_BIT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_19
## %bb.18:
	movl	80(%r15), %edi
	movq	%r14, %rsi
	callq	_COPY_4V
LBB0_19:
	movq	_FRONT_SHININESS_BIT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_22
## %bb.20:
	movq	(%r14), %rdi
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	callq	_CLAMP
	cmpq	%rax, (%r15)
	je	LBB0_22
## %bb.21:
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_gl_compute_material_shine_table
LBB0_22:
	movq	_BACK_SHININESS_BIT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_25
## %bb.23:
	movq	(%r14), %rdi
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	callq	_CLAMP
	cmpq	%rax, 48(%r15)
	je	LBB0_25
## %bb.24:
	leaq	48(%r15), %rdi
	movq	%rax, (%rdi)
	callq	_gl_compute_material_shine_table
LBB0_25:
	movq	_FRONT_INDEXES_BIT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_27
## %bb.26:
	movq	(%r14), %rax
	movq	%rax, 8(%r15)
	movq	8(%r14), %rax
	movq	%rax, 16(%r15)
	movq	16(%r14), %rax
	movq	%rax, 24(%r15)
LBB0_27:
	movq	_BACK_INDEXES_BIT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_29
## %bb.28:
	movq	(%r14), %rax
	movq	%rax, 56(%r15)
	movq	8(%r14), %rax
	movq	%rax, 64(%r15)
	movq	16(%r14), %rax
	movq	%rax, 72(%r15)
LBB0_29:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_NEW_LIGHTING,4,2               ## @NEW_LIGHTING
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_set_material                ; -- Begin function gl_set_material
	.p2align	2
_gl_set_material:                       ; @gl_set_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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_INSIDE_BEGIN_END
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x22, #16]
	ldr	x9, [x8, #24]
	ldp	x10, x11, [x8]
	ldr	x21, [x9, x10, lsl #3]
	lsl	x9, x10, #2
	ldr	w10, [x11, x9]
	orr	w10, w10, w20
	str	w10, [x11, x9]
Lloh0:
	adrp	x9, _GL_FALSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GL_FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8, #16]
	b	LBB0_3
LBB0_2:
	ldr	x21, [x22, #8]
Lloh3:
	adrp	x8, _NEW_LIGHTING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NEW_LIGHTING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_3:
Lloh6:
	adrp	x8, _FRONT_AMBIENT_BIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FRONT_AMBIENT_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x21, #44]
	mov	x1, x19
	bl	_COPY_4V
LBB0_5:
Lloh9:
	adrp	x8, _BACK_AMBIENT_BIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BACK_AMBIENT_BIT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x21, #92]
	mov	x1, x19
	bl	_COPY_4V
LBB0_7:
Lloh12:
	adrp	x8, _FRONT_DIFFUSE_BIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FRONT_DIFFUSE_BIT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x21, #40]
	mov	x1, x19
	bl	_COPY_4V
LBB0_9:
Lloh15:
	adrp	x8, _BACK_DIFFUSE_BIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BACK_DIFFUSE_BIT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.10:
	ldr	w0, [x21, #88]
	mov	x1, x19
	bl	_COPY_4V
LBB0_11:
Lloh18:
	adrp	x8, _FRONT_SPECULAR_BIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FRONT_SPECULAR_BIT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.12:
	ldr	w0, [x21, #36]
	mov	x1, x19
	bl	_COPY_4V
LBB0_13:
Lloh21:
	adrp	x8, _BACK_SPECULAR_BIT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BACK_SPECULAR_BIT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_15
; %bb.14:
	ldr	w0, [x21, #84]
	mov	x1, x19
	bl	_COPY_4V
LBB0_15:
Lloh24:
	adrp	x8, _FRONT_EMISSION_BIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FRONT_EMISSION_BIT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_17
; %bb.16:
	ldr	w0, [x21, #32]
	mov	x1, x19
	bl	_COPY_4V
LBB0_17:
Lloh27:
	adrp	x8, _BACK_EMISSION_BIT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BACK_EMISSION_BIT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_19
; %bb.18:
	ldr	w0, [x21, #80]
	mov	x1, x19
	bl	_COPY_4V
LBB0_19:
Lloh30:
	adrp	x8, _FRONT_SHININESS_BIT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FRONT_SHININESS_BIT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_22
; %bb.20:
	ldr	x0, [x19]
	movi	d0, #0000000000000000
	movi.2s	v1, #67, lsl #24
	bl	_CLAMP
	ldr	x8, [x21]
	cmp	x8, x0
	b.eq	LBB0_22
; %bb.21:
	str	x0, [x21]
	mov	x0, x21
	bl	_gl_compute_material_shine_table
LBB0_22:
Lloh33:
	adrp	x8, _BACK_SHININESS_BIT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BACK_SHININESS_BIT@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_25
; %bb.23:
	ldr	x0, [x19]
	movi	d0, #0000000000000000
	movi.2s	v1, #67, lsl #24
	bl	_CLAMP
	mov	x8, x0
	mov	x0, x21
	ldr	x9, [x0, #48]!
	cmp	x9, x8
	b.eq	LBB0_25
; %bb.24:
	str	x8, [x0]
	bl	_gl_compute_material_shine_table
LBB0_25:
Lloh36:
	adrp	x8, _FRONT_INDEXES_BIT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FRONT_INDEXES_BIT@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_27
; %bb.26:
	ldr	x8, [x19]
	str	x8, [x21, #8]
	ldr	x8, [x19, #8]
	str	x8, [x21, #16]
	ldr	x8, [x19, #16]
	str	x8, [x21, #24]
LBB0_27:
Lloh39:
	adrp	x8, _BACK_INDEXES_BIT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BACK_INDEXES_BIT@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_29
; %bb.28:
	ldr	x8, [x19]
	str	x8, [x21, #56]
	ldr	x8, [x19, #8]
	str	x8, [x21, #64]
	ldr	x8, [x19, #16]
	str	x8, [x21, #72]
LBB0_29:
	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
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_NEW_LIGHTING,4,2               ; @NEW_LIGHTING
	.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
.subsections_via_symbols
