	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_LoadTlut                    ## -- Begin function GX_LoadTlut
	.p2align	4, 0x90
_GX_LoadTlut:                           ## @GX_LoadTlut
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_tlut_regionCB
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	___GX_FlushTextureState
	movl	(%r14), %edi
	callq	_GX_LOAD_BP_REG
	movl	(%rbx), %edi
	callq	_GX_LOAD_BP_REG
	xorl	%eax, %eax
	callq	___GX_FlushTextureState
	movl	$-1024, %eax                    ## imm = 0xFC00
	andl	4(%r14), %eax
	movl	$1023, %ecx                     ## imm = 0x3FF
	andl	(%rbx), %ecx
	orl	%eax, %ecx
	movl	%ecx, 4(%rbx)
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 12(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_LoadTlut                    ; -- Begin function GX_LoadTlut
	.p2align	2
_GX_LoadTlut:                           ; @GX_LoadTlut
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, x1
	bl	_tlut_regionCB
	mov	x20, x0
	bl	___GX_FlushTextureState
	ldr	w0, [x19]
	bl	_GX_LOAD_BP_REG
	ldr	w0, [x20]
	bl	_GX_LOAD_BP_REG
	bl	___GX_FlushTextureState
	ldr	w8, [x20]
	ldp	w10, w9, [x19]
	bfxil	w9, w8, #0, #10
	stp	w9, w10, [x20, #4]
	ldr	w8, [x19, #8]
	str	w8, [x20, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
