	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function gxDrawTexture
LCPI0_0:
	.quad	0x4024000000000000              ## double 10
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gxDrawTexture
	.p2align	4, 0x90
_gxDrawTexture:                         ## @gxDrawTexture
	.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
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r13
	movq	8(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %r15
	movl	(%rdi), %ecx
	movl	4(%rdi), %edx
	movq	_GX_TF_RGBA8@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GX_CLAMP@GOTPCREL(%rip), %rax
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	(%rax), %r9d
	movq	_GX_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	leaq	-44(%rbp), %rdi
	pushq	%rax
	pushq	%r9
	callq	_GX_InitTexObj
	addq	$16, %rsp
	movq	_GX_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GX_LIN_MIP_LIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movq	_GX_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GX_ANISO_4@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	xorps	%xmm0, %xmm0
	xorps	%xmm2, %xmm2
	leaq	-44(%rbp), %rdi
	callq	_GX_InitTexObjLOD
	movq	_GX_TEXMAP0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	callq	_GX_LoadTexObj
	xorl	%eax, %eax
	callq	_GX_InvalidateTexAll
	movq	_vmode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rcx
	subq	%rcx, %r13
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	subq	%rax, %r15
	movq	_GX_QUADS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GX_VTXFMT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_GX_Begin
	addq	%r15, %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_GX_Position2s16
	movl	$255, %edi
	movl	$255, %esi
	movl	$255, %edx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_GX_Color4u8
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	xorps	%xmm0, %xmm0
	callq	_GX_TexCoord2f32
	addq	%r13, %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_GX_Position2s16
	movl	$255, %edi
	movl	$255, %esi
	movl	$255, %edx
	movl	%ebx, %ecx
	callq	_GX_Color4u8
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	movaps	%xmm0, %xmm1
	callq	_GX_TexCoord2f32
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_GX_Position2s16
	movl	$255, %edi
	movl	$255, %esi
	movl	$255, %edx
	movl	%ebx, %ecx
	callq	_GX_Color4u8
	xorps	%xmm1, %xmm1
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_GX_TexCoord2f32
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_GX_Position2s16
	movl	$255, %edi
	movl	$255, %esi
	movl	$255, %edx
	movl	%ebx, %ecx
	callq	_GX_Color4u8
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	callq	_GX_TexCoord2f32
	xorl	%eax, %eax
	callq	_GX_End
	xorl	%eax, %eax
	callq	_GX_DrawDone
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GX_TF_RGBA8,4,2                ## @GX_TF_RGBA8
	.comm	_GX_CLAMP,4,2                   ## @GX_CLAMP
	.comm	_GX_FALSE,4,2                   ## @GX_FALSE
	.comm	_GX_LINEAR,4,2                  ## @GX_LINEAR
	.comm	_GX_LIN_MIP_LIN,4,2             ## @GX_LIN_MIP_LIN
	.comm	_GX_TRUE,4,2                    ## @GX_TRUE
	.comm	_GX_ANISO_4,4,2                 ## @GX_ANISO_4
	.comm	_GX_TEXMAP0,4,2                 ## @GX_TEXMAP0
	.comm	_vmode,8,3                      ## @vmode
	.comm	_GX_QUADS,4,2                   ## @GX_QUADS
	.comm	_GX_VTXFMT0,4,2                 ## @GX_VTXFMT0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gxDrawTexture                  ; -- Begin function gxDrawTexture
	.p2align	2
_gxDrawTexture:                         ; @gxDrawTexture
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x1
	ldr	x1, [x0, #8]
	cbz	x1, LBB0_3
; %bb.2:
	mov	x19, x5
	mov	x21, x4
	mov	x20, x3
	mov	x22, x2
	ldp	w3, w2, [x0]
Lloh0:
	adrp	x8, _GX_TF_RGBA8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GX_TF_RGBA8@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _GX_CLAMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GX_CLAMP@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
Lloh6:
	adrp	x24, _GX_FALSE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _GX_FALSE@GOTPAGEOFF]
	ldr	w7, [x24]
	add	x0, sp, #12
	mov	x6, x5
	bl	_GX_InitTexObj
Lloh8:
	adrp	x8, _GX_LINEAR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GX_LINEAR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _GX_LIN_MIP_LIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GX_LIN_MIP_LIN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	w3, [x24]
Lloh14:
	adrp	x8, _GX_TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GX_TRUE@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
Lloh17:
	adrp	x8, _GX_ANISO_4@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GX_ANISO_4@GOTPAGEOFF]
Lloh19:
	ldr	w5, [x8]
	add	x0, sp, #12
	movi	d0, #0000000000000000
	fmov	d1, #10.00000000
	movi	d2, #0000000000000000
	bl	_GX_InitTexObjLOD
Lloh20:
	adrp	x8, _GX_TEXMAP0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GX_TEXMAP0@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_GX_LoadTexObj
	bl	_GX_InvalidateTexAll
Lloh23:
	adrp	x8, _vmode@GOTPAGE
Lloh24:
	ldr	x8, [x8, _vmode@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldp	w9, w8, [x8]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	sub	x23, x23, w9, sxtw
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	sub	x22, x22, w8, sxtw
Lloh26:
	adrp	x8, _GX_QUADS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GX_QUADS@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _GX_VTXFMT0@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GX_VTXFMT0@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_GX_Begin
	add	x21, x22, x21
	mov	x0, x23
	mov	x1, x21
	bl	_GX_Position2s16
	mov	w0, #255
	mov	w1, #255
	mov	w2, #255
	mov	x3, x19
	bl	_GX_Color4u8
	movi	d0, #0000000000000000
	fmov	d1, #1.00000000
	bl	_GX_TexCoord2f32
	add	x20, x23, x20
	mov	x0, x20
	mov	x1, x21
	bl	_GX_Position2s16
	mov	w0, #255
	mov	w1, #255
	mov	w2, #255
	mov	x3, x19
	bl	_GX_Color4u8
	fmov	d0, #1.00000000
	fmov	d1, #1.00000000
	bl	_GX_TexCoord2f32
	mov	x0, x20
	mov	x1, x22
	bl	_GX_Position2s16
	mov	w0, #255
	mov	w1, #255
	mov	w2, #255
	mov	x3, x19
	bl	_GX_Color4u8
	fmov	d0, #1.00000000
	movi	d1, #0000000000000000
	bl	_GX_TexCoord2f32
	mov	x0, x23
	mov	x1, x22
	bl	_GX_Position2s16
	mov	w0, #255
	mov	w1, #255
	mov	w2, #255
	mov	x3, x19
	bl	_GX_Color4u8
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	bl	_GX_TexCoord2f32
	bl	_GX_End
	bl	_GX_DrawDone
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GX_TF_RGBA8,4,2                ; @GX_TF_RGBA8
	.comm	_GX_CLAMP,4,2                   ; @GX_CLAMP
	.comm	_GX_FALSE,4,2                   ; @GX_FALSE
	.comm	_GX_LINEAR,4,2                  ; @GX_LINEAR
	.comm	_GX_LIN_MIP_LIN,4,2             ; @GX_LIN_MIP_LIN
	.comm	_GX_TRUE,4,2                    ; @GX_TRUE
	.comm	_GX_ANISO_4,4,2                 ; @GX_ANISO_4
	.comm	_GX_TEXMAP0,4,2                 ; @GX_TEXMAP0
	.comm	_vmode,8,3                      ; @vmode
	.comm	_GX_QUADS,4,2                   ; @GX_QUADS
	.comm	_GX_VTXFMT0,4,2                 ; @GX_VTXFMT0
.subsections_via_symbols
