	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_LoadTexObjPreloaded         ## -- Begin function GX_LoadTexObjPreloaded
	.p2align	4, 0x90
_GX_LoadTexObjPreloaded:                ## @GX_LoadTexObjPreloaded
	.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, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	$16777215, %r15d                ## imm = 0xFFFFFF
	movl	(%rdi), %ebx
	andl	%r15d, %ebx
	movq	__gxtexmode0ids@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rdx,4), %edi
	movl	$24, %esi
	movl	$8, %edx
	callq	__SHIFTL
	orl	%ebx, %eax
	movl	%eax, (%r13)
	movl	4(%r13), %ebx
	andl	%r15d, %ebx
	movq	__gxtexmode1ids@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	movl	$24, %esi
	movl	$8, %edx
	callq	__SHIFTL
	orl	%ebx, %eax
	movl	%eax, 4(%r13)
	movl	8(%r13), %ebx
	andl	%r15d, %ebx
	movq	__gxteximg0ids@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	movl	$24, %esi
	movl	$8, %edx
	callq	__SHIFTL
	orl	%ebx, %eax
	movl	%eax, 8(%r13)
	movl	12(%r13), %ebx
	andl	%r15d, %ebx
	movq	__gxteximg3ids@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	movl	$24, %esi
	movl	$8, %edx
	callq	__SHIFTL
	orl	%ebx, %eax
	movl	%eax, 12(%r13)
	movl	(%r12), %ebx
	andl	%r15d, %ebx
	movq	__gxteximg1ids@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	movl	$24, %esi
	movl	$8, %edx
	callq	__SHIFTL
	orl	%ebx, %eax
	movl	%eax, (%r12)
	movl	4(%r12), %ebx
	andl	%r15d, %ebx
	movq	__gxteximg2ids@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	movl	$24, %esi
	movl	$8, %edx
	callq	__SHIFTL
	orl	%ebx, %eax
	movl	%eax, 4(%r12)
	movl	(%r13), %edi
	callq	_GX_LOAD_BP_REG
	movl	4(%r13), %edi
	callq	_GX_LOAD_BP_REG
	movl	8(%r13), %edi
	callq	_GX_LOAD_BP_REG
	movl	(%r12), %edi
	callq	_GX_LOAD_BP_REG
	movl	4(%r12), %edi
	callq	_GX_LOAD_BP_REG
	movl	12(%r13), %edi
	callq	_GX_LOAD_BP_REG
	testb	$2, 16(%r13)
	jne	LBB0_2
## %bb.1:
	movl	24(%r13), %edi
	callq	_tlut_regionCB
	movq	%rax, %r12
	andl	(%rax), %r15d
	movq	__gxtextlutids@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	movl	$24, %esi
	movl	$8, %edx
	callq	__SHIFTL
	orl	%eax, %r15d
	movl	%r15d, (%r12)
	movl	%r15d, %edi
	callq	_GX_LOAD_BP_REG
