/* 
 * 変換日付 Thu Jan 18 10:42:00 2001
 * 2001/1/16 var2.05
 * パレット有効
 * XXコードの頂点破棄
 * オブジェクト用出力
 * 使用テキスチャ─チェック
 * 頂点カラーを評価しない
 * ビュア─の設定対応
 */
#include <mbi.h>
#include <u64macro.h>

extern unsigned char hi_light_txt[];
extern Mtx	softsprite_mtx;
/* texture = 2 */
static unsigned char logo_u_tex[768];
static unsigned char logo_back_tex[1024];

/* ビュア─設定のパレット */
/* ビュア─設定のテキスチャ─ */
/* vretex = 8 */
static Vtx logo_u_v[] = {
/* 0番目 */ { -38,  -38,    0,    0,    0, 1024,  172,  172,  172,  172},
/* 1番目 */ {  38,  -38,    0,    0, 1024, 1024,  172,  172,  172,  172},
/* 2番目 */ {  38,   38,    0,    0, 1024,    0,  172,  172,  172,  172},
/* 3番目 */ { -38,   38,    0,    0,    0,    0,  172,  172,  172,  172},
/* 4番目 */ { -38,  -46,    0,    0,    0, 1536,  152,  152,  152,  152},
/* 5番目 */ {  26,  -46,    0,    0, 1024, 1536,  152,  152,  152,  152},
/* 6番目 */ {  26,   50,    0,    0, 1024,    0,  152,  152,  152,  152},
/* 7番目 */ { -38,   50,    0,    0,    0,    0,  152,  152,  152,  152},

};

Gfx logo_u_modelT[] = {
/* JOINT dbT 階層 0 */
/* JOINT logo_back_uT 階層 1 */
	gsSPTexture( 0xffff, 0xffff, 0, 0, G_ON),
	gsDPPipeSync(),
//	gsDPSetCombineLERP(
//		PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT,
//		TEXEL0, 0, PRIM_LOD_FRAC, PRIMITIVE,
//		0, 0, 0, COMBINED,
//		0, 0, 0, COMBINED
//	),
//	gsDPSetPrimColor(0, 80, 150, 230, 90, 120),
//	gsDPSetEnvColor(100, 200, 60, 255),
//	gsDPSetRenderMode(G_RM_FOG_SHADE_A,G_RM_AA_ZB_XLU_SURF2),
/* repeat = (1,1)  mirror = (1,1) clamp = (0,0) */
	gsDPPipeSync(),
	gsDPSetTextureLUT(G_TT_NONE),
	gsDPLoadTextureBlock(
			logo_back_tex,
			G_IM_FMT_I,G_IM_SIZ_8b,
			32, 32, 0,
			G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP,
			5, 5, 0, 0),
/* logo_back_uT_1 */
//	gsSPLoadGeometryMode(G_FOG | G_SHADE | G_SHADING_SMOOTH | G_ZBUFFER),
	gsSPVertex(&logo_u_v[0],4,0),
	gsSP2Triangles( 0, 1, 2, 0, 0, 2, 3, 0 ),
	gsSPEndDisplayList(),
};

Gfx logo_u_modelT2[] = {
/* JOINT logo_type_uT 階層 1 */
	gsSPTexture( 0xffff, 0xffff, 0, 0, G_ON),
	gsDPPipeSync(),
//	gsDPSetCombineLERP(
//		PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT,
//		0, 0, 0, TEXEL0,
//		0, 0, 0, COMBINED,
//		0, 0, 0, COMBINED
//	),
//	gsDPSetPrimColor(0, 255, 255, 240, 0, 255),
//	gsDPSetEnvColor(20, 70, 0, 255),
/* repeat = (1,1)  mirror = (1,1) clamp = (1,1) */
	gsDPPipeSync(),
	gsDPLoadTextureBlock_4b(
			logo_u_tex,
			G_IM_FMT_IA,
			32, 48, 15,
			G_TX_MIRROR | G_TX_CLAMP, G_TX_MIRROR | G_TX_CLAMP,
			5, 6, 0, 0),
/* logo_type_uT_1 */
//	gsSPLoadGeometryMode(G_CULL_BACK | G_FOG | G_SHADE | G_SHADING_SMOOTH | G_ZBUFFER),
	gsSPVertex(&logo_u_v[4],4,0),
	gsSP2Triangles( 0, 1, 2, 0, 0, 2, 3, 0 ),
	gsSPEndDisplayList(),
};

Gfx logo_u_model[] = {
/* JOINT root64 階層 -1 */
/* JOINT db 階層 0 */
	gsSPEndDisplayList(),
};

