	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_LoadTexMtxImm               ## -- Begin function GX_LoadTexMtxImm
	.p2align	4, 0x90
_GX_LoadTexMtxImm:                      ## @GX_LoadTexMtxImm
	.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	%rdx, %rbx
	movl	%edi, %r14d
	movq	_GX_MTX2x4@GOTPCREL(%rip), %r15
	movq	(%r15), %r12
	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
	jmp	LBB0_3
LBB0_2:
	subq	%rax, %rsi
	movq	%rsi, %rdi
	movl	$2, %esi
	movl	$8, %edx
	callq	__SHIFTL
	addq	$1280, %rax                     ## imm = 0x500
LBB0_3:
	xorl	%ecx, %ecx
	cmpq	%rbx, %r12
	setne	%cl
	leaq	8(,%rcx,4), %rsi
	movq	%rax, %rdi
	callq	_GX_LOAD_XF_REGS
	movq	_wgPipe@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rbx, (%r15)
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WriteMtxPS4x2                  ## TAILCALL
LBB0_5:
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WriteMtxPS4x3                  ## TAILCALL
	.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_LoadTexMtxImm               ; -- Begin function GX_LoadTexMtxImm
	.p2align	2
_GX_LoadTexMtxImm:                      ; @GX_LoadTexMtxImm
	.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	x21, _GX_MTX2x4@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GX_MTX2x4@GOTPAGEOFF]
	ldr	x22, [x21]
Lloh2:
	adrp	x8, _GX_DTTMTX0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GX_DTTMTX0@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x1
	b.le	LBB0_2
; %bb.1:
	mov	x0, x1
	mov	w1, #2
	mov	w2, #8
	bl	__SHIFTL
	b	LBB0_3
LBB0_2:
	sub	x0, x1, x8
	mov	w1, #2
	mov	w2, #8
	bl	__SHIFTL
	add	x0, x0, #1280
LBB0_3:
	mov	w8, #12
	mov	w9, #8
	cmp	x22, x20
	csel	x1, x9, x8, eq
	bl	_GX_LOAD_XF_REGS
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _wgPipe@GOTPAGE
Lloh6:
	ldr	x9, [x9, _wgPipe@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x9]
	mov	x0, x19
	cmp	x8, x20
	b.ne	LBB0_5
; %bb.4:
	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	_WriteMtxPS4x2
LBB0_5:
	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	_WriteMtxPS4x3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, 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
