	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gxDrawTextureRepeat            ## -- Begin function gxDrawTextureRepeat
	.p2align	4, 0x90
_gxDrawTextureRepeat:                   ## @gxDrawTextureRepeat
	.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
	subq	$24, %rsp
	.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, %r12
	movq	%rdi, %r14
	movq	16(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	movq	_GX_TF_RGBA8@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GX_REPEAT@GOTPCREL(%rip), %rax
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	(%rax), %r9d
	movq	_GX_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-48(%rbp), %rdi
	pushq	%rax
	pushq	%r9
	callq	_GX_InitTexObj
	addq	$16, %rsp
	movq	_GX_TEXMAP0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%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, %r12
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	subq	%rax, %rbx
	cvtsi2sd	%r13, %xmm1
	cvtsi2sdq	8(%r14), %xmm0
	cvtsi2sd	%r15, %xmm2
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -64(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r14), %xmm0
	divsd	%xmm0, %xmm2
	movsd	%xmm2, -56(%rbp)                ## 8-byte Spill
	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	%rbx, %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_GX_Position2s16
	movl	$255, %edi
	movl	$255, %esi
	movl	$255, %edx
	movq	%rbx, %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_GX_Color4u8
	xorpd	%xmm0, %xmm0
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_GX_TexCoord2f32
	addq	%r12, %r13
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_GX_Position2s16
	movl	$255, %edi
	movl	$255, %esi
	movl	$255, %edx
	movl	%ebx, %ecx
	callq	_GX_Color4u8
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_GX_TexCoord2f32
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_GX_Position2s16
	movl	$255, %edi
	movl	$255, %esi
	movl	$255, %edx
	movl	%ebx, %ecx
	callq	_GX_Color4u8
	xorps	%xmm1, %xmm1
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_GX_TexCoord2f32
	movq	%r12, %rdi
	movq	%r14, %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	$24, %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_REPEAT,4,2                  ## @GX_REPEAT
	.comm	_GX_FALSE,4,2                   ## @GX_FALSE
	.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	_gxDrawTextureRepeat            ; -- Begin function gxDrawTextureRepeat
	.p2align	2
_gxDrawTextureRepeat:                   ; @gxDrawTextureRepeat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x1
	mov	x24, x0
	ldr	x1, [x0, #16]
	cbz	x1, LBB0_3
; %bb.2:
	mov	x19, x5
	mov	x23, x4
	mov	x20, x3
	mov	x22, x2
	ldp	x3, x2, [x24]
Lloh0:
	adrp	x8, _GX_TF_RGBA8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GX_TF_RGBA8@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _GX_REPEAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GX_REPEAT@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
Lloh6:
	adrp	x8, _GX_FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GX_FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w7, [x8]
	add	x0, sp, #12
	mov	x6, x5
	bl	_GX_InitTexObj
Lloh9:
	adrp	x8, _GX_TEXMAP0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GX_TEXMAP0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_GX_LoadTexObj
	bl	_GX_InvalidateTexAll
Lloh12:
	adrp	x8, _vmode@GOTPAGE
Lloh13:
	ldr	x8, [x8, _vmode@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldp	w9, w8, [x8]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	sub	x21, x21, w9, sxtw
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	sub	x22, x22, w8, sxtw
	scvtf	d0, x20
	ldp	d2, d1, [x24]
	scvtf	d1, d1
	fdiv	d8, d0, d1
	scvtf	d0, x23
	scvtf	d1, d2
	fdiv	d9, d0, d1
Lloh15:
	adrp	x8, _GX_QUADS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GX_QUADS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _GX_VTXFMT0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GX_VTXFMT0@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_GX_Begin
	add	x23, x22, x23
	mov	x0, x21
	mov	x1, x23
	bl	_GX_Position2s16
	mov	w0, #255
	mov	w1, #255
	mov	w2, #255
	mov	x3, x19
	bl	_GX_Color4u8
	movi	d0, #0000000000000000
	fmov	d1, d9
	bl	_GX_TexCoord2f32
	add	x20, x21, x20
	mov	x0, x20
	mov	x1, x23
	bl	_GX_Position2s16
	mov	w0, #255
	mov	w1, #255
	mov	w2, #255
	mov	x3, x19
	bl	_GX_Color4u8
	fmov	d0, d8
	fmov	d1, d9
	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
	movi	d1, #0000000000000000
	fmov	d0, d8
	bl	_GX_TexCoord2f32
	mov	x0, x21
	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, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_GX_TF_RGBA8,4,2                ; @GX_TF_RGBA8
	.comm	_GX_REPEAT,4,2                  ; @GX_REPEAT
	.comm	_GX_FALSE,4,2                   ; @GX_FALSE
	.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
