	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_LoadTexMtxIdx               ## -- Begin function GX_LoadTexMtxIdx
	.p2align	4, 0x90
_GX_LoadTexMtxIdx:                      ## @GX_LoadTexMtxIdx
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	_GX_MTX2x4@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_GX_DTTMTX0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, %rax
	jle	LBB0_2
## %bb.1:
	movq	%rsi, %rdi
	movl	$2, %esi
	movl	$8, %edx
	callq	__SHIFTL
	movq	%rax, %r12
	jmp	LBB0_3
LBB0_2:
	subq	%rax, %rsi
	movq	%rsi, %rdi
	movl	$2, %esi
	movl	$8, %edx
	callq	__SHIFTL
	movq	%rax, %r12
	orq	$1280, %r12                     ## imm = 0x500
LBB0_3:
	xorl	%eax, %eax
	cmpq	%r15, %rbx
	setne	%al
	leaq	7(,%rax,4), %r15
	movq	_wgPipe@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	$48, (%rax)
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$16, %edx
	callq	__SHIFTL
	movq	%rax, %rbx
	movq	%r15, %rdi
	movl	$12, %esi
	movl	$4, %edx
	callq	__SHIFTL
	orq	%r12, %rbx
	orq	%rax, %rbx
	movq	(%r13), %rax
	movq	%rbx, 8(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GX_MTX2x4,8,3                  ## @GX_MTX2x4
	.comm	_GX_DTTMTX0,8,3                 ## @GX_DTTMTX0
	.comm	_wgPipe,8,3                     ## @wgPipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_LoadTexMtxIdx               ; -- Begin function GX_LoadTexMtxIdx
	.p2align	2
_GX_LoadTexMtxIdx:                      ; @GX_LoadTexMtxIdx
	.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, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _GX_MTX2x4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GX_MTX2x4@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x8, _GX_DTTMTX0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GX_DTTMTX0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.le	LBB0_2
; %bb.1:
	mov	x0, x1
	mov	w1, #2
	mov	w2, #8
	bl	__SHIFTL
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	sub	x0, x1, x8
	mov	w1, #2
	mov	w2, #8
	bl	__SHIFTL
	mov	w8, #1280
	orr	x21, x0, x8
LBB0_3:
	mov	w8, #11
	mov	w9, #7
	cmp	x22, x20
	csel	x20, x9, x8, eq
Lloh6:
	adrp	x22, _wgPipe@GOTPAGE
Lloh7:
	ldr	x22, [x22, _wgPipe@GOTPAGEOFF]
	ldr	x8, [x22]
	mov	w9, #48
	str	w9, [x8]
	mov	x0, x19
	mov	w1, #16
	mov	w2, #16
	bl	__SHIFTL
	mov	x19, x0
	mov	x0, x20
	mov	w1, #12
	mov	w2, #4
	bl	__SHIFTL
	orr	x8, x19, x21
	orr	x8, x8, x0
	ldr	x9, [x22]
	str	x8, [x9, #8]
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GX_MTX2x4,8,3                  ; @GX_MTX2x4
	.comm	_GX_DTTMTX0,8,3                 ; @GX_DTTMTX0
	.comm	_wgPipe,8,3                     ; @wgPipe
.subsections_via_symbols
