#include<ultra64.h>

extern Vtx ManLshin_pb_v[];
extern Vtx ManLshin_pb_vmcur[];
extern Tri ManLshin_pb_tri[];
extern Lights1 ManLshin_pb_material[];
extern Mtx ManLshin_pb_matrix[];

extern unsigned short pSm1hand_b_txt[];
extern unsigned short pSm1hand_f_txt[];
extern unsigned short pSm1hand_s_txt[];
extern unsigned short pSm1hand_t_txt[];
extern unsigned short pSm1hara_txt[];
extern unsigned short pSm1jacket_b_txt[];
extern unsigned short pSm1jacket_f_txt[];
extern unsigned short pSm1jacket_s_txt[];
extern unsigned short pSm1jacket_t_txt[];
extern unsigned short pSm1loarm_txt[];
extern unsigned short pSm1met_b_txt[];
extern unsigned short pSm1met_f_txt[];
extern unsigned short pSm1met_gl_txt[];
extern unsigned short pSm1met_s_txt[];
extern unsigned short pSm1met_t_txt[];
extern unsigned short pSm1momo_txt[];
extern unsigned short pSm1neck_txt[];
extern unsigned short pSm1shoes_txt[];
extern unsigned short pSm1shoes_b_txt[];
extern unsigned short pSm1sune_txt[];
extern unsigned short pSm1uparm_txt[];
extern unsigned short pSm1waist_b_txt[];
extern unsigned short pSm1waist_f_txt[];
extern unsigned short pSm1waist_s_txt[];
extern unsigned short pSshoes_bottom_txt[];
extern unsigned short pblack_txt[];



