	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function gl_TexEnvfv
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gl_TexEnvfv
	.p2align	4, 0x90
_gl_TexEnvfv:                           ## @gl_TexEnvfv
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_INSIDE_BEGIN_END
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_GL_INVALID_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_3:
	movq	_GL_TEXTURE_ENV@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_4
## %bb.5:
	movq	_GL_TEXTURE_ENV_MODE@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_9
## %bb.6:
	movq	(%r14), %rax
	movl	%eax, %ecx
	andl	$-4, %ecx
	cmpl	$128, %ecx
	jne	LBB0_8
## %bb.7:
	cltq
	movq	%rax, 16(%r12)
	jmp	LBB0_11
LBB0_4:
	movq	_GL_INVALID_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_2:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_error                       ## TAILCALL
LBB0_9:
	movq	_GL_TEXTURE_ENV_COLOR@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_13
## %bb.10:
	movq	(%r14), %rdi
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	xorps	%xmm0, %xmm0
	callq	_CLAMP
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
	movq	8(%r14), %rdi
	xorps	%xmm0, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_CLAMP
	movq	8(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	16(%r14), %rdi
	xorps	%xmm0, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_CLAMP
	movq	8(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	24(%r14), %rdi
	xorps	%xmm0, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_CLAMP
	movq	8(%r12), %rcx
	movq	%rax, 24(%rcx)
LBB0_11:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_8:
	movq	_GL_INVALID_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_2
LBB0_13:
	movq	_GL_INVALID_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_2
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_INVALID_OPERATION,4,2       ## @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glTexEnv"

	.comm	_GL_TEXTURE_ENV,8,3             ## @GL_TEXTURE_ENV
	.comm	_GL_INVALID_ENUM,4,2            ## @GL_INVALID_ENUM
L_.str.1:                               ## @.str.1
	.asciz	"glTexEnv(target)"

	.comm	_GL_TEXTURE_ENV_MODE,8,3        ## @GL_TEXTURE_ENV_MODE
L_.str.2:                               ## @.str.2
	.asciz	"glTexEnv(param)"

	.comm	_GL_TEXTURE_ENV_COLOR,8,3       ## @GL_TEXTURE_ENV_COLOR
L_.str.3:                               ## @.str.3
	.asciz	"glTexEnv(pname)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_TexEnvfv                    ; -- Begin function gl_TexEnvfv
	.p2align	2
_gl_TexEnvfv:                           ; @gl_TexEnvfv
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_INSIDE_BEGIN_END
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GL_INVALID_OPERATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_INVALID_OPERATION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_2:
Lloh5:
	adrp	x8, _GL_TEXTURE_ENV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_TEXTURE_ENV@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_7
; %bb.3:
Lloh8:
	adrp	x8, _GL_TEXTURE_ENV_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_TEXTURE_ENV_MODE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x20]
	and	x9, x8, #0xfffffffc
	cmp	x9, #128
	b.ne	LBB0_12
; %bb.5:
	sxtw	x8, w8
	str	x8, [x19, #16]
	ldr	x3, [x19]
	cbz	x3, LBB0_11
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	mov	x2, 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
	br	x3
LBB0_7:
Lloh11:
	adrp	x8, _GL_INVALID_ENUM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_INVALID_ENUM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	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
	b	_gl_error
LBB0_9:
Lloh16:
	adrp	x8, _GL_TEXTURE_ENV_COLOR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GL_TEXTURE_ENV_COLOR@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_13
; %bb.10:
	ldr	x0, [x20]
	movi	d0, #0000000000000000
	fmov	d1, #1.00000000
	bl	_CLAMP
	ldr	x8, [x19, #8]
	str	x0, [x8]
	ldr	x0, [x20, #8]
	movi	d0, #0000000000000000
	fmov	d1, #1.00000000
	bl	_CLAMP
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	ldr	x0, [x20, #16]
	movi	d0, #0000000000000000
	fmov	d1, #1.00000000
	bl	_CLAMP
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	ldr	x0, [x20, #24]
	movi	d0, #0000000000000000
	fmov	d1, #1.00000000
	bl	_CLAMP
	ldr	x8, [x19, #8]
	str	x0, [x8, #24]
	ldr	x3, [x19]
	cbnz	x3, LBB0_6
LBB0_11:
	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
LBB0_12:
Lloh19:
	adrp	x8, _GL_INVALID_ENUM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GL_INVALID_ENUM@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_13:
Lloh24:
	adrp	x8, _GL_INVALID_ENUM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GL_INVALID_ENUM@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.3@PAGE
Lloh28:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_INVALID_OPERATION,4,2       ; @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glTexEnv"

	.comm	_GL_TEXTURE_ENV,8,3             ; @GL_TEXTURE_ENV
	.comm	_GL_INVALID_ENUM,4,2            ; @GL_INVALID_ENUM
l_.str.1:                               ; @.str.1
	.asciz	"glTexEnv(target)"

	.comm	_GL_TEXTURE_ENV_MODE,8,3        ; @GL_TEXTURE_ENV_MODE
l_.str.2:                               ; @.str.2
	.asciz	"glTexEnv(param)"

	.comm	_GL_TEXTURE_ENV_COLOR,8,3       ; @GL_TEXTURE_ENV_COLOR
l_.str.3:                               ; @.str.3
	.asciz	"glTexEnv(pname)"

.subsections_via_symbols
