	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gxDrawRectangle                ## -- Begin function gxDrawRectangle
	.p2align	4, 0x90
_gxDrawRectangle:                       ## @gxDrawRectangle
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, %r15
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_GX_TEVSTAGE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GX_PASSCLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GX_SetTevOp
	movq	_GX_VA_TEX0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GX_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GX_SetVtxDesc
	xorl	%eax, %eax
	callq	_GX_Flush
	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, %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	subq	%rax, %r14
	movq	%r14, -64(%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	%r14, %r15
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_GX_Position2s16
	movl	24(%rbp), %r12d
	movl	16(%rbp), %r14d
	movl	20(%rbp), %r15d
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	callq	_GX_Color4u8
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	%rbx, %rdi
	movq	%rdi, %rbx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_GX_Position2s16
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	callq	_GX_Color4u8
	movq	%rbx, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_GX_Position2s16
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	callq	_GX_Color4u8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_GX_Position2s16
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	callq	_GX_Color4u8
	xorl	%eax, %eax
	callq	_GX_End
	xorl	%eax, %eax
	callq	_GX_DrawDone
	movq	_GX_VA_TEX0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GX_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GX_SetVtxDesc
	movq	_GX_TEVSTAGE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GX_MODULATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GX_SetTevOp
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GX_Flush                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GX_TEVSTAGE0,4,2               ## @GX_TEVSTAGE0
	.comm	_GX_PASSCLR,4,2                 ## @GX_PASSCLR
	.comm	_GX_VA_TEX0,4,2                 ## @GX_VA_TEX0
	.comm	_GX_NONE,4,2                    ## @GX_NONE
	.comm	_vmode,8,3                      ## @vmode
	.comm	_GX_QUADS,4,2                   ## @GX_QUADS
	.comm	_GX_VTXFMT0,4,2                 ## @GX_VTXFMT0
	.comm	_GX_DIRECT,4,2                  ## @GX_DIRECT
	.comm	_GX_MODULATE,4,2                ## @GX_MODULATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gxDrawRectangle                ; -- Begin function gxDrawRectangle
	.p2align	2
_gxDrawRectangle:                       ; @gxDrawRectangle
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x6
	mov	x20, x5
	mov	x19, x4
	mov	x24, x3
	mov	x23, x2
	mov	x25, x1
	mov	x26, x0
	lsr	x22, x5, #32
Lloh0:
	adrp	x27, _GX_TEVSTAGE0@GOTPAGE
Lloh1:
	ldr	x27, [x27, _GX_TEVSTAGE0@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh2:
	adrp	x8, _GX_PASSCLR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GX_PASSCLR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_GX_SetTevOp
Lloh5:
	adrp	x28, _GX_VA_TEX0@GOTPAGE
Lloh6:
	ldr	x28, [x28, _GX_VA_TEX0@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh7:
	adrp	x8, _GX_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GX_NONE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_GX_SetVtxDesc
	bl	_GX_Flush
Lloh10:
	adrp	x8, _vmode@GOTPAGE
Lloh11:
	ldr	x8, [x8, _vmode@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldp	w9, w8, [x8]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	sub	x26, x26, w9, sxtw
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	sub	x25, x25, w8, sxtw
Lloh13:
	adrp	x8, _GX_QUADS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GX_QUADS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _GX_VTXFMT0@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GX_VTXFMT0@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_GX_Begin
	add	x24, x25, x24
	mov	x0, x26
	mov	x1, x24
	bl	_GX_Position2s16
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_GX_Color4u8
	add	x23, x26, x23
	mov	x0, x23
	mov	x1, x24
	bl	_GX_Position2s16
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_GX_Color4u8
	mov	x0, x23
	mov	x1, x25
	bl	_GX_Position2s16
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_GX_Color4u8
	mov	x0, x26
	mov	x1, x25
	bl	_GX_Position2s16
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_GX_Color4u8
	bl	_GX_End
	bl	_GX_DrawDone
	ldr	w0, [x28]
Lloh19:
	adrp	x8, _GX_DIRECT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GX_DIRECT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_GX_SetVtxDesc
	ldr	w0, [x27]
Lloh22:
	adrp	x8, _GX_MODULATE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GX_MODULATE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_GX_SetTevOp
	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	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_GX_Flush
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GX_TEVSTAGE0,4,2               ; @GX_TEVSTAGE0
	.comm	_GX_PASSCLR,4,2                 ; @GX_PASSCLR
	.comm	_GX_VA_TEX0,4,2                 ; @GX_VA_TEX0
	.comm	_GX_NONE,4,2                    ; @GX_NONE
	.comm	_vmode,8,3                      ; @vmode
	.comm	_GX_QUADS,4,2                   ; @GX_QUADS
	.comm	_GX_VTXFMT0,4,2                 ; @GX_VTXFMT0
	.comm	_GX_DIRECT,4,2                  ; @GX_DIRECT
	.comm	_GX_MODULATE,4,2                ; @GX_MODULATE
.subsections_via_symbols