static unsigned char logo_u_tex[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x17,0x11,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x11,0xbf,0x71,0x10,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0x3f,0xff,0xf1,0x10,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x19,0xff,0xff,0xf9,0x11,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x19,0xff,0xff,0xff,0x11,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0xdf,0xff,0xff,0xd1,0x10,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x1d,0xff,0xff,0xf7,0x10,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x11,0xff,0xff,0xff,0x11,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x3f,0xff,0xff,0x91,0x10,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x17,0xff,0xff,0xf1,0x10,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x11,0x11,0x11,0x9f,0xff,0x91,0x11,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0x11,0x11,0x59,0xbd,0xdd,0xbf,0xfd,0x11,0x11,0x00,0x00,0x00,0x00,
0x00,0x01,0x13,0x9d,0xff,0xff,0xff,0xff,0xff,0xff,0xfb,0x51,0x10,0x00,0x00,0x00,
0x00,0x1b,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfd,0x31,0x00,0x00,0x00,
0x00,0x19,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf1,0x10,0x00,0x00,
0x00,0x01,0xdf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x11,0x00,0x00,
0x00,0x01,0x5f,0xff,0xff,0xff,0xff,0xdd,0xff,0xff,0xff,0xff,0xff,0x71,0x10,0x00,
0x00,0x00,0x1d,0xff,0xd9,0x51,0x11,0x11,0x11,0x3d,0xff,0xff,0xff,0xb1,0x10,0x00,
0x00,0x00,0x03,0xb1,0x11,0x11,0x11,0x11,0x11,0x11,0xdf,0xff,0xff,0xd1,0x11,0x00,
0x00,0x00,0x01,0x11,0x11,0x11,0x11,0x10,0x00,0x01,0x7f,0xff,0xff,0xf1,0x11,0x00,
0x00,0x00,0x00,0x01,0x11,0x10,0x00,0x00,0x00,0x01,0x5f,0xff,0xff,0xf1,0x11,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x7f,0xff,0xff,0xd1,0x11,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xbf,0xff,0xff,0x91,0x11,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xff,0xff,0xff,0x51,0x11,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x13,0xff,0xff,0xff,0x11,0x11,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1b,0xff,0xff,0xfd,0x11,0x10,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0xff,0xff,0xf3,0x11,0x10,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5f,0xff,0xff,0xf1,0x11,0x10,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x9f,0xff,0xff,0xb1,0x11,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xdf,0xff,0xff,0x71,0x11,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xff,0xff,0xff,0x11,0x11,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x15,0xff,0xff,0xff,0x11,0x10,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1b,0xff,0xff,0xf9,0x11,0x10,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0xff,0xff,0xf1,0x11,0x10,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x3f,0xff,0xff,0xd1,0x11,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xbf,0xff,0xff,0x91,0x11,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xff,0xff,0xff,0x51,0x11,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xbf,0xff,0xff,0x11,0x11,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x11,0x15,0x99,0x11,0x10,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x11,0x11,0x11,0x10,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x11,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x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xc2,0xbc,0xb7,0xb2,0xad,0xa8,0xa3,0x9e,0x99,0x95,0x90,0x8d,
0x88,0x84,0x81,0x7e,0x7a,0x77,0x75,0x72,0x70,0x6d,0x6b,0x6a,0x68,0x68,0x67,0x67,
0xd4,0xcf,0xc9,0xc4,0xbf,0xb9,0xb4,0xae,0xa9,0xa4,0x9f,0x99,0x95,0x90,0x8c,0x87,
0x84,0x80,0x7c,0x79,0x76,0x72,0x6f,0x6c,0x6a,0x68,0x65,0x63,0x62,0x61,0x61,0x60,
0xd2,0xcc,0xc6,0xc0,0xbb,0xb6,0xb0,0xab,0xa5,0xa0,0x9b,0x96,0x90,0x8c,0x87,0x83,
0x7f,0x7c,0x78,0x74,0x70,0x6d,0x6a,0x67,0x64,0x62,0x60,0x5e,0x5c,0x5b,0x5a,0x5a,
0xcf,0xc9,0xc4,0xbe,0xb8,0xb3,0xac,0xa7,0xa1,0x9c,0x97,0x92,0x8c,0x88,0x83,0x80,
0x7c,0x77,0x74,0x70,0x6b,0x68,0x64,0x61,0x5e,0x5c,0x59,0x57,0x55,0x54,0x53,0x53,
0xcb,0xc6,0xc0,0xba,0xb4,0xaf,0xa9,0xa3,0x9e,0x99,0x94,0x8e,0x89,0x84,0x80,0x7c,
0x77,0x73,0x6e,0x6b,0x67,0x63,0x5f,0x5b,0x59,0x55,0x53,0x51,0x4f,0x4e,0x4d,0x4c,
0xc9,0xc3,0xbe,0xb7,0xb1,0xac,0xa6,0xa0,0x9b,0x95,0x90,0x8a,0x86,0x81,0x7c,0x78,
0x73,0x6f,0x6a,0x65,0x61,0x5d,0x5a,0x56,0x53,0x50,0x4c,0x4b,0x49,0x47,0x46,0x46,
0xc6,0xc1,0xba,0xb5,0xaf,0xa9,0xa3,0x9d,0x97,0x92,0x8c,0x87,0x82,0x7e,0x79,0x74,
0x6f,0x6a,0x66,0x61,0x5d,0x58,0x55,0x50,0x4d,0x49,0x47,0x44,0x42,0x41,0x40,0x40,
0xc5,0xbe,0xb8,0xb3,0xac,0xa6,0xa1,0x9a,0x95,0x8f,0x8a,0x84,0x80,0x7a,0x76,0x71,
0x6c,0x66,0x62,0x5c,0x58,0x54,0x4f,0x4b,0x48,0x44,0x41,0x3e,0x3c,0x3b,0x3a,0x39,
0xc2,0xbc,0xb6,0xb0,0xaa,0xa4,0x9e,0x98,0x92,0x8c,0x87,0x82,0x7d,0x78,0x72,0x6d,
0x68,0x63,0x5d,0x58,0x53,0x4f,0xa0,0x46,0x42,0x3f,0x3c,0x39,0x36,0x34,0x34,0x33,
0xc0,0xba,0xb4,0xad,0xa8,0xa1,0x9b,0x95,0x90,0x8a,0x85,0x7f,0x7a,0x75,0x6f,0x6a,
0x64,0x5f,0x59,0x55,0x4f,0x4a,0x45,0x41,0x3c,0x39,0x36,0x32,0x30,0x2e,0x2d,0x2c,
0xbf,0xb9,0xb2,0xac,0xa6,0xa0,0x99,0x93,0x8e,0x87,0x82,0x7d,0x78,0x73,0x6c,0x67,
0x61,0x5b,0x56,0x51,0x4b,0x46,0x41,0x3c,0x38,0x34,0x31,0x2d,0x2a,0x28,0x28,0x27,
0xbd,0xb7,0xb0,0xaa,0xa4,0x9e,0x97,0x91,0x8b,0x85,0x81,0x7b,0x75,0x6f,0x6a,0x65,
0x5e,0x58,0x52,0x4d,0x47,0x42,0x3d,0x38,0x34,0x2f,0x2c,0x28,0x26,0x23,0x22,0x21,
0xbc,0xb5,0xaf,0xa8,0xa2,0x9c,0x95,0x90,0x89,0x84,0x7f,0x79,0x74,0x6e,0x67,0x62,
0x5c,0x56,0x4f,0x4a,0x44,0x3e,0x39,0x34,0x2f,0x2b,0x26,0x23,0x21,0x1e,0x1d,0x1b,
0xba,0xb4,0xad,0xa8,0xa1,0x9a,0x95,0x8e,0x88,0x83,0x7d,0x78,0x72,0x6b,0x65,0x5f,
0x59,0x53,0x4d,0x47,0x41,0x3b,0x36,0x30,0x2b,0x26,0x22,0x1f,0x1b,0x19,0x17,0x16,
0xb9,0xb3,0xac,0xa6,0x9f,0x9a,0x93,0x8d,0x87,0x81,0x7b,0x76,0x70,0x6a,0x64,0x5d,
0x57,0x51,0x4b,0x45,0x3e,0x38,0x33,0x2e,0x28,0x23,0x1e,0x1a,0x17,0x14,0x12,0x12,
0xb9,0xb2,0xab,0xa5,0x9f,0x99,0x92,0x8c,0x86,0x80,0x7a,0x74,0x6f,0x69,0x63,0x5c,
0x56,0x4f,0x49,0x42,0x3d,0x36,0x30,0x2a,0x26,0x20,0x1b,0x17,0x13,0x10,0x0e,0x0d,
0xb8,0xb2,0xab,0xa5,0x9e,0x97,0x91,0x8b,0x85,0x80,0x79,0x74,0x6e,0x67,0x61,0x5b,
0x54,0x4d,0x48,0x41,0x3b,0x35,0x2e,0x29,0x23,0x1e,0x19,0x14,0x10,0x0d,0x0a,0x08,
0xb7,0xb1,0xab,0xa4,0x9d,0x97,0x90,0x8b,0x85,0x7f,0x79,0x74,0x6d,0x67,0x61,0x5a,
0x53,0x4c,0x46,0x40,0x3a,0x33,0x2d,0x27,0x22,0x1c,0x17,0x13,0x0e,0x0a,0x07,0x05,
0xb7,0xb1,0xaa,0xa4,0x9e,0x97,0x91,0x8b,0x85,0x7f,0x79,0x73,0x6d,0x67,0x60,0x59,
0x53,0x4c,0x46,0x40,0x39,0x33,0x2d,0x27,0x21,0x1b,0x16,0x11,0x0c,0x09,0x05,0x03,
}; /* logo_back_tex */


