	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_GetTexEnviv                 ## -- Begin function gl_GetTexEnviv
	.p2align	4, 0x90
_gl_GetTexEnviv:                        ## @gl_GetTexEnviv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_GL_TEXTURE_ENV@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_1
## %bb.3:
	movq	%rcx, %r14
	cmpq	$129, %rdx
	je	LBB0_7
## %bb.4:
	cmpq	$128, %rdx
	jne	LBB0_6
## %bb.5:
	movl	8(%rbx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_8
LBB0_1:
	movq	_GL_INVALID_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_7:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_FLOAT_TO_INT
	movl	%eax, (%r14)
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_FLOAT_TO_INT
	movl	%eax, 4(%r14)
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_FLOAT_TO_INT
	movl	%eax, 8(%r14)
	movq	(%rbx), %rax
	movl	12(%rax), %edi
	callq	_FLOAT_TO_INT
	movl	%eax, 12(%r14)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_GL_INVALID_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_2:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gl_error                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TEXTURE_ENV,8,3             ## @GL_TEXTURE_ENV
	.comm	_GL_INVALID_ENUM,4,2            ## @GL_INVALID_ENUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glGetTexEnvfv(target)"

L_.str.1:                               ## @.str.1
	.asciz	"glGetTexEnvfv(pname)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_GetTexEnviv                 ; -- Begin function gl_GetTexEnviv
	.p2align	2
_gl_GetTexEnviv:                        ; @gl_GetTexEnviv
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _GL_TEXTURE_ENV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_TEXTURE_ENV@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x3
	cmp	x2, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	x2, #128
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x20, #8]
	str	w8, [x19]
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _GL_INVALID_ENUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_INVALID_ENUM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_5:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_FLOAT_TO_INT
	str	w0, [x19]
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	bl	_FLOAT_TO_INT
	str	w0, [x19, #4]
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
	bl	_FLOAT_TO_INT
	str	w0, [x19, #8]
	ldr	x8, [x20]
	ldr	w0, [x8, #12]
	bl	_FLOAT_TO_INT
	str	w0, [x19, #12]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh8:
	adrp	x8, _GL_INVALID_ENUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_INVALID_ENUM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gl_error
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TEXTURE_ENV,8,3             ; @GL_TEXTURE_ENV
	.comm	_GL_INVALID_ENUM,4,2            ; @GL_INVALID_ENUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glGetTexEnvfv(target)"

l_.str.1:                               ; @.str.1
	.asciz	"glGetTexEnvfv(pname)"

.subsections_via_symbols
