	.file	"extr_gx.c___GX_InitGX.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__GX_InitGX, @function
__GX_InitGX:
.LFB0:
	.cfi_startproc
	endbr64
	movabs	rax, 4294967296
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], 1
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], rax
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	mov	QWORD PTR 40[rsp], 1
	call	VIDEO_GetPreferredMode@PLT
	mov	edi, DWORD PTR BLACK[rip]
	mov	esi, 16777215
	mov	rbp, rax
	call	GX_SetCopyClear@PLT
	mov	ecx, DWORD PTR GX_IDENTITY[rip]
	mov	edx, DWORD PTR GX_TG_TEX0[rip]
	mov	esi, DWORD PTR GX_TG_MTX2x4[rip]
	mov	edi, DWORD PTR GX_TEXCOORD0[rip]
	call	GX_SetTexCoordGen@PLT
	mov	ecx, DWORD PTR GX_IDENTITY[rip]
	mov	edx, DWORD PTR GX_TG_TEX1[rip]
	mov	esi, DWORD PTR GX_TG_MTX2x4[rip]
	mov	edi, DWORD PTR GX_TEXCOORD1[rip]
	call	GX_SetTexCoordGen@PLT
	mov	ecx, DWORD PTR GX_IDENTITY[rip]
	mov	edx, DWORD PTR GX_TG_TEX2[rip]
	mov	esi, DWORD PTR GX_TG_MTX2x4[rip]
	mov	edi, DWORD PTR GX_TEXCOORD2[rip]
	call	GX_SetTexCoordGen@PLT
	mov	ecx, DWORD PTR GX_IDENTITY[rip]
	mov	edx, DWORD PTR GX_TG_TEX3[rip]
	mov	esi, DWORD PTR GX_TG_MTX2x4[rip]
	mov	edi, DWORD PTR GX_TEXCOORD3[rip]
	call	GX_SetTexCoordGen@PLT
	mov	ecx, DWORD PTR GX_IDENTITY[rip]
	mov	edx, DWORD PTR GX_TG_TEX4[rip]
	mov	esi, DWORD PTR GX_TG_MTX2x4[rip]
	mov	edi, DWORD PTR GX_TEXCOORD4[rip]
	call	GX_SetTexCoordGen@PLT
	mov	ecx, DWORD PTR GX_IDENTITY[rip]
	mov	edx, DWORD PTR GX_TG_TEX5[rip]
	mov	esi, DWORD PTR GX_TG_MTX2x4[rip]
	mov	edi, DWORD PTR GX_TEXCOORD5[rip]
	call	GX_SetTexCoordGen@PLT
	mov	ecx, DWORD PTR GX_IDENTITY[rip]
	mov	edx, DWORD PTR GX_TG_TEX6[rip]
	mov	esi, DWORD PTR GX_TG_MTX2x4[rip]
	mov	edi, DWORD PTR GX_TEXCOORD6[rip]
	call	GX_SetTexCoordGen@PLT
	mov	ecx, DWORD PTR GX_IDENTITY[rip]
	mov	edx, DWORD PTR GX_TG_TEX7[rip]
	mov	esi, DWORD PTR GX_TG_MTX2x4[rip]
	mov	edi, DWORD PTR GX_TEXCOORD7[rip]
	call	GX_SetTexCoordGen@PLT
	mov	edi, 1
	call	GX_SetNumTexGens@PLT
	xor	eax, eax
	call	GX_ClearVtxDesc@PLT
	xor	eax, eax
	call	GX_InvVtxCache@PLT
	mov	esi, DWORD PTR GX_TO_ZERO[rip]
	mov	edi, 6
	call	GX_SetLineWidth@PLT
	mov	esi, DWORD PTR GX_TO_ZERO[rip]
	mov	edi, 6
	call	GX_SetPointSize@PLT
	mov	esi, DWORD PTR GX_DISABLE[rip]
	mov	edi, DWORD PTR GX_TEXCOORD0[rip]
	mov	edx, esi
	call	GX_EnableTexOffsets@PLT
	mov	esi, DWORD PTR GX_DISABLE[rip]
	mov	edi, DWORD PTR GX_TEXCOORD1[rip]
	mov	edx, esi
	call	GX_EnableTexOffsets@PLT
	mov	esi, DWORD PTR GX_DISABLE[rip]
	mov	edi, DWORD PTR GX_TEXCOORD2[rip]
	mov	edx, esi
	call	GX_EnableTexOffsets@PLT
	mov	esi, DWORD PTR GX_DISABLE[rip]
	mov	edi, DWORD PTR GX_TEXCOORD3[rip]
	mov	edx, esi
	call	GX_EnableTexOffsets@PLT
	mov	esi, DWORD PTR GX_DISABLE[rip]
	mov	edi, DWORD PTR GX_TEXCOORD4[rip]
	mov	edx, esi
	call	GX_EnableTexOffsets@PLT
	mov	esi, DWORD PTR GX_DISABLE[rip]
	mov	edi, DWORD PTR GX_TEXCOORD5[rip]
	mov	edx, esi
	call	GX_EnableTexOffsets@PLT
	mov	esi, DWORD PTR GX_DISABLE[rip]
	mov	edi, DWORD PTR GX_TEXCOORD6[rip]
	mov	edx, esi
	call	GX_EnableTexOffsets@PLT
	mov	esi, DWORD PTR GX_DISABLE[rip]
	mov	edi, DWORD PTR GX_TEXCOORD7[rip]
	mov	edx, esi
	call	GX_EnableTexOffsets@PLT
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 88
	mov	edi, DWORD PTR GX_PNMTX0[rip]
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 96
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 104
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 112
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 120
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 128
	call	GX_LoadPosMtxImm@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR GX_PNMTX0[rip]
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 88
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 96
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 104
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 112
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 120
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 128
	call	GX_LoadNrmMtxImm@PLT
	mov	edi, DWORD PTR GX_PNMTX0[rip]
	add	rsp, 48
	.cfi_def_cfa_offset 80
	call	GX_SetCurrentMtx@PLT
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 88
	mov	esi, DWORD PTR GX_MTX3x4[rip]
	mov	edi, DWORD PTR GX_IDENTITY[rip]
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 96
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 104
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 112
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 120
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 128
	call	GX_LoadTexMtxImm@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR GX_MTX3x4[rip]
	mov	edi, DWORD PTR GX_DTTIDENTITY[rip]
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 88
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 96
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 104
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 112
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 120
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 128
	call	GX_LoadTexMtxImm@PLT
	mov	ecx, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 12[rbp]
	add	rsp, 48
	.cfi_def_cfa_offset 80
	xor	r8d, r8d
	mov	r9d, 1
	xor	esi, esi
	xor	edi, edi
	call	GX_SetViewport@PLT
	mov	edi, DWORD PTR GX_DISABLE[rip]
	call	GX_SetCoPlanar@PLT
	mov	edi, DWORD PTR GX_CULL_BACK[rip]
	call	GX_SetCullMode@PLT
	mov	edi, DWORD PTR GX_CLIP_ENABLE[rip]
	call	GX_SetClipMode@PLT
	mov	ecx, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 12[rbp]
	xor	esi, esi
	xor	edi, edi
	call	GX_SetScissor@PLT
	xor	esi, esi
	xor	edi, edi
	call	GX_SetScissorBoxOffset@PLT
	xor	edi, edi
	call	GX_SetNumChans@PLT
	mov	eax, DWORD PTR GX_AF_NONE[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r9d, DWORD PTR GX_DF_NONE[rip]
	mov	r8d, DWORD PTR GX_LIGHTNULL[rip]
	mov	ecx, DWORD PTR GX_SRC_VTX[rip]
	mov	edx, DWORD PTR GX_SRC_REG[rip]
	mov	esi, DWORD PTR GX_DISABLE[rip]
	push	rax
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR GX_COLOR0A0[rip]
	call	GX_SetChanCtrl@PLT
	mov	esi, DWORD PTR BLACK[rip]
	mov	edi, DWORD PTR GX_COLOR0A0[rip]
	call	GX_SetChanAmbColor@PLT
	mov	esi, DWORD PTR WHITE[rip]
	mov	edi, DWORD PTR GX_COLOR0A0[rip]
	call	GX_SetChanMatColor@PLT
	mov	r9d, DWORD PTR GX_DF_NONE[rip]
	mov	r8d, DWORD PTR GX_LIGHTNULL[rip]
	mov	ecx, DWORD PTR GX_SRC_VTX[rip]
	mov	edx, DWORD PTR GX_SRC_REG[rip]
	mov	eax, DWORD PTR GX_AF_NONE[rip]
	mov	esi, DWORD PTR GX_DISABLE[rip]
	mov	edi, DWORD PTR GX_COLOR1A1[rip]
	mov	DWORD PTR [rsp], eax
	call	GX_SetChanCtrl@PLT
	mov	esi, DWORD PTR BLACK[rip]
	mov	edi, DWORD PTR GX_COLOR1A1[rip]
	call	GX_SetChanAmbColor@PLT
	mov	esi, DWORD PTR WHITE[rip]
	mov	edi, DWORD PTR GX_COLOR1A1[rip]
	call	GX_SetChanMatColor@PLT
	xor	eax, eax
	call	GX_InvalidateTexAll@PLT
	mov	edi, DWORD PTR __GXDefTexRegionCallback[rip]
	call	GX_SetTexRegionCallback@PLT
	mov	edi, DWORD PTR __GXDefTlutRegionCallback[rip]
	call	GX_SetTlutRegionCallback@PLT
	mov	ecx, DWORD PTR GX_COLOR0A0[rip]
	mov	edx, DWORD PTR GX_TEXMAP0[rip]
	mov	esi, DWORD PTR GX_TEXCOORD0[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE0[rip]
	call	GX_SetTevOrder@PLT
	mov	ecx, DWORD PTR GX_COLOR0A0[rip]
	mov	edx, DWORD PTR GX_TEXMAP1[rip]
	mov	esi, DWORD PTR GX_TEXCOORD1[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE1[rip]
	call	GX_SetTevOrder@PLT
	mov	ecx, DWORD PTR GX_COLOR0A0[rip]
	mov	edx, DWORD PTR GX_TEXMAP2[rip]
	mov	esi, DWORD PTR GX_TEXCOORD2[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE2[rip]
	call	GX_SetTevOrder@PLT
	mov	ecx, DWORD PTR GX_COLOR0A0[rip]
	mov	edx, DWORD PTR GX_TEXMAP3[rip]
	mov	esi, DWORD PTR GX_TEXCOORD3[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE3[rip]
	call	GX_SetTevOrder@PLT
	mov	ecx, DWORD PTR GX_COLOR0A0[rip]
	mov	edx, DWORD PTR GX_TEXMAP4[rip]
	mov	esi, DWORD PTR GX_TEXCOORD4[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE4[rip]
	call	GX_SetTevOrder@PLT
	mov	ecx, DWORD PTR GX_COLOR0A0[rip]
	mov	edx, DWORD PTR GX_TEXMAP5[rip]
	mov	esi, DWORD PTR GX_TEXCOORD5[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE5[rip]
	call	GX_SetTevOrder@PLT
	mov	ecx, DWORD PTR GX_COLOR0A0[rip]
	mov	edx, DWORD PTR GX_TEXMAP6[rip]
	mov	esi, DWORD PTR GX_TEXCOORD6[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE6[rip]
	call	GX_SetTevOrder@PLT
	mov	ecx, DWORD PTR GX_COLOR0A0[rip]
	mov	edx, DWORD PTR GX_TEXMAP7[rip]
	mov	esi, DWORD PTR GX_TEXCOORD7[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE7[rip]
	call	GX_SetTevOrder@PLT
	mov	ecx, DWORD PTR GX_COLORNULL[rip]
	mov	edx, DWORD PTR GX_TEXMAP_NULL[rip]
	mov	esi, DWORD PTR GX_TEXCOORDNULL[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE8[rip]
	call	GX_SetTevOrder@PLT
	mov	ecx, DWORD PTR GX_COLORNULL[rip]
	mov	edx, DWORD PTR GX_TEXMAP_NULL[rip]
	mov	esi, DWORD PTR GX_TEXCOORDNULL[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE9[rip]
	call	GX_SetTevOrder@PLT
	mov	ecx, DWORD PTR GX_COLORNULL[rip]
	mov	edx, DWORD PTR GX_TEXMAP_NULL[rip]
	mov	esi, DWORD PTR GX_TEXCOORDNULL[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE10[rip]
	call	GX_SetTevOrder@PLT
	mov	ecx, DWORD PTR GX_COLORNULL[rip]
	mov	edx, DWORD PTR GX_TEXMAP_NULL[rip]
	mov	esi, DWORD PTR GX_TEXCOORDNULL[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE11[rip]
	call	GX_SetTevOrder@PLT
	mov	ecx, DWORD PTR GX_COLORNULL[rip]
	mov	edx, DWORD PTR GX_TEXMAP_NULL[rip]
	mov	esi, DWORD PTR GX_TEXCOORDNULL[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE12[rip]
	call	GX_SetTevOrder@PLT
	mov	ecx, DWORD PTR GX_COLORNULL[rip]
	mov	edx, DWORD PTR GX_TEXMAP_NULL[rip]
	mov	esi, DWORD PTR GX_TEXCOORDNULL[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE13[rip]
	call	GX_SetTevOrder@PLT
	mov	ecx, DWORD PTR GX_COLORNULL[rip]
	mov	edx, DWORD PTR GX_TEXMAP_NULL[rip]
	mov	esi, DWORD PTR GX_TEXCOORDNULL[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE14[rip]
	call	GX_SetTevOrder@PLT
	mov	ecx, DWORD PTR GX_COLORNULL[rip]
	mov	edx, DWORD PTR GX_TEXMAP_NULL[rip]
	mov	esi, DWORD PTR GX_TEXCOORDNULL[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE15[rip]
	call	GX_SetTevOrder@PLT
	mov	edi, 1
	call	GX_SetNumTevStages@PLT
	mov	esi, DWORD PTR GX_REPLACE[rip]
	mov	edi, DWORD PTR GX_TEVSTAGE0[rip]
	call	GX_SetTevOp@PLT
	mov	edi, DWORD PTR GX_ALWAYS[rip]
	xor	r8d, r8d
	xor	esi, esi
	mov	edx, DWORD PTR GX_AOP_AND[rip]
	mov	ecx, edi
	call	GX_SetAlphaCompare@PLT
	mov	esi, DWORD PTR GX_TF_Z8[rip]
	mov	edi, DWORD PTR GX_ZT_DISABLE[rip]
	xor	edx, edx
	call	GX_SetZTexture@PLT
	cmp	QWORD PTR GX_MAX_TEVSTAGE[rip], 0
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	jle	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR GX_TEV_KCSEL_1_4[rip]
	mov	rdi, rbx
	call	GX_SetTevKColorSel@PLT
	mov	esi, DWORD PTR GX_TEV_KASEL_1[rip]
	mov	rdi, rbx
	call	GX_SetTevKAlphaSel@PLT
	mov	esi, DWORD PTR GX_TEV_SWAP0[rip]
	mov	rdi, rbx
	add	rbx, 1
	mov	edx, esi
	call	GX_SetTevSwapMode@PLT
	cmp	QWORD PTR GX_MAX_TEVSTAGE[rip], rbx
	jg	.L3
.L2:
	mov	r8d, DWORD PTR GX_CH_ALPHA[rip]
	mov	ecx, DWORD PTR GX_CH_BLUE[rip]
	mov	edx, DWORD PTR GX_CH_GREEN[rip]
	mov	esi, DWORD PTR GX_CH_RED[rip]
	mov	edi, DWORD PTR GX_TEV_SWAP0[rip]
	call	GX_SetTevSwapModeTable@PLT
	mov	esi, DWORD PTR GX_CH_RED[rip]
	mov	r8d, DWORD PTR GX_CH_ALPHA[rip]
	mov	edi, DWORD PTR GX_TEV_SWAP1[rip]
	mov	ecx, esi
	mov	edx, esi
	call	GX_SetTevSwapModeTable@PLT
	mov	esi, DWORD PTR GX_CH_GREEN[rip]
	mov	r8d, DWORD PTR GX_CH_ALPHA[rip]
	mov	edi, DWORD PTR GX_TEV_SWAP2[rip]
	mov	ecx, esi
	mov	edx, esi
	call	GX_SetTevSwapModeTable@PLT
	mov	esi, DWORD PTR GX_CH_BLUE[rip]
	mov	r8d, DWORD PTR GX_CH_ALPHA[rip]
	mov	edi, DWORD PTR GX_TEV_SWAP3[rip]
	mov	ecx, esi
	mov	edx, esi
	call	GX_SetTevSwapModeTable@PLT
	cmp	QWORD PTR GX_MAX_TEVSTAGE[rip], 0
	jle	.L4
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbx
	add	rbx, 1
	call	GX_SetTevDirect@PLT
	cmp	QWORD PTR GX_MAX_TEVSTAGE[rip], rbx
	jg	.L5
.L4:
	xor	edi, edi
	call	GX_SetNumIndStages@PLT
	mov	esi, DWORD PTR GX_ITS_1[rip]
	mov	edi, DWORD PTR GX_INDTEXSTAGE0[rip]
	mov	edx, esi
	call	GX_SetIndTexCoordScale@PLT
	mov	esi, DWORD PTR GX_ITS_1[rip]
	mov	edi, DWORD PTR GX_INDTEXSTAGE1[rip]
	mov	edx, esi
	call	GX_SetIndTexCoordScale@PLT
	mov	esi, DWORD PTR GX_ITS_1[rip]
	mov	edi, DWORD PTR GX_INDTEXSTAGE2[rip]
	mov	edx, esi
	call	GX_SetIndTexCoordScale@PLT
	mov	esi, DWORD PTR GX_ITS_1[rip]
	mov	edi, DWORD PTR GX_INDTEXSTAGE3[rip]
	mov	edx, esi
	call	GX_SetIndTexCoordScale@PLT
	mov	r8d, DWORD PTR BLACK[rip]
	mov	edi, DWORD PTR GX_FOG_NONE[rip]
	mov	ecx, 1
	movsd	xmm0, QWORD PTR .LC0[rip]
	xor	esi, esi
	mov	edx, 1
	call	GX_SetFog@PLT
	mov	edi, DWORD PTR GX_DISABLE[rip]
	xor	edx, edx
	xor	esi, esi
	call	GX_SetFogRangeAdj@PLT
	mov	ecx, DWORD PTR GX_LO_CLEAR[rip]
	mov	edx, DWORD PTR GX_BL_INVSRCALPHA[rip]
	mov	esi, DWORD PTR GX_BL_SRCALPHA[rip]
	mov	edi, DWORD PTR GX_BM_NONE[rip]
	call	GX_SetBlendMode@PLT
	mov	edi, DWORD PTR GX_ENABLE[rip]
	call	GX_SetColorUpdate@PLT
	mov	edi, DWORD PTR GX_ENABLE[rip]
	call	GX_SetAlphaUpdate@PLT
	mov	edx, DWORD PTR GX_TRUE[rip]
	mov	esi, DWORD PTR GX_LEQUAL[rip]
	mov	edi, DWORD PTR GX_ENABLE[rip]
	call	GX_SetZMode@PLT
	mov	edi, DWORD PTR GX_TRUE[rip]
	call	GX_SetZCompLoc@PLT
	mov	edi, DWORD PTR GX_ENABLE[rip]
	call	GX_SetDither@PLT
	mov	edi, DWORD PTR GX_DISABLE[rip]
	xor	esi, esi
	call	GX_SetDstAlpha@PLT
	mov	esi, DWORD PTR GX_ZC_LINEAR[rip]
	mov	edi, DWORD PTR GX_PF_RGB8_Z24[rip]
	call	GX_SetPixelFmt@PLT
	mov	edi, DWORD PTR GX_ENABLE[rip]
	mov	esi, edi
	call	GX_SetFieldMask@PLT
	mov	eax, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR 16[rbp]
	xor	esi, esi
	add	eax, eax
	cmp	eax, DWORD PTR 0[rbp]
	sete	sil
	call	GX_SetFieldMode@PLT
	mov	edi, DWORD PTR GX_DEFAULT_BG[rip]
	mov	esi, 16777215
	call	GX_SetCopyClear@PLT
	mov	ecx, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 12[rbp]
	xor	esi, esi
	xor	edi, edi
	call	GX_SetDispCopySrc@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 12[rbp]
	call	GX_SetDispCopyDst@PLT
	movsd	xmm0, QWORD PTR .LC1[rip]
	call	GX_SetDispCopyYScale@PLT
	mov	edi, DWORD PTR GX_CLAMP_TOP[rip]
	or	edi, DWORD PTR GX_CLAMP_BOTTOM[rip]
	call	GX_SetCopyClamp@PLT
	mov	edi, DWORD PTR GX_FALSE[rip]
	xor	ecx, ecx
	xor	esi, esi
	mov	edx, edi
	call	GX_SetCopyFilter@PLT
	mov	edi, DWORD PTR GX_GM_1_0[rip]
	call	GX_SetDispCopyGamma@PLT
	mov	edi, DWORD PTR GX_COPY_PROGRESSIVE[rip]
	call	GX_SetDispCopyFrame2Field@PLT
	xor	eax, eax
	call	GX_ClearBoundingBox@PLT
	mov	edi, DWORD PTR GX_TRUE[rip]
	call	GX_PokeColorUpdate@PLT
	mov	edi, DWORD PTR GX_TRUE[rip]
	call	GX_PokeAlphaUpdate@PLT
	mov	edi, DWORD PTR GX_FALSE[rip]
	call	GX_PokeDither@PLT
	mov	ecx, DWORD PTR GX_LO_SET[rip]
	mov	edx, DWORD PTR GX_BL_ONE[rip]
	mov	esi, DWORD PTR GX_BL_ZERO[rip]
	mov	edi, DWORD PTR GX_BM_NONE[rip]
	call	GX_PokeBlendMode@PLT
	mov	edi, DWORD PTR GX_ALWAYS[rip]
	xor	esi, esi
	call	GX_PokeAlphaMode@PLT
	mov	edi, DWORD PTR GX_READ_FF[rip]
	call	GX_PokeAlphaRead@PLT
	mov	edi, DWORD PTR GX_DISABLE[rip]
	xor	esi, esi
	call	GX_PokeDstAlpha@PLT
	mov	edi, DWORD PTR GX_TRUE[rip]
	mov	esi, DWORD PTR GX_ALWAYS[rip]
	mov	edx, edi
	call	GX_PokeZMode@PLT
	mov	esi, DWORD PTR GX_PERF1_NONE[rip]
	mov	edi, DWORD PTR GX_PERF0_NONE[rip]
	call	GX_SetGPMetric@PLT
	add	rsp, 56
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	GX_ClearGPMetric@PLT
	.cfi_endproc
.LFE0:
	.size	__GX_InitGX, .-__GX_InitGX
	.comm	__GXDefTlutRegionCallback,4,4
	.comm	__GXDefTexRegionCallback,4,4
	.comm	WHITE,8,8
	.comm	GX_ZT_DISABLE,4,4
	.comm	GX_ZC_LINEAR,4,4
	.comm	GX_TRUE,4,4
	.comm	GX_TO_ZERO,4,4
	.comm	GX_TG_TEX7,4,4
	.comm	GX_TG_TEX6,4,4
	.comm	GX_TG_TEX5,4,4
	.comm	GX_TG_TEX4,4,4
	.comm	GX_TG_TEX3,4,4
	.comm	GX_TG_TEX2,4,4
	.comm	GX_TG_TEX1,4,4
	.comm	GX_TG_TEX0,4,4
	.comm	GX_TG_MTX2x4,4,4
	.comm	GX_TF_Z8,4,4
	.comm	GX_TEXMAP_NULL,4,4
	.comm	GX_TEXMAP7,4,4
	.comm	GX_TEXMAP6,4,4
	.comm	GX_TEXMAP5,4,4
	.comm	GX_TEXMAP4,4,4
	.comm	GX_TEXMAP3,4,4
	.comm	GX_TEXMAP2,4,4
	.comm	GX_TEXMAP1,4,4
	.comm	GX_TEXMAP0,4,4
	.comm	GX_TEXCOORDNULL,4,4
	.comm	GX_TEXCOORD7,4,4
	.comm	GX_TEXCOORD6,4,4
	.comm	GX_TEXCOORD5,4,4
	.comm	GX_TEXCOORD4,4,4
	.comm	GX_TEXCOORD3,4,4
	.comm	GX_TEXCOORD2,4,4
	.comm	GX_TEXCOORD1,4,4
	.comm	GX_TEXCOORD0,4,4
	.comm	GX_TEV_SWAP3,4,4
	.comm	GX_TEV_SWAP2,4,4
	.comm	GX_TEV_SWAP1,4,4
	.comm	GX_TEV_SWAP0,4,4
	.comm	GX_TEV_KCSEL_1_4,4,4
	.comm	GX_TEV_KASEL_1,4,4
	.comm	GX_TEVSTAGE9,4,4
	.comm	GX_TEVSTAGE8,4,4
	.comm	GX_TEVSTAGE7,4,4
	.comm	GX_TEVSTAGE6,4,4
	.comm	GX_TEVSTAGE5,4,4
	.comm	GX_TEVSTAGE4,4,4
	.comm	GX_TEVSTAGE3,4,4
	.comm	GX_TEVSTAGE2,4,4
	.comm	GX_TEVSTAGE15,4,4
	.comm	GX_TEVSTAGE14,4,4
	.comm	GX_TEVSTAGE13,4,4
	.comm	GX_TEVSTAGE12,4,4
	.comm	GX_TEVSTAGE11,4,4
	.comm	GX_TEVSTAGE10,4,4
	.comm	GX_TEVSTAGE1,4,4
	.comm	GX_TEVSTAGE0,4,4
	.comm	GX_SRC_VTX,4,4
	.comm	GX_SRC_REG,4,4
	.comm	GX_REPLACE,4,4
	.comm	GX_READ_FF,4,4
	.comm	GX_PNMTX0,4,4
	.comm	GX_PF_RGB8_Z24,4,4
	.comm	GX_PERF1_NONE,4,4
	.comm	GX_PERF0_NONE,4,4
	.comm	GX_MTX3x4,4,4
	.comm	GX_MAX_TEVSTAGE,8,8
	.comm	GX_LO_SET,4,4
	.comm	GX_LO_CLEAR,4,4
	.comm	GX_LIGHTNULL,4,4
	.comm	GX_LEQUAL,4,4
	.comm	GX_ITS_1,4,4
	.comm	GX_INDTEXSTAGE3,4,4
	.comm	GX_INDTEXSTAGE2,4,4
	.comm	GX_INDTEXSTAGE1,4,4
	.comm	GX_INDTEXSTAGE0,4,4
	.comm	GX_IDENTITY,4,4
	.comm	GX_GM_1_0,4,4
	.comm	GX_FOG_NONE,4,4
	.comm	GX_FALSE,4,4
	.comm	GX_ENABLE,4,4
	.comm	GX_DTTIDENTITY,4,4
	.comm	GX_DISABLE,4,4
	.comm	GX_DF_NONE,4,4
	.comm	GX_DEFAULT_BG,8,8
	.comm	GX_CULL_BACK,4,4
	.comm	GX_COPY_PROGRESSIVE,4,4
	.comm	GX_COLORNULL,4,4
	.comm	GX_COLOR1A1,4,4
	.comm	GX_COLOR0A0,4,4
	.comm	GX_CLIP_ENABLE,4,4
	.comm	GX_CLAMP_TOP,4,4
	.comm	GX_CLAMP_BOTTOM,4,4
	.comm	GX_CH_RED,4,4
	.comm	GX_CH_GREEN,4,4
	.comm	GX_CH_BLUE,4,4
	.comm	GX_CH_ALPHA,4,4
	.comm	GX_BM_NONE,4,4
	.comm	GX_BL_ZERO,4,4
	.comm	GX_BL_SRCALPHA,4,4
	.comm	GX_BL_ONE,4,4
	.comm	GX_BL_INVSRCALPHA,4,4
	.comm	GX_AOP_AND,4,4
	.comm	GX_ALWAYS,4,4
	.comm	GX_AF_NONE,4,4
	.comm	BLACK,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	2576980378
	.long	1069128089
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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.c___GX_InitGX.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__GX_InitGX, %function
__GX_InitGX:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	lr, .L12
	sub	sp, sp, #92
	add	ip, sp, #40
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r0, #0
	bl	VIDEO_GetPreferredMode
	ldr	r3, .L12+4
	mov	fp, r0
	mvn	r1, #-16777216
	ldr	r0, [r3]
	ldr	r4, .L12+8
	bl	GX_SetCopyClear
	ldr	r5, .L12+12
	ldr	r7, .L12+16
	ldr	r2, .L12+20
	ldr	r3, [r4]
	ldr	r1, [r5]
	ldr	r2, [r2]
	ldr	r0, [r7]
	bl	GX_SetTexCoordGen
	ldr	r8, .L12+24
	ldr	r2, .L12+28
	ldr	r3, [r4]
	ldr	r1, [r5]
	ldr	r2, [r2]
	ldr	r0, [r8]
	bl	GX_SetTexCoordGen
	ldr	r10, .L12+32
	ldr	r2, .L12+36
	ldr	r3, [r4]
	ldr	r1, [r5]
	ldr	r2, [r2]
	ldr	r0, [r10]
	bl	GX_SetTexCoordGen
	ldr	r2, .L12+40
	ldr	r0, .L12+44
	ldr	r3, [r4]
	ldr	r1, [r5]
	ldr	r2, [r2]
	ldr	r0, [r0]
	bl	GX_SetTexCoordGen
	ldr	ip, .L12+48
	ldr	r2, .L12+52
	ldr	r0, [ip]
	ldr	r3, [r4]
	ldr	r1, [r5]
	ldr	r2, [r2]
	bl	GX_SetTexCoordGen
	ldr	lr, .L12+56
	ldr	r2, .L12+60
	ldr	r0, [lr]
	ldr	r3, [r4]
	ldr	r1, [r5]
	ldr	r2, [r2]
	bl	GX_SetTexCoordGen
	ldr	r6, .L12+64
	ldr	r2, .L12+68
	ldr	r3, [r4]
	ldr	r1, [r5]
	ldr	r2, [r2]
	ldr	r0, [r6]
	bl	GX_SetTexCoordGen
	ldr	r9, .L12+72
	ldr	r2, .L12+76
	ldr	r3, [r4]
	ldr	r2, [r2]
	ldr	r1, [r5]
	ldr	r6, .L12+80
	ldr	r0, [r9]
	bl	GX_SetTexCoordGen
	mov	r0, #1
	ldr	r5, .L12+84
	bl	GX_SetNumTexGens
	bl	GX_ClearVtxDesc
	bl	GX_InvVtxCache
	ldr	r1, [r6]
	mov	r0, #6
	bl	GX_SetLineWidth
	ldr	r1, [r6]
	mov	r0, #6
	bl	GX_SetPointSize
	ldr	r2, [r5]
	ldr	r0, [r7]
	mov	r1, r2
	bl	GX_EnableTexOffsets
	ldr	r2, [r5]
	ldr	r0, [r8]
	mov	r1, r2
	bl	GX_EnableTexOffsets
	ldr	r2, [r5]
	ldr	r0, [r10]
	mov	r1, r2
	bl	GX_EnableTexOffsets
	ldr	r2, [r5]
	ldr	r0, .L12+44
	mov	r1, r2
	ldr	r0, [r0]
	bl	GX_EnableTexOffsets
	ldr	ip, .L12+48
	ldr	r2, [r5]
	ldr	r0, [ip]
	mov	r1, r2
	bl	GX_EnableTexOffsets
	ldr	lr, .L12+56
	ldr	r2, [r5]
	ldr	r0, [lr]
	mov	r1, r2
	bl	GX_EnableTexOffsets
	ldr	r6, .L12+64
	ldr	r2, [r5]
	ldr	r0, [r6]
	mov	r1, r2
	bl	GX_EnableTexOffsets
	ldr	r2, [r5]
	ldr	r0, [r9]
	mov	r1, r2
	bl	GX_EnableTexOffsets
	mov	ip, sp
	ldr	r7, .L12+88
	add	lr, sp, #56
	ldr	r6, [r7]
	ldmia	lr!, {r0, r1, r2, r3}
	str	r6, [sp, #32]
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	add	r6, sp, #40
	ldm	r6, {r0, r1, r2, r3}
	bl	GX_LoadPosMtxImm
	mov	ip, sp
	ldr	r3, [r7]
	add	lr, sp, #56
	str	r3, [sp, #32]
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldm	r6, {r0, r1, r2, r3}
	bl	GX_LoadNrmMtxImm
	ldr	r0, [r7]
	bl	GX_SetCurrentMtx
	mov	ip, sp
	ldr	r7, .L12+92
	ldr	r2, [r4]
	ldr	r3, [r7]
	add	lr, sp, #56
	str	r2, [sp, #32]
	str	r3, [sp, #36]
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldm	r6, {r0, r1, r2, r3}
	bl	GX_LoadTexMtxImm
	mov	ip, sp
	ldr	r3, .L12+96
	ldr	r2, [r7]
	ldr	r3, [r3]
	add	lr, sp, #56
	str	r2, [sp, #36]
	str	r3, [sp, #32]
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldm	r6, {r0, r1, r2, r3}
	mov	r4, #0
	bl	GX_LoadTexMtxImm
	mov	r1, #1
	ldr	r2, [fp, #12]
	ldr	r3, [fp, #8]
	mov	r0, r4
	str	r1, [sp, #4]
	str	r4, [sp]
	mov	r1, r4
	bl	GX_SetViewport
	ldr	r0, [r5]
	bl	GX_SetCoPlanar
	ldr	r3, .L12+100
	ldr	r8, .L12+104
	ldr	r0, [r3]
	bl	GX_SetCullMode
	ldr	r3, .L12+108
	ldr	r10, .L12+112
	ldr	r0, [r3]
	bl	GX_SetClipMode
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #12]
	mov	r1, r4
	mov	r0, r4
	bl	GX_SetScissor
	mov	r1, r4
	mov	r0, r4
	bl	GX_SetScissorBoxOffset
	mov	r0, r4
	bl	GX_SetNumChans
	ldr	r2, .L12+116
	ldr	r3, [r10]
	ldr	r1, [r2]
	ldr	r2, [r8]
	ldr	r6, .L12+120
	ldr	r0, .L12+124
	ldr	r7, .L12+128
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r2, [r7]
	ldr	r3, [r0]
	ldr	r1, [r5]
	ldr	r0, [r6]
	bl	GX_SetChanCtrl
	ldr	r3, .L12+4
	ldr	r0, [r6]
	ldr	r1, [r3]
	bl	GX_SetChanAmbColor
	ldr	r1, .L12+132
	ldr	r0, [r6]
	ldr	r1, [r1]
	bl	GX_SetChanMatColor
	ldr	r2, .L12+116
	ldr	r3, [r10]
	ldr	r1, [r2]
	ldr	r2, [r8]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	ldr	r2, .L12+124
	str	r3, [sp]
	ldr	r7, .L12+136
	ldr	r3, [r2]
	ldr	r2, .L12+128
	ldr	r1, [r5]
	ldr	r2, [r2]
	ldr	r0, [r7]
	bl	GX_SetChanCtrl
	ldr	r3, .L12+4
	ldr	r0, [r7]
	ldr	r1, [r3]
	bl	GX_SetChanAmbColor
	ldr	r1, .L12+132
	ldr	r0, [r7]
	ldr	r1, [r1]
	bl	GX_SetChanMatColor
	bl	GX_InvalidateTexAll
	ldr	r3, .L12+140
	ldr	r7, .L12+144
	ldr	r0, [r3]
	bl	GX_SetTexRegionCallback
	ldr	r3, .L12+148
	ldr	r10, .L12+32
	ldr	r0, [r3]
	bl	GX_SetTlutRegionCallback
	ldr	r3, .L12+16
	ldr	r2, .L12+152
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r6]
	ldr	r0, [r7]
	bl	GX_SetTevOrder
	ldr	r3, .L12+24
	ldr	r2, .L12+156
	ldr	r0, .L12+160
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r6]
	ldr	r0, [r0]
	bl	GX_SetTevOrder
	ldr	r2, .L12+164
	ldr	r0, .L12+168
	ldr	r3, [r6]
	ldr	r1, [r10]
	ldr	r2, [r2]
	ldr	r0, [r0]
	bl	GX_SetTevOrder
	ldr	r3, .L12+44
	ldr	r2, .L12+172
	ldr	r0, .L12+176
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r6]
	ldr	r0, [r0]
	bl	GX_SetTevOrder
	ldr	ip, .L12+48
	ldr	r2, .L12+180
	ldr	r0, .L12+184
	ldr	r1, [ip]
	ldr	r3, [r6]
	ldr	r2, [r2]
	ldr	r0, [r0]
	bl	GX_SetTevOrder
	ldr	lr, .L12+56
	ldr	r2, .L12+188
	ldr	r0, .L12+192
	ldr	r1, [lr]
	ldr	r3, [r6]
	ldr	r2, [r2]
	ldr	r0, [r0]
	bl	GX_SetTevOrder
	ldr	r3, .L12+64
	ldr	r2, .L12+196
	ldr	r0, .L12+200
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r6]
	ldr	r0, [r0]
	bl	GX_SetTevOrder
	ldr	r2, .L12+204
	ldr	r0, .L12+208
	ldr	r3, [r6]
	ldr	r1, [r9]
	ldr	r2, [r2]
	ldr	r0, [r0]
	ldr	r8, .L12+212
	ldr	r6, .L12+216
	ldr	r9, .L12+220
	bl	GX_SetTevOrder
	ldr	r0, .L12+224
	ldr	r3, [r8]
	ldr	r1, [r6]
	ldr	r2, [r9]
	ldr	r0, [r0]
	bl	GX_SetTevOrder
	ldr	r0, .L12+228
	ldr	r3, [r8]
	ldr	r1, [r6]
	ldr	r2, [r9]
	ldr	r0, [r0]
	bl	GX_SetTevOrder
	ldr	r0, .L12+232
	ldr	r3, [r8]
	ldr	r1, [r6]
	ldr	r2, [r9]
	ldr	r0, [r0]
	bl	GX_SetTevOrder
	ldr	r0, .L12+236
	ldr	r3, [r8]
	ldr	r1, [r6]
	ldr	r2, [r9]
	ldr	r0, [r0]
	bl	GX_SetTevOrder
	ldr	r0, .L12+240
	ldr	r3, [r8]
	ldr	r1, [r6]
	ldr	r2, [r9]
	ldr	r0, [r0]
	bl	GX_SetTevOrder
	ldr	r0, .L12+244
	ldr	r3, [r8]
	ldr	r1, [r6]
	ldr	r2, [r9]
	ldr	r0, [r0]
	bl	GX_SetTevOrder
	ldr	r0, .L12+248
	ldr	r3, [r8]
	ldr	r1, [r6]
	ldr	r2, [r9]
	ldr	r0, [r0]
	bl	GX_SetTevOrder
	ldr	r0, .L12+252
	ldr	r3, [r8]
	ldr	r2, [r9]
	ldr	r1, [r6]
	ldr	r0, [r0]
	bl	GX_SetTevOrder
	mov	r0, #1
	bl	GX_SetNumTevStages
	ldr	r3, .L12+256
	ldr	r8, .L12+260
	ldr	r1, [r3]
	ldr	r0, [r7]
	bl	GX_SetTevOp
	ldr	r3, [r8]
	ldr	r2, .L12+264
	str	r4, [sp]
	mov	r0, r3
	mov	r1, r4
	ldr	r2, [r2]
	bl	GX_SetAlphaCompare
	ldr	r3, .L12+268
	ldr	r1, .L12+272
	ldr	r6, .L12+276
	ldr	r0, [r3]
	mov	r2, r4
	ldr	r1, [r1]
	bl	GX_SetZTexture
	ldr	r3, [r6]
	cmp	r3, r4
	ldrle	r7, .L12+280
	ble	.L2
	ldr	r10, .L12+284
	ldr	r9, .L12+288
	ldr	r7, .L12+280
.L3:
	mov	r0, r4
	ldr	r1, [r10]
	bl	GX_SetTevKColorSel
	mov	r0, r4
	ldr	r1, [r9]
	bl	GX_SetTevKAlphaSel
	ldr	r2, [r7]
	mov	r0, r4
	mov	r1, r2
	bl	GX_SetTevSwapMode
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
.L2:
	ldr	r1, .L12+292
	ldr	r0, [r7]
	mov	r7, r1
	ldr	r4, .L12+296
	ldr	r9, .L12+300
	ldr	r3, [r4]
	ldr	r10, .L12+304
	str	r3, [sp]
	ldr	r3, [r9]
	ldr	r2, [r10]
	ldr	r1, [r1]
	bl	GX_SetTevSwapModeTable
	ldr	ip, [r4]
	ldr	r3, [r7]
	ldr	r0, .L12+308
	str	ip, [sp]
	mov	r2, r3
	mov	r1, r3
	ldr	r0, [r0]
	bl	GX_SetTevSwapModeTable
	ldr	ip, [r4]
	ldr	r3, [r10]
	ldr	r0, .L12+312
	str	ip, [sp]
	mov	r2, r3
	mov	r1, r3
	ldr	r0, [r0]
	bl	GX_SetTevSwapModeTable
	ldr	r2, [r4]
	ldr	r3, [r9]
	ldr	r0, .L12+316
	str	r2, [sp]
	mov	r1, r3
	mov	r2, r3
	ldr	r0, [r0]
	bl	GX_SetTevSwapModeTable
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L4
	mov	r4, #0
.L5:
	mov	r0, r4
	bl	GX_SetTevDirect
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L5
.L4:
	ldr	r4, .L12+320
	mov	r0, #0
	bl	GX_SetNumIndStages
	ldr	r2, [r4]
	ldr	r3, .L12+324
	mov	r1, r2
	ldr	r0, [r3]
	bl	GX_SetIndTexCoordScale
	ldr	r2, [r4]
	ldr	r3, .L12+328
	mov	r1, r2
	ldr	r0, [r3]
	bl	GX_SetIndTexCoordScale
	ldr	r2, [r4]
	ldr	r3, .L12+332
	mov	r1, r2
	ldr	r0, [r3]
	bl	GX_SetIndTexCoordScale
	ldr	r2, [r4]
	ldr	r3, .L12+336
	mov	r1, r2
	ldr	r0, [r3]
	bl	GX_SetIndTexCoordScale
	mov	r2, #1
	ldr	r3, .L12+4
	ldr	r6, .L12+340
	ldr	r1, [r3]
	ldr	r7, .L12+344
	ldr	r3, .L12+348
	str	r1, [sp, #12]
	str	r2, [sp, #8]
	ldr	r0, [r3]
	mov	r1, #0
	stm	sp, {r6-r7}
	bl	GX_SetFog
	mov	r2, #0
	ldr	r0, [r5]
	mov	r1, r2
	bl	GX_SetFogRangeAdj
	ldr	r7, .L12+352
	ldr	r3, .L12+356
	ldr	r2, .L12+360
	ldr	r1, .L12+364
	ldr	r6, .L12+368
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r7]
	bl	GX_SetBlendMode
	ldr	r0, [r6]
	bl	GX_SetColorUpdate
	ldr	r0, [r6]
	bl	GX_SetAlphaUpdate
	ldr	r4, .L12+372
	ldr	r3, .L12+376
	ldr	r2, [r4]
	ldr	r1, [r3]
	ldr	r0, [r6]
	bl	GX_SetZMode
	ldr	r0, [r4]
	bl	GX_SetZCompLoc
	ldr	r0, [r6]
	bl	GX_SetDither
	mov	r1, #0
	ldr	r0, [r5]
	bl	GX_SetDstAlpha
	ldr	r2, .L12+380
	ldr	r3, .L12+384
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	GX_SetPixelFmt
	ldr	r1, [r6]
	ldr	r6, .L12+388
	mov	r0, r1
	bl	GX_SetFieldMask
	ldr	r2, [fp, #4]
	ldr	r3, [fp]
	ldr	r0, [fp, #16]
	cmp	r3, r2, lsl #1
	moveq	r1, #1
	movne	r1, #0
	bl	GX_SetFieldMode
	ldr	r3, .L12+392
	mvn	r1, #-16777216
	ldr	r0, [r3]
	bl	GX_SetCopyClear
	mov	r1, #0
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #12]
	mov	r0, r1
	bl	GX_SetDispCopySrc
	ldr	r1, [fp, #8]
	ldr	r0, [fp, #12]
	bl	GX_SetDispCopyDst
	ldr	r1, .L12+396
	mov	r0, #0
	bl	GX_SetDispCopyYScale
	ldr	r2, .L12+400
	ldr	r3, .L12+404
	ldr	r0, [r2]
	ldr	r3, [r3]
	orr	r0, r0, r3
	bl	GX_SetCopyClamp
	mov	r3, #0
	ldr	r2, [r6]
	mov	r1, r3
	mov	r0, r2
	bl	GX_SetCopyFilter
	ldr	r3, .L12+408
	ldr	r0, [r3]
	bl	GX_SetDispCopyGamma
	ldr	r3, .L12+412
	ldr	r0, [r3]
	bl	GX_SetDispCopyFrame2Field
	bl	GX_ClearBoundingBox
	ldr	r0, [r4]
	bl	GX_PokeColorUpdate
	ldr	r0, [r4]
	bl	GX_PokeAlphaUpdate
	ldr	r0, [r6]
	bl	GX_PokeDither
	ldr	r3, .L12+416
	ldr	r2, .L12+420
	ldr	r1, .L12+424
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r7]
	ldr	r1, [r1]
	bl	GX_PokeBlendMode
	mov	r1, #0
	ldr	r0, [r8]
	bl	GX_PokeAlphaMode
	ldr	r3, .L12+428
	ldr	r0, [r3]
	bl	GX_PokeAlphaRead
	mov	r1, #0
	ldr	r0, [r5]
	bl	GX_PokeDstAlpha
	ldr	r2, [r4]
	ldr	r1, [r8]
	mov	r0, r2
	bl	GX_PokeZMode
	ldr	r2, .L12+432
	ldr	r3, .L12+436
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	GX_SetGPMetric
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	GX_ClearGPMetric
.L13:
	.align	2
.L12:
	.word	.LANCHOR0
	.word	BLACK
	.word	GX_IDENTITY
	.word	GX_TG_MTX2x4
	.word	GX_TEXCOORD0
	.word	GX_TG_TEX0
	.word	GX_TEXCOORD1
	.word	GX_TG_TEX1
	.word	GX_TEXCOORD2
	.word	GX_TG_TEX2
	.word	GX_TG_TEX3
	.word	GX_TEXCOORD3
	.word	GX_TEXCOORD4
	.word	GX_TG_TEX4
	.word	GX_TEXCOORD5
	.word	GX_TG_TEX5
	.word	GX_TEXCOORD6
	.word	GX_TG_TEX6
	.word	GX_TEXCOORD7
	.word	GX_TG_TEX7
	.word	GX_TO_ZERO
	.word	GX_DISABLE
	.word	GX_PNMTX0
	.word	GX_MTX3x4
	.word	GX_DTTIDENTITY
	.word	GX_CULL_BACK
	.word	GX_DF_NONE
	.word	GX_CLIP_ENABLE
	.word	GX_LIGHTNULL
	.word	GX_AF_NONE
	.word	GX_COLOR0A0
	.word	GX_SRC_VTX
	.word	GX_SRC_REG
	.word	WHITE
	.word	GX_COLOR1A1
	.word	__GXDefTexRegionCallback
	.word	GX_TEVSTAGE0
	.word	__GXDefTlutRegionCallback
	.word	GX_TEXMAP0
	.word	GX_TEXMAP1
	.word	GX_TEVSTAGE1
	.word	GX_TEXMAP2
	.word	GX_TEVSTAGE2
	.word	GX_TEXMAP3
	.word	GX_TEVSTAGE3
	.word	GX_TEXMAP4
	.word	GX_TEVSTAGE4
	.word	GX_TEXMAP5
	.word	GX_TEVSTAGE5
	.word	GX_TEXMAP6
	.word	GX_TEVSTAGE6
	.word	GX_TEXMAP7
	.word	GX_TEVSTAGE7
	.word	GX_COLORNULL
	.word	GX_TEXCOORDNULL
	.word	GX_TEXMAP_NULL
	.word	GX_TEVSTAGE8
	.word	GX_TEVSTAGE9
	.word	GX_TEVSTAGE10
	.word	GX_TEVSTAGE11
	.word	GX_TEVSTAGE12
	.word	GX_TEVSTAGE13
	.word	GX_TEVSTAGE14
	.word	GX_TEVSTAGE15
	.word	GX_REPLACE
	.word	GX_ALWAYS
	.word	GX_AOP_AND
	.word	GX_ZT_DISABLE
	.word	GX_TF_Z8
	.word	GX_MAX_TEVSTAGE
	.word	GX_TEV_SWAP0
	.word	GX_TEV_KCSEL_1_4
	.word	GX_TEV_KASEL_1
	.word	GX_CH_RED
	.word	GX_CH_ALPHA
	.word	GX_CH_BLUE
	.word	GX_CH_GREEN
	.word	GX_TEV_SWAP1
	.word	GX_TEV_SWAP2
	.word	GX_TEV_SWAP3
	.word	GX_ITS_1
	.word	GX_INDTEXSTAGE0
	.word	GX_INDTEXSTAGE1
	.word	GX_INDTEXSTAGE2
	.word	GX_INDTEXSTAGE3
	.word	-1717986918
	.word	1069128089
	.word	GX_FOG_NONE
	.word	GX_BM_NONE
	.word	GX_LO_CLEAR
	.word	GX_BL_INVSRCALPHA
	.word	GX_BL_SRCALPHA
	.word	GX_ENABLE
	.word	GX_TRUE
	.word	GX_LEQUAL
	.word	GX_ZC_LINEAR
	.word	GX_PF_RGB8_Z24
	.word	GX_FALSE
	.word	GX_DEFAULT_BG
	.word	1072693248
	.word	GX_CLAMP_TOP
	.word	GX_CLAMP_BOTTOM
	.word	GX_GM_1_0
	.word	GX_COPY_PROGRESSIVE
	.word	GX_LO_SET
	.word	GX_BL_ONE
	.word	GX_BL_ZERO
	.word	GX_READ_FF
	.word	GX_PERF1_NONE
	.word	GX_PERF0_NONE
	.size	__GX_InitGX, .-__GX_InitGX
	.comm	__GXDefTlutRegionCallback,4,4
	.comm	__GXDefTexRegionCallback,4,4
	.comm	WHITE,4,4
	.comm	GX_ZT_DISABLE,4,4
	.comm	GX_ZC_LINEAR,4,4
	.comm	GX_TRUE,4,4
	.comm	GX_TO_ZERO,4,4
	.comm	GX_TG_TEX7,4,4
	.comm	GX_TG_TEX6,4,4
	.comm	GX_TG_TEX5,4,4
	.comm	GX_TG_TEX4,4,4
	.comm	GX_TG_TEX3,4,4
	.comm	GX_TG_TEX2,4,4
	.comm	GX_TG_TEX1,4,4
	.comm	GX_TG_TEX0,4,4
	.comm	GX_TG_MTX2x4,4,4
	.comm	GX_TF_Z8,4,4
	.comm	GX_TEXMAP_NULL,4,4
	.comm	GX_TEXMAP7,4,4
	.comm	GX_TEXMAP6,4,4
	.comm	GX_TEXMAP5,4,4
	.comm	GX_TEXMAP4,4,4
	.comm	GX_TEXMAP3,4,4
	.comm	GX_TEXMAP2,4,4
	.comm	GX_TEXMAP1,4,4
	.comm	GX_TEXMAP0,4,4
	.comm	GX_TEXCOORDNULL,4,4
	.comm	GX_TEXCOORD7,4,4
	.comm	GX_TEXCOORD6,4,4
	.comm	GX_TEXCOORD5,4,4
	.comm	GX_TEXCOORD4,4,4
	.comm	GX_TEXCOORD3,4,4
	.comm	GX_TEXCOORD2,4,4
	.comm	GX_TEXCOORD1,4,4
	.comm	GX_TEXCOORD0,4,4
	.comm	GX_TEV_SWAP3,4,4
	.comm	GX_TEV_SWAP2,4,4
	.comm	GX_TEV_SWAP1,4,4
	.comm	GX_TEV_SWAP0,4,4
	.comm	GX_TEV_KCSEL_1_4,4,4
	.comm	GX_TEV_KASEL_1,4,4
	.comm	GX_TEVSTAGE9,4,4
	.comm	GX_TEVSTAGE8,4,4
	.comm	GX_TEVSTAGE7,4,4
	.comm	GX_TEVSTAGE6,4,4
	.comm	GX_TEVSTAGE5,4,4
	.comm	GX_TEVSTAGE4,4,4
	.comm	GX_TEVSTAGE3,4,4
	.comm	GX_TEVSTAGE2,4,4
	.comm	GX_TEVSTAGE15,4,4
	.comm	GX_TEVSTAGE14,4,4
	.comm	GX_TEVSTAGE13,4,4
	.comm	GX_TEVSTAGE12,4,4
	.comm	GX_TEVSTAGE11,4,4
	.comm	GX_TEVSTAGE10,4,4
	.comm	GX_TEVSTAGE1,4,4
	.comm	GX_TEVSTAGE0,4,4
	.comm	GX_SRC_VTX,4,4
	.comm	GX_SRC_REG,4,4
	.comm	GX_REPLACE,4,4
	.comm	GX_READ_FF,4,4
	.comm	GX_PNMTX0,4,4
	.comm	GX_PF_RGB8_Z24,4,4
	.comm	GX_PERF1_NONE,4,4
	.comm	GX_PERF0_NONE,4,4
	.comm	GX_MTX3x4,4,4
	.comm	GX_MAX_TEVSTAGE,4,4
	.comm	GX_LO_SET,4,4
	.comm	GX_LO_CLEAR,4,4
	.comm	GX_LIGHTNULL,4,4
	.comm	GX_LEQUAL,4,4
	.comm	GX_ITS_1,4,4
	.comm	GX_INDTEXSTAGE3,4,4
	.comm	GX_INDTEXSTAGE2,4,4
	.comm	GX_INDTEXSTAGE1,4,4
	.comm	GX_INDTEXSTAGE0,4,4
	.comm	GX_IDENTITY,4,4
	.comm	GX_GM_1_0,4,4
	.comm	GX_FOG_NONE,4,4
	.comm	GX_FALSE,4,4
	.comm	GX_ENABLE,4,4
	.comm	GX_DTTIDENTITY,4,4
	.comm	GX_DISABLE,4,4
	.comm	GX_DF_NONE,4,4
	.comm	GX_DEFAULT_BG,4,4
	.comm	GX_CULL_BACK,4,4
	.comm	GX_COPY_PROGRESSIVE,4,4
	.comm	GX_COLORNULL,4,4
	.comm	GX_COLOR1A1,4,4
	.comm	GX_COLOR0A0,4,4
	.comm	GX_CLIP_ENABLE,4,4
	.comm	GX_CLAMP_TOP,4,4
	.comm	GX_CLAMP_BOTTOM,4,4
	.comm	GX_CH_RED,4,4
	.comm	GX_CH_GREEN,4,4
	.comm	GX_CH_BLUE,4,4
	.comm	GX_CH_ALPHA,4,4
	.comm	GX_BM_NONE,4,4
	.comm	GX_BL_ZERO,4,4
	.comm	GX_BL_SRCALPHA,4,4
	.comm	GX_BL_ONE,4,4
	.comm	GX_BL_INVSRCALPHA,4,4
	.comm	GX_AOP_AND,4,4
	.comm	GX_ALWAYS,4,4
	.comm	GX_AF_NONE,4,4
	.comm	BLACK,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.word	1
	.word	0
	.word	0
	.word	0
	.word	0
	.word	1
	.word	0
	.word	0
	.word	0
	.word	0
	.word	1
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
