	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GL_TexEnv                      ## -- Begin function GL_TexEnv
	.p2align	4, 0x90
_GL_TexEnv:                             ## @GL_TexEnv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_glState@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	cmpl	%edi, (%rax,%rcx,4)
	jne	LBB0_1
## %bb.8:
	popq	%rbp
	retq
LBB0_1:
	movl	%edi, %edx
	movl	%edi, (%rax,%rcx,4)
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	ja	LBB0_7
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_GL_TEXTURE_ENV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_TEXTURE_ENV_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$128, %edx
	popq	%rbp
	jmp	_qglTexEnvf                     ## TAILCALL
LBB0_7:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ERR_DROP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_3:
	movq	_GL_TEXTURE_ENV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_TEXTURE_ENV_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$129, %edx
	popq	%rbp
	jmp	_qglTexEnvf                     ## TAILCALL
LBB0_5:
	movq	_GL_TEXTURE_ENV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_TEXTURE_ENV_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$130, %edx
	popq	%rbp
	jmp	_qglTexEnvf                     ## TAILCALL
LBB0_6:
	movq	_GL_TEXTURE_ENV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_TEXTURE_ENV_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$131, %edx
	popq	%rbp
	jmp	_qglTexEnvf                     ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_glState,16,3                   ## @glState
	.comm	_GL_TEXTURE_ENV,4,2             ## @GL_TEXTURE_ENV
	.comm	_GL_TEXTURE_ENV_MODE,4,2        ## @GL_TEXTURE_ENV_MODE
	.comm	_ri,8,3                         ## @ri
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GL_TexEnv: invalid env '%d' passed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GL_TexEnv                      ; -- Begin function GL_TexEnv
	.p2align	2
_GL_TexEnv:                             ; @GL_TexEnv
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _glState@GOTPAGE
Lloh1:
	ldr	x9, [x9, _glState@GOTPAGEOFF]
	ldp	x8, x9, [x9]
	ldr	w10, [x8, x9, lsl #2]
	cmp	w10, w0
	b.ne	LBB0_2
; %bb.1:
	ret
LBB0_2:
	mov	x2, x0
	str	w0, [x8, x9, lsl #2]
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.3:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh4:
	adrp	x8, _GL_TEXTURE_ENV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GL_TEXTURE_ENV@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _GL_TEXTURE_ENV_MODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GL_TEXTURE_ENV_MODE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w2, #128
	b	_qglTexEnvf
LBB0_5:
Lloh10:
	adrp	x8, _ri@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh12:
	ldr	x3, [x8]
Lloh13:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	br	x3
LBB0_6:
Lloh18:
	adrp	x8, _GL_TEXTURE_ENV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GL_TEXTURE_ENV@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _GL_TEXTURE_ENV_MODE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GL_TEXTURE_ENV_MODE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w2, #129
	b	_qglTexEnvf
LBB0_7:
Lloh24:
	adrp	x8, _GL_TEXTURE_ENV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GL_TEXTURE_ENV@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _GL_TEXTURE_ENV_MODE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GL_TEXTURE_ENV_MODE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	w2, #130
	b	_qglTexEnvf
LBB0_8:
Lloh30:
	adrp	x8, _GL_TEXTURE_ENV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GL_TEXTURE_ENV@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x8, _GL_TEXTURE_ENV_MODE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GL_TEXTURE_ENV_MODE@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	w2, #131
	b	_qglTexEnvf
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.comm	_glState,16,3                   ; @glState
	.comm	_GL_TEXTURE_ENV,4,2             ; @GL_TEXTURE_ENV
	.comm	_GL_TEXTURE_ENV_MODE,4,2        ; @GL_TEXTURE_ENV_MODE
	.comm	_ri,8,3                         ; @ri
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GL_TexEnv: invalid env '%d' passed\n"

.subsections_via_symbols