#define gs_Nin_LoadTextureImage(timg,fmt,siz,width,height,tmem,tt)	\
	gsDPSetTextureImage(fmt,siz,1,timg),	\
	gsDPTileSync(),	\
	gsDPSetTile(fmt,siz,0,tmem,tt,0,0,0,0,0,0,0),	\
	gsDPLoadSync(),	\
	gsDPLoadBlock(tt,0,0,width*height-1,CALC_DXT(width,siz##_BYTES))

#define gs_Nin_SetUpTileDescrip(fmt,siz,width,height,tmem,tt,cs,ms,ss,ct,mt,st)	\
	gsDPTileSync(),	\
	gsDPSetTile(fmt,siz,((((width)*siz##_LINE_BYTES)+7)>>3),tmem,tt,0,ct,mt,st,cs,ms,ss),	\
	gsDPSetTileSize(tt,0,0,(width-1)<<G_TEXTURE_IMAGE_FRAC,(height-1)<<G_TEXTURE_IMAGE_FRAC)

#define G_CC_PRIMSHADE PRIMITIVE,0,SHADE,0,0,0,0,SHADE

/* main display list */


/* ======== g2 ======== */


/* ======== g1 ======== */


/* ======== db ======== */

Gfx ManLshin_pb_model[]={

	gsSPTexture(65535, 65535,0, 0, 1),
	gsDPPipeSync(),
	gsDPSetCombineMode(G_CC_MODULATERGBDECALA,G_CC_PASS2),

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,16,32,0,0,G_TX_CLAMP,4,0,G_TX_CLAMP,5,0),
	gs_Nin_LoadTextureImage(pSm1momo_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,32,0,7),

	gsSPVertex(&ManLshin_pb_v[0], 3, 0),
	gsSP1Triangle(0, 1, 2, 0),

	gs_Nin_LoadTextureImage(pSm1sune_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,32,0,7),

	gsSPVertex(&ManLshin_pb_v[3], 9, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 2, 1, 0),
	gsSP1Triangle(4, 5, 6, 0),
	gsSP1Triangle(6, 7, 4, 0),
	gsSP1Triangle(8, 4, 7, 0),
	gsSPEndDisplayList(),
}; /* db */ 

Gfx ManLshin_pb_modelT[] = {
	gsSPEndDisplayList()
};

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 12 vertices */
Vtx ManLshin_pb_v[]={
	{ -2,-42,4,0, 380, 301,  0,-111,-45,255 },   /* v0 used p4/V1 1 times */
	{ -29,19,-4,0, 263, 0,  -58,91,-50,255 },   /* v1 used p4/V2 1 times */
	{ 27,19,-3,0, 504, 0,  79,39,-79,255 },   /* v2 used p4/V3 1 times */
	{ 27,19,-3,0, 503, 1027,  79,39,-79,255 },   /* v3 used p2/V1 1 times */
	{ -29,19,-4,0, 262, 1030,  -58,91,-50,255 },   /* v4 used p2/V2 2 times */
	{ 21,1,187,0, 478, 0,  93,61,43,255 },   /* v5 used p2/V3 2 times */
	{ -23,0,186,0, 289, 0,  -105,-45,37,255 },   /* v6 used p1/V1 1 times */
	{ -2,-42,4,0, 135, 956,  0,-111,-45,255 },   /* v7 used p3/V3 3 times */
	{ 27,19,-3,0, 8, 1027,  79,39,-79,255 },   /* v8 used p5/V2 1 times */
	{ 21,1,187,0, 33, 0,  93,61,43,255 },   /* v9 used p3/V1 2 times */
	{ -23,0,186,0, 222, 0,  -105,-45,37,255 },   /* v10 used p3/V2 2 times */
	{ -29,19,-4,0, 249, 1030,  -58,91,-50,255 },   /* v11 used p6/V1 1 times */
};


/*   0 vertices */
/* 16 x 32  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short pSm1momo_txt[] = {
	0x4a53, 0x5ad7, 0x6319, 0x6b5b, 0x6b5b, 0x739d, 0x7bdf, 0x8421, 0x8421, 0x7bdf, 0x739d, 0x8421, 0x94a5, 0x739d, 0x5295, 0x4211, 
	0x4a53, 0x4211, 0x6b5b, 0x6b5b, 0x739d, 0x7bdf, 0x8421, 0x8421, 0x8421, 0x8421, 0x739d, 0xad6b, 0xce73, 0x6b5b, 0x6319, 0x4a53, 
	0x6319, 0x739d, 0x6b5b, 0x6b5b, 0x739d, 0x8421, 0x8421, 0x739d, 0x739d, 0x8421, 0x739d, 0xa529, 0xbdef, 0x6319, 0x6b5b, 0x5ad7, 
	0x6b5b, 0x6b5b, 0x6319, 0x739d, 0x7bdf, 0x8c63, 0x6b5b, 0x18c7, 0x4211, 0x7bdf, 0x7bdf, 0x8421, 0x8421, 0x6b5b, 0x6b5b, 0x6319, 
	0x6319, 0x5295, 0x6319, 0x7bdf, 0x8421, 0x8421, 0x2109, 0x843, 0x843, 0x6319, 0x8421, 0x6b5b, 0x6319, 0x6b5b, 0x6b5b, 0x6b5b, 
	0x739d, 0x5ad7, 0x6b5b, 0x8421, 0x8c63, 0x5ad7, 0x1085, 0x318d, 0x2109, 0x318d, 0x7bdf, 0x739d, 0x6319, 0x6b5b, 0x6b5b, 0x6b5b, 
	0x8421, 0x739d, 0x6b5b, 0x8421, 0x8c63, 0x318d, 0x2109, 0x4211, 0x39cf, 0x18c7, 0x6b5b, 0x7bdf, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 
	0x6b5b, 0x7bdf, 0x7bdf, 0x8c63, 0x739d, 0x18c7, 0x4211, 0x5295, 0x5295, 0x2109, 0x4a53, 0x8421, 0x739d, 0x6b5b, 0x6b5b, 0x6b5b, 
	0x6b5b, 0x6b5b, 0x7bdf, 0x94a5, 0x4a53, 0x294b, 0x5ad7, 0x6319, 0x5ad7, 0x39cf, 0x294b, 0x8421, 0x7bdf, 0x6b5b, 0x6b5b, 0x6b5b, 
	0x6b5b, 0x6b5b, 0x8421, 0x8c63, 0x294b, 0x4211, 0x6b5b, 0x739d, 0x6b5b, 0x5295, 0x18c7, 0x739d, 0x8421, 0x6b5b, 0x6b5b, 0x6b5b, 
	0x6b5b, 0x739d, 0x94a5, 0x739d, 0x2109, 0x5ad7, 0x7bdf, 0x8421, 0x7bdf, 0x6319, 0x294b, 0x5ad7, 0x8c63, 0x6b5b, 0x6b5b, 0x6b5b, 
	0x6b5b, 0x7bdf, 0x94a5, 0x5295, 0x318d, 0x6b5b, 0x8c63, 0x94a5, 0x8c63, 0x739d, 0x4211, 0x39cf, 0x8c63, 0x739d, 0x6b5b, 0x6b5b, 
	0x739d, 0x8421, 0x94a5, 0x318d, 0x4a53, 0x7bdf, 0x94a5, 0x94a5, 0x94a5, 0x8421, 0x5ad7, 0x2109, 0x8421, 0x8421, 0x6b5b, 0x6b5b, 
	0x7bdf, 0x8c63, 0x7bdf, 0x2109, 0x6319, 0x8421, 0x94a5, 0x94a5, 0x94a5, 0x8c63, 0x739d, 0x294b, 0x6b5b, 0x8c63, 0x739d, 0x739d, 
	0x7bdf, 0x94a5, 0x5ad7, 0x318d, 0x739d, 0x8c63, 0x94a5, 0x9ce7, 0x9ce7, 0x94a5, 0x7bdf, 0x39cf, 0x4a53, 0x8c63, 0x7bdf, 0x739d, 
	0x8421, 0x8c63, 0x39cf, 0x4211, 0x8421, 0x94a5, 0x94a5, 0x9ce7, 0x9ce7, 0x94a5, 0x8c63, 0x5ad7, 0x2109, 0x7bdf, 0x8421, 0x739d, 
	0x8c63, 0x7bdf, 0x2109, 0x5ad7, 0x8c63, 0x94a5, 0x94a5, 0x9ce7, 0x9ce7, 0x9ce7, 0x94a5, 0x6b5b, 0x294b, 0x6319, 0x8421, 0x7bdf, 
	0x8c63, 0x5ad7, 0x318d, 0x739d, 0x94a5, 0x94a5, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x94a5, 0x7bdf, 0x39cf, 0x39cf, 0x8421, 0x8421, 
	0x8c63, 0x39cf, 0x4211, 0x7bdf, 0x94a5, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x8421, 0x5295, 0x18c7, 0x6b5b, 0x8421, 
	0x7bdf, 0x2109, 0x5ad7, 0x8421, 0x94a5, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x8c63, 0x6b5b, 0x318d, 0x4211, 0x7bdf, 
	0x4a53, 0x318d, 0x739d, 0x8c63, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x94a5, 0x7bdf, 0x4a53, 0x18c7, 0x5295, 
	0x1085, 0x5295, 0x8421, 0x94a5, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x8421, 0x6319, 0x39cf, 0x18c7, 
	0x39cf, 0x6b5b, 0x8c63, 0x94a5, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x94a5, 0x7bdf, 0x5295, 0x39cf, 
	0x5ad7, 0x8421, 0x94a5, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce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9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 
};

/* 16 x 32  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short pSm1sune_txt[] = {
	0x1, 0x1, 0x1085, 0x18c7, 0x18c7, 0x1085, 0x1, 0x1, 0x1, 0x1, 0x843, 0x843, 0x18c7, 0x843, 0x1, 0x1, 
	0x1, 0x1, 0x1085, 0x18c7, 0x18c7, 0x1085, 0x1, 0x1, 0x1, 0x1, 0x18c7, 0x1085, 0x2109, 0x843, 0x1, 0x1, 
	0x843, 0x1, 0x18c7, 0x18c7, 0x18c7, 0x18c7, 0x1, 0x1, 0x1, 0x1, 0x2109, 0x843, 0x18c7, 0x18c7, 0x1, 0x1, 
	0x39cf, 0x4211, 0x39cf, 0x5295, 0x4211, 0x39cf, 0x2109, 0x294b, 0x294b, 0x318d, 0x4211, 0x2109, 0x843, 0x2109, 0x1085, 0x1085, 
	0x6b5b, 0x6319, 0x6319, 0x6319, 0x6319, 0x5295, 0x5ad7, 0x6319, 0x5ad7, 0x5295, 0x318d, 0x5295, 0x4211, 0x2109, 0x5ad7, 0x5ad7, 
	0x18c7, 0x2109, 0x294b, 0x2109, 0x18c7, 0x18c7, 0x2109, 0x294b, 0x2109, 0x1085, 0x843, 0x843, 0x1085, 0x2109, 0x18c7, 0x18c7, 
	0x8421, 0x7bdf, 0x6b5b, 0x7bdf, 0x8421, 0x94a5, 0x8c63, 0x739d, 0x7bdf, 0x8421, 0x8c63, 0x8421, 0x8421, 0x8c63, 0x8421, 0x8421, 
	0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0xa529, 0xbdef, 0xad6b, 0x8c63, 0x9ce7, 0xb5ad, 0xb5ad, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 0x9ce7, 
	0x94a5, 0x94a5, 0x94a5, 0x94a5, 0xa529, 0xb5ad, 0x739d, 0x1085, 0x318d, 0x9ce7, 0xad6b, 0x94a5, 0x8c63, 0x94a5, 0x94a5, 0x94a5, 
	0x8c63, 0x8c63, 0x8c63, 0x94a5, 0xad6b, 0xa529, 0x2109, 0x18c7, 0x843, 0x4a53, 0xad6b, 0x6b5b, 0x5ad7, 0x8c63, 0x8c63, 0x8c63, 
	0x8c63, 0x8c63, 0x8c63, 0x9ce7, 0xb5ad, 0x6319, 0x843, 0x4211, 0x318d, 0x1085, 0x94a5, 0x6319, 0x4a53, 0x8c63, 0x8c63, 0x8c63, 
	0x8c63, 0x8c63, 0x8c63, 0xad6b, 0xad6b, 0x294b, 0x294b, 0x5295, 0x5295, 0x1085, 0x5ad7, 0x739d, 0x5ad7, 0x94a5, 0x94a5, 0x8c63, 
	0x8c63, 0x8c63, 0x8c63, 0xb5ad, 0x8c63, 0x1085, 0x4a53, 0x4a53, 0x5295, 0x39cf, 0x294b, 0x6b5b, 0x6319, 0x94a5, 0x9ce7, 0x8c63, 
	0x8c63, 0x8c63, 0x9ce7, 0xbdef, 0x5ad7, 0x2109, 0x5295, 0x4a53, 0x4a53, 0x5295, 0x1085, 0x5295, 0x6b5b, 0x94a5, 0x94a5, 0x8c63, 
	0x8c63, 0x94a5, 0xad6b, 0xad6b, 0x318d, 0x39cf, 0x4a53, 0x4a53, 0x4211, 0x5295, 0x294b, 0x5295, 0x739d, 0x94a5, 0x8c63, 0x8c63, 
	0x8c63, 0x9ce7, 0xb5ad, 0x8c63, 0x18c7, 0x4a53, 0x4a53, 0x4a53, 0x4a53, 0x4a53, 0x4211, 0x5295, 0x739d, 0xa529, 0x8c63, 0x8c63, 
	0x8c63, 0xad6b, 0xb5ad, 0x5ad7, 0x2109, 0x4a53, 0x4a53, 0x5295, 0x4a53, 0x4211, 0x4a53, 0x6319, 0x739d, 0xad6b, 0x9ce7, 0x8c63, 
	0x94a5, 0xb5ad, 0xad6b, 0x318d, 0x318d, 0x4a53, 0x5295, 0x5295, 0x5295, 0x4a53, 0x4a53, 0x739d, 0x6b5b, 0xad6b, 0xa529, 0x8c63, 
	0x9ce7, 0xb5ad, 0x94a5, 0x18c7, 0x4211, 0x4a53, 0x5295, 0x5ad7, 0x5ad7, 0x4a53, 0x4a53, 0x739d, 0x6b5b, 0xad6b, 0xb5ad, 0x9ce7, 
	0xad6b, 0xb5ad, 0x739d, 0x2109, 0x5295, 0x5295, 0x5ad7, 0x6319, 0x6319, 0x5295, 0x4a53, 0x739d, 0x6319, 0x9ce7, 0xbdef, 0xad6b, 
	0xb5ad, 0xb5ad, 0x4211, 0x318d, 0x5295, 0x5295, 0x6319, 0x6b5b, 0x6319, 0x5ad7, 0x4a53, 0x739d, 0x6319, 0x6b5b, 0xbdef, 0xbdef, 
	0xbdef, 0xa529, 0x2109, 0x4a53, 0x5295, 0x5ad7, 0x6319, 0x6b5b, 0x6b5b, 0x6319, 0x4a53, 0x7bdf, 0x7bdf, 0x39cf, 0xb5ad, 0xbdef, 
	0xbdef, 0x7bdf, 0x18c7, 0x5295, 0x5295, 0x5ad7, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x5295, 0x94a5, 0x94a5, 0x1085, 0x9ce7, 0xbdef, 
	0xad6b, 0x4a53, 0x294b, 0x5ad7, 0x5295, 0x6319, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x5ad7, 0x7bdf, 0x8c63, 0x18c7, 0x5ad7, 0xb5ad, 
	0x94a5, 0x2109, 0x4211, 0x5ad7, 0x5ad7, 0x6319, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x6319, 0x5ad7, 0x6319, 0x39cf, 0x18c7, 0x94a5, 
	0x4211, 0x18c7, 0x5ad7, 0x5ad7, 0x5ad7, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x6319, 0x294b, 0x294b, 0x4a53, 0x18c7, 0x39cf, 
	0x843, 0x4211, 0x5ad7, 0x5ad7, 0x6319, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x6319, 0x4a53, 0x4211, 0x4a53, 0x4a53, 0x18c7, 
	0x318d, 0x5295, 0x5295, 0x5ad7, 0x6319, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x6319, 0x5ad7, 0x5295, 0x4a53, 0x4a53, 0x39cf, 
	0x5ad7, 0x5295, 0x5ad7, 0x6319, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x8421, 0x7bdf, 0x4a53, 0x4a53, 0x5295, 
	0x5295, 0x5295, 0x5ad7, 0x6319, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x7bdf, 0x7bdf, 0x5ad7, 0x4a53, 0x4a53, 
	0x4a53, 0x4a53, 0x6319, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x739d, 0x739d, 0x739d, 0x6b5b, 0x7bdf, 0x7bdf, 0x6319, 0x4a53, 0x4211, 
	0x39cf, 0x5295, 0x6b5b, 0x6b5b, 0x6b5b, 0x6b5b, 0x739d, 0x7bdf, 0x7bdf, 0x739d, 0x6b5b, 0x7bdf, 0x7bdf, 0x6b5b, 0x5295, 0x4211, 
};

