	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_material_bitmask            ## -- Begin function gl_material_bitmask
	.p2align	4, 0x90
_gl_material_bitmask:                   ## @gl_material_bitmask
	.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
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$6, %esi
	ja	LBB0_9
## %bb.1:
	movl	%edi, %r14d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_6:
	movq	_FRONT_SPECULAR_BIT@GOTPCREL(%rip), %rax
	movq	_BACK_SPECULAR_BIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_9:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_gl_problem
	jmp	LBB0_16
LBB0_7:
	movq	_FRONT_SHININESS_BIT@GOTPCREL(%rip), %rax
	movq	_BACK_SHININESS_BIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_FRONT_EMISSION_BIT@GOTPCREL(%rip), %rax
	movq	_BACK_EMISSION_BIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movq	_FRONT_DIFFUSE_BIT@GOTPCREL(%rip), %rax
	movq	_BACK_DIFFUSE_BIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_8:
	movq	_FRONT_INDEXES_BIT@GOTPCREL(%rip), %rax
	movq	_BACK_INDEXES_BIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_10:
	movq	_FRONT_AMBIENT_BIT@GOTPCREL(%rip), %rax
	movq	_BACK_AMBIENT_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_FRONT_DIFFUSE_BIT@GOTPCREL(%rip), %rcx
	movq	_BACK_DIFFUSE_BIT@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	jmp	LBB0_11
LBB0_4:
	movq	_FRONT_AMBIENT_BIT@GOTPCREL(%rip), %rax
	movq	_BACK_AMBIENT_BIT@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
LBB0_11:
	movq	_GL_FRONT@GOTPCREL(%rip), %r12
	cmpl	%r14d, (%r12)
	sete	%al
	movq	_GL_BACK@GOTPCREL(%rip), %r15
	cmpl	%r14d, (%r15)
	sete	%cl
	orb	%al, %cl
	movq	_GL_FRONT_AND_BACK@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_ASSERT
	cmpl	%r14d, (%r12)
	jne	LBB0_13
## %bb.12:
	movq	_FRONT_MATERIAL_BITS@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	cmpl	%r14d, (%r15)
	jne	LBB0_16
## %bb.14:
	movq	_BACK_MATERIAL_BITS@GOTPCREL(%rip), %rax
LBB0_15:
	andl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_FRONT_EMISSION_BIT,4,2         ## @FRONT_EMISSION_BIT
	.comm	_BACK_EMISSION_BIT,4,2          ## @BACK_EMISSION_BIT
	.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_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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad param in gl_material_bitmask"

	.comm	_GL_FRONT,4,2                   ## @GL_FRONT
	.comm	_GL_BACK,4,2                    ## @GL_BACK
	.comm	_GL_FRONT_AND_BACK,4,2          ## @GL_FRONT_AND_BACK
	.comm	_FRONT_MATERIAL_BITS,4,2        ## @FRONT_MATERIAL_BITS
	.comm	_BACK_MATERIAL_BITS,4,2         ## @BACK_MATERIAL_BITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_material_bitmask            ; -- Begin function gl_material_bitmask
	.p2align	2
_gl_material_bitmask:                   ; @gl_material_bitmask
	.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
	sub	w8, w1, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _FRONT_SPECULAR_BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FRONT_SPECULAR_BIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _BACK_SPECULAR_BIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BACK_SPECULAR_BIT@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	bl	_gl_problem
	mov	w20, #0
	b	LBB0_16
LBB0_4:
Lloh9:
	adrp	x8, _FRONT_SHININESS_BIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FRONT_SHININESS_BIT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _BACK_SHININESS_BIT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BACK_SHININESS_BIT@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh14:
	adrp	x8, _FRONT_EMISSION_BIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FRONT_EMISSION_BIT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _BACK_EMISSION_BIT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BACK_EMISSION_BIT@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh19:
	adrp	x8, _FRONT_DIFFUSE_BIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FRONT_DIFFUSE_BIT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _BACK_DIFFUSE_BIT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BACK_DIFFUSE_BIT@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh24:
	adrp	x8, _FRONT_INDEXES_BIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FRONT_INDEXES_BIT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _BACK_INDEXES_BIT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BACK_INDEXES_BIT@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh29:
	adrp	x8, _FRONT_AMBIENT_BIT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FRONT_AMBIENT_BIT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _BACK_AMBIENT_BIT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _BACK_AMBIENT_BIT@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x10, _FRONT_DIFFUSE_BIT@GOTPAGE
Lloh36:
	ldr	x10, [x10, _FRONT_DIFFUSE_BIT@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
Lloh38:
	adrp	x11, _BACK_DIFFUSE_BIT@GOTPAGE
Lloh39:
	ldr	x11, [x11, _BACK_DIFFUSE_BIT@GOTPAGEOFF]
Lloh40:
	ldr	w11, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w20, w8, w11
	b	LBB0_11
LBB0_9:
Lloh41:
	adrp	x8, _FRONT_AMBIENT_BIT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _FRONT_AMBIENT_BIT@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _BACK_AMBIENT_BIT@GOTPAGE
Lloh45:
	ldr	x9, [x9, _BACK_AMBIENT_BIT@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
	orr	w20, w9, w8
LBB0_11:
Lloh46:
	adrp	x22, _GL_FRONT@GOTPAGE
Lloh47:
	ldr	x22, [x22, _GL_FRONT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w19
Lloh48:
	adrp	x21, _GL_BACK@GOTPAGE
Lloh49:
	ldr	x21, [x21, _GL_BACK@GOTPAGEOFF]
	ldr	w8, [x21]
	ccmp	w8, w19, #4, ne
Lloh50:
	adrp	x8, _GL_FRONT_AND_BACK@GOTPAGE
Lloh51:
	ldr	x8, [x8, _GL_FRONT_AND_BACK@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	ccmp	w8, w19, #4, ne
	cset	w0, eq
	bl	_ASSERT
	ldr	w8, [x22]
	cmp	w8, w19
	b.ne	LBB0_13
; %bb.12:
Lloh53:
	adrp	x8, _FRONT_MATERIAL_BITS@GOTPAGE
Lloh54:
	ldr	x8, [x8, _FRONT_MATERIAL_BITS@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	ldr	w8, [x21]
	cmp	w8, w19
	b.ne	LBB0_16
; %bb.14:
Lloh55:
	adrp	x8, _BACK_MATERIAL_BITS@GOTPAGE
Lloh56:
	ldr	x8, [x8, _BACK_MATERIAL_BITS@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	and	w20, w8, w20
LBB0_16:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_FRONT_EMISSION_BIT,4,2         ; @FRONT_EMISSION_BIT
	.comm	_BACK_EMISSION_BIT,4,2          ; @BACK_EMISSION_BIT
	.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_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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad param in gl_material_bitmask"

	.comm	_GL_FRONT,4,2                   ; @GL_FRONT
	.comm	_GL_BACK,4,2                    ; @GL_BACK
	.comm	_GL_FRONT_AND_BACK,4,2          ; @GL_FRONT_AND_BACK
	.comm	_FRONT_MATERIAL_BITS,4,2        ; @FRONT_MATERIAL_BITS
	.comm	_BACK_MATERIAL_BITS,4,2         ; @BACK_MATERIAL_BITS
.subsections_via_symbols
