	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_SetZTexture                 ## -- Begin function GX_SetZTexture
	.p2align	4, 0x90
_GX_SetZTexture:                        ## @GX_SetZTexture
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	_GX_TF_Z8@GOTPCREL(%rip), %rax
	movq	_GX_TF_Z16@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	%esi, (%rcx)
	sete	%dl
	movl	$2, %ecx
	subl	%edx, %ecx
	xorl	%r15d, %r15d
	cmpl	%esi, (%rax)
	cmovnel	%ecx, %r15d
	movl	$2, %esi
	movl	$2, %edx
	callq	__SHIFTL
	movq	%rax, %rbx
	andl	$16777215, %r14d                ## imm = 0xFFFFFF
	orl	$-201326592, %r14d              ## imm = 0xF4000000
	movl	%r14d, %edi
	callq	_GX_LOAD_BP_REG
	andl	$16777215, %ebx                 ## imm = 0xFFFFFF
	orl	%r15d, %ebx
	orl	$-184549376, %ebx               ## imm = 0xF5000000
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GX_LOAD_BP_REG                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GX_TF_Z8,4,2                   ## @GX_TF_Z8
	.comm	_GX_TF_Z16,4,2                  ## @GX_TF_Z16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_SetZTexture                 ; -- Begin function GX_SetZTexture
	.p2align	2
_GX_SetZTexture:                        ; @GX_SetZTexture
	.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	x19, x2
Lloh0:
	adrp	x8, _GX_TF_Z8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GX_TF_Z8@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GX_TF_Z16@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GX_TF_Z16@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w1
	mov	w9, #1
	cinc	w9, w9, ne
	cmp	w8, w1
	csel	w21, wzr, w9, eq
	mov	w1, #2
	mov	w2, #2
	bl	__SHIFTL
	mov	x20, x0
	mov	w0, #-201326592
	bfxil	w0, w19, #0, #24
	bl	_GX_LOAD_BP_REG
	and	w8, w20, #0xffffff
	orr	w8, w8, w21
	mov	w9, #-184549376
	orr	w0, w8, w9
	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	_GX_LOAD_BP_REG
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GX_TF_Z8,4,2                   ; @GX_TF_Z8
	.comm	_GX_TF_Z16,4,2                  ; @GX_TF_Z16
.subsections_via_symbols
