	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GPU_SetTexEnv                  ## -- Begin function GPU_SetTexEnv
	.p2align	4, 0x90
_GPU_SetTexEnv:                         ## @GPU_SetTexEnv
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$6, %edi
	jg	LBB0_2
## %bb.1:
	movl	%r8d, %ebx
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %r12d
	movl	16(%rbp), %r13d
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	movl	%r9d, -88(%rbp)                 ## 4-byte Spill
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	callq	_memset
	shll	$16, %r15d
	orl	%r14d, %r15d
	movl	%r15d, -80(%rbp)
	shll	$12, %ebx
	orl	-84(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, -76(%rbp)
	shll	$16, %r13d
	orl	-88(%rbp), %r13d                ## 4-byte Folded Reload
	movl	%r13d, -72(%rbp)
	movl	24(%rbp), %eax
	movl	%eax, -68(%rbp)
	movl	$0, -64(%rbp)
	movq	_GPUREG_0000@GOTPCREL(%rip), %rax
	movq	_GPU_TEVID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r12d, %rdx
	movl	(%rcx,%rdx,4), %edi
	orl	(%rax), %edi
	leaq	-80(%rbp), %rsi
	movl	$5, %edx
	callq	_GPUCMD_AddIncrementalWrites
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GPUREG_0000,4,2                ## @GPUREG_0000
	.comm	_GPU_TEVID,8,3                  ## @GPU_TEVID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GPU_SetTexEnv                  ; -- Begin function GPU_SetTexEnv
	.p2align	2
_GPU_SetTexEnv:                         ; @GPU_SetTexEnv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cmp	w0, #6
	b.gt	LBB0_2
; %bb.1:
	mov	x19, x7
	mov	x21, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x20, x0
	add	x0, sp, #4
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	orr	w8, w26, w25, lsl #16
	orr	w9, w24, w23, lsl #12
	stp	w8, w9, [sp, #4]
	orr	w8, w22, w21, lsl #16
	stp	w8, w19, [sp, #12]
	str	wzr, [sp, #20]
Lloh3:
	adrp	x8, _GPUREG_0000@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPUREG_0000@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _GPU_TEVID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GPU_TEVID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w9, [x9, w20, sxtw #2]
	orr	w0, w9, w8
	add	x1, sp, #4
	mov	w2, #5
	bl	_GPUCMD_AddIncrementalWrites
LBB0_2:
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GPUREG_0000,4,2                ; @GPUREG_0000
	.comm	_GPU_TEVID,8,3                  ; @GPU_TEVID
.subsections_via_symbols