LBB0_2:
	movl	8(%r13), %eax
	movq	___gx@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdx
	movl	%eax, (%rdx,%r14,4)
	movl	(%r13), %eax
	movq	8(%rcx), %rdx
	movl	%eax, (%rdx,%r14,4)
	orb	$1, 16(%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__gxtexmode0ids,8,3             ## @_gxtexmode0ids
	.comm	__gxtexmode1ids,8,3             ## @_gxtexmode1ids
	.comm	__gxteximg0ids,8,3              ## @_gxteximg0ids
	.comm	__gxteximg3ids,8,3              ## @_gxteximg3ids
	.comm	__gxteximg1ids,8,3              ## @_gxteximg1ids
	.comm	__gxteximg2ids,8,3              ## @_gxteximg2ids
	.comm	__gxtextlutids,8,3              ## @_gxtextlutids
	.comm	___gx,8,3                       ## @__gx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_LoadTexObjPreloaded         ; -- Begin function GX_LoadTexObjPreloaded
	.p2align	2
_GX_LoadTexObjPreloaded:                ; @GX_LoadTexObjPreloaded
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
	and	w23, w8, #0xffffff
Lloh0:
	adrp	x8, __gxtexmode0ids@GOTPAGE
Lloh1:
	ldr	x8, [x8, __gxtexmode0ids@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	x22, x2, #2
	ldr	w0, [x8, x22]
	mov	w1, #24
	mov	w2, #8
	bl	__SHIFTL
	orr	w8, w0, w23
	str	w8, [x19]
	ldr	w8, [x19, #4]
	and	w23, w8, #0xffffff
Lloh3:
	adrp	x8, __gxtexmode1ids@GOTPAGE
Lloh4:
	ldr	x8, [x8, __gxtexmode1ids@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w0, [x8, x22]
	mov	w1, #24
	mov	w2, #8
	bl	__SHIFTL
	orr	w8, w0, w23
	str	w8, [x19, #4]
	ldr	w8, [x19, #8]
	and	w23, w8, #0xffffff
Lloh6:
	adrp	x8, __gxteximg0ids@GOTPAGE
Lloh7:
	ldr	x8, [x8, __gxteximg0ids@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w0, [x8, x22]
	mov	w1, #24
	mov	w2, #8
	bl	__SHIFTL
	orr	w8, w0, w23
	str	w8, [x19, #8]
	ldr	w8, [x19, #12]
	and	w23, w8, #0xffffff
Lloh9:
	adrp	x8, __gxteximg3ids@GOTPAGE
Lloh10:
	ldr	x8, [x8, __gxteximg3ids@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w0, [x8, x22]
	mov	w1, #24
	mov	w2, #8
	bl	__SHIFTL
	orr	w8, w0, w23
	str	w8, [x19, #12]
	ldr	w8, [x21]
	and	w23, w8, #0xffffff
Lloh12:
	adrp	x8, __gxteximg1ids@GOTPAGE
Lloh13:
	ldr	x8, [x8, __gxteximg1ids@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w0, [x8, x22]
	mov	w1, #24
	mov	w2, #8
	bl	__SHIFTL
	orr	w8, w0, w23
	str	w8, [x21]
	ldr	w8, [x21, #4]
	and	w23, w8, #0xffffff
Lloh15:
	adrp	x8, __gxteximg2ids@GOTPAGE
Lloh16:
	ldr	x8, [x8, __gxteximg2ids@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	w0, [x8, x22]
	mov	w1, #24
	mov	w2, #8
	bl	__SHIFTL
	orr	w8, w0, w23
	str	w8, [x21, #4]
	ldr	w0, [x19]
	bl	_GX_LOAD_BP_REG
	ldr	w0, [x19, #4]
	bl	_GX_LOAD_BP_REG
	ldr	w0, [x19, #8]
	bl	_GX_LOAD_BP_REG
	ldr	w0, [x21]
	bl	_GX_LOAD_BP_REG
	ldr	w0, [x21, #4]
	bl	_GX_LOAD_BP_REG
	ldr	w0, [x19, #12]
	bl	_GX_LOAD_BP_REG
	ldrb	w8, [x19, #16]
	tbnz	w8, #1, LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
	bl	_tlut_regionCB
	mov	x21, x0
	ldr	w8, [x0]
	and	w23, w8, #0xffffff
Lloh18:
	adrp	x8, __gxtextlutids@GOTPAGE
Lloh19:
	ldr	x8, [x8, __gxtextlutids@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	w0, [x8, x20, lsl #2]
	mov	w1, #24
	mov	w2, #8
	bl	__SHIFTL
	orr	w0, w0, w23
	str	w0, [x21]
	bl	_GX_LOAD_BP_REG
LBB0_2:
Lloh21:
	adrp	x8, ___gx@GOTPAGE
Lloh22:
	ldr	x8, [x8, ___gx@GOTPAGEOFF]
	ldr	w9, [x19, #8]
Lloh23:
	ldr	x8, [x8]
	ldp	x10, x11, [x8]
	str	w9, [x10, x22]
	ldr	w9, [x19]
	str	w9, [x11, x22]
	ldr	w9, [x8, #16]
	orr	w9, w9, #0x1
	str	w9, [x8, #16]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	__gxtexmode0ids,8,3             ; @_gxtexmode0ids
	.comm	__gxtexmode1ids,8,3             ; @_gxtexmode1ids
	.comm	__gxteximg0ids,8,3              ; @_gxteximg0ids
	.comm	__gxteximg3ids,8,3              ; @_gxteximg3ids
	.comm	__gxteximg1ids,8,3              ; @_gxteximg1ids
	.comm	__gxteximg2ids,8,3              ; @_gxteximg2ids
	.comm	__gxtextlutids,8,3              ; @_gxtextlutids
	.comm	___gx,8,3                       ; @__gx
.subsections_via_symbols
