	.file	"extr_gx_video.c_gxDrawRectangle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gxDrawRectangle
	.type	gxDrawRectangle, @function
gxDrawRectangle:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR GX_PASSCLR[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE0[rip]
	mov	r15d, DWORD PTR 80[rsp]
	mov	r14d, DWORD PTR 84[rsp]
	mov	QWORD PTR 8[rsp], rcx
	mov	r13d, DWORD PTR 88[rsp]
	mov	QWORD PTR [rsp], rdx
	call	GX_SetTevOp@PLT
	mov	esi, DWORD PTR GX_NONE[rip]
	mov	edi, DWORD PTR GX_VA_TEX0[rip]
	call	GX_SetVtxDesc@PLT
	xor	eax, eax
	call	GX_Flush@PLT
	mov	rdx, QWORD PTR vmode[rip]
	mov	edi, DWORD PTR GX_QUADS[rip]
	mov	esi, DWORD PTR [rdx]
	mov	edx, DWORD PTR 4[rdx]
	mov	eax, esi
	shr	eax, 31
	add	eax, esi
	mov	esi, DWORD PTR GX_VTXFMT0[rip]
	sar	eax
	cdqe
	sub	rbp, rax
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	mov	edx, 4
	sar	eax
	cdqe
	sub	r12, rax
	call	GX_Begin@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	rdi, rbp
	add	r8, r12
	mov	rsi, r8
	mov	QWORD PTR 8[rsp], r8
	call	GX_Position2s16@PLT
	mov	ecx, ebx
	mov	edx, r15d
	mov	esi, r14d
	mov	edi, r13d
	call	GX_Color4u8@PLT
	mov	r9, QWORD PTR [rsp]
	mov	r8, QWORD PTR 8[rsp]
	add	r9, rbp
	mov	rsi, r8
	mov	rdi, r9
	mov	QWORD PTR [rsp], r9
	call	GX_Position2s16@PLT
	mov	ecx, ebx
	mov	edx, r15d
	mov	esi, r14d
	mov	edi, r13d
	call	GX_Color4u8@PLT
	mov	r9, QWORD PTR [rsp]
	mov	rsi, r12
	mov	rdi, r9
	call	GX_Position2s16@PLT
	mov	ecx, ebx
	mov	edx, r15d
	mov	esi, r14d
	mov	edi, r13d
	call	GX_Color4u8@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	GX_Position2s16@PLT
	mov	ecx, ebx
	mov	edx, r15d
	mov	esi, r14d
	mov	edi, r13d
	call	GX_Color4u8@PLT
	xor	eax, eax
	call	GX_End@PLT
	xor	eax, eax
	call	GX_DrawDone@PLT
	mov	esi, DWORD PTR GX_DIRECT[rip]
	mov	edi, DWORD PTR GX_VA_TEX0[rip]
	call	GX_SetVtxDesc@PLT
	mov	esi, DWORD PTR GX_MODULATE[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE0[rip]
	call	GX_SetTevOp@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	GX_Flush@PLT
	.cfi_endproc
.LFE0:
	.size	gxDrawRectangle, .-gxDrawRectangle
	.comm	vmode,8,8
	.comm	GX_VTXFMT0,4,4
	.comm	GX_VA_TEX0,4,4
	.comm	GX_TEVSTAGE0,4,4
	.comm	GX_QUADS,4,4
	.comm	GX_PASSCLR,4,4
	.comm	GX_NONE,4,4
	.comm	GX_MODULATE,4,4
	.comm	GX_DIRECT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_gx_video.c_gxDrawRectangle.c"
	.text
	.align	2
	.global	gxDrawRectangle
	.syntax unified
	.arm
	.fpu softvfp
	.type	gxDrawRectangle, %function
gxDrawRectangle:
	@ args = 16, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	mov	r4, r0
	mov	r7, r3
	mov	r6, r2
	ldr	r3, .L4
	ldr	fp, [sp, #40]
	ldr	r1, [r3]
	ldr	r3, .L4+4
	ldr	r10, [sp, #44]
	ldr	r0, [r3]
	ldr	r9, [sp, #48]
	ldr	r8, [sp, #52]
	bl	GX_SetTevOp
	ldr	r2, .L4+8
	ldr	r1, .L4+12
	ldr	r0, [r1]
	ldr	r1, [r2]
	bl	GX_SetVtxDesc
	bl	GX_Flush
	ldr	r2, .L4+16
	ldr	ip, .L4+20
	ldr	r0, [r2]
	ldr	r2, .L4+24
	ldm	r0, {r0, r1}
	add	r1, r1, r1, lsr #31
	sub	r5, r5, r1, asr #1
	add	r0, r0, r0, lsr #31
	ldr	r1, [ip]
	sub	r4, r4, r0, asr #1
	add	r7, r5, r7
	ldr	r0, [r2]
	mov	r2, #4
	bl	GX_Begin
	mov	r1, r7
	mov	r0, r4
	bl	GX_Position2s16
	add	r6, r4, r6
	mov	r3, fp
	mov	r2, r10
	mov	r1, r9
	mov	r0, r8
	bl	GX_Color4u8
	mov	r1, r7
	mov	r0, r6
	bl	GX_Position2s16
	mov	r3, fp
	mov	r2, r10
	mov	r1, r9
	mov	r0, r8
	bl	GX_Color4u8
	mov	r1, r5
	mov	r0, r6
	bl	GX_Position2s16
	mov	r3, fp
	mov	r2, r10
	mov	r1, r9
	mov	r0, r8
	bl	GX_Color4u8
	mov	r1, r5
	mov	r0, r4
	bl	GX_Position2s16
	mov	r2, r10
	mov	r3, fp
	mov	r1, r9
	mov	r0, r8
	bl	GX_Color4u8
	bl	GX_End
	bl	GX_DrawDone
	ldr	r3, .L4+28
	ldr	r1, .L4+12
	ldr	r0, [r1]
	ldr	r1, [r3]
	bl	GX_SetVtxDesc
	ldr	r3, .L4+32
	ldr	r2, .L4+4
	ldr	r1, [r3]
	ldr	r0, [r2]
	bl	GX_SetTevOp
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	GX_Flush
.L5:
	.align	2
.L4:
	.word	GX_PASSCLR
	.word	GX_TEVSTAGE0
	.word	GX_NONE
	.word	GX_VA_TEX0
	.word	vmode
	.word	GX_VTXFMT0
	.word	GX_QUADS
	.word	GX_DIRECT
	.word	GX_MODULATE
	.size	gxDrawRectangle, .-gxDrawRectangle
	.comm	vmode,4,4
	.comm	GX_VTXFMT0,4,4
	.comm	GX_VA_TEX0,4,4
	.comm	GX_TEVSTAGE0,4,4
	.comm	GX_QUADS,4,4
	.comm	GX_PASSCLR,4,4
	.comm	GX_NONE,4,4
	.comm	GX_MODULATE,4,4
	.comm	GX_DIRECT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
