#include<ultra64.h>

extern Vtx ManLfoot_b_v[];
extern Vtx ManLfoot_b_vmcur[];
extern Tri ManLfoot_b_tri[];
extern Lights1 ManLfoot_b_material[];
extern Mtx ManLfoot_b_matrix[];

extern unsigned short Sm1hand_b_txt[];
extern unsigned short Sm1hand_f_txt[];
extern unsigned short Sm1hand_s_txt[];
extern unsigned short Sm1hand_t_txt[];
extern unsigned short Sm1hara_txt[];
extern unsigned short Sm1jacket_b_txt[];
extern unsigned short Sm1jacket_f_txt[];
extern unsigned short Sm1jacket_s_txt[];
extern unsigned short Sm1jacket_t_txt[];
extern unsigned short Sm1loarm_txt[];
extern unsigned short Sm1met_b_txt[];
extern unsigned short Sm1met_f_txt[];
extern unsigned short Sm1met_gl_txt[];
extern unsigned short Sm1met_s_txt[];
extern unsigned short Sm1met_t_txt[];
extern unsigned short Sm1momo_txt[];
extern unsigned short Sm1neck_txt[];
extern unsigned short Sm1shoes_txt[];
extern unsigned short Sm1shoes_b_txt[];
extern unsigned short Sm1sune_txt[];
extern unsigned short Sm1uparm_txt[];
extern unsigned short Sm1waist_b_txt[];
extern unsigned short Sm1waist_f_txt[];
extern unsigned short Sm1waist_s_txt[];
extern unsigned short Sshoes_bottom_txt[];
extern unsigned short black_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 ManLfoot_b_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(Sm1shoes_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,32,0,7),

	gsSPVertex(&ManLfoot_b_v[0], 5, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(2, 3, 0, 0),
	gsSP1Triangle(1, 4, 2, 0),

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,8,16,0,0,G_TX_MIRROR,3,0,G_TX_CLAMP,4,0),
	gs_Nin_LoadTextureImage(Sm1shoes_b_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,8,16,0,7),

	gsSPVertex(&ManLfoot_b_v[5], 3, 0),
	gsSP1Triangle(0, 1, 2, 0),

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,8,32,0,0,G_TX_CLAMP,3,0,G_TX_CLAMP,5,0),
	gs_Nin_LoadTextureImage(Sshoes_bottom_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,8,32,0,7),

	gsSPVertex(&ManLfoot_b_v[8], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSPEndDisplayList(),
}; /* db */ 

Gfx ManLfoot_b_modelT[] = {
	gsSPEndDisplayList()
};

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 12 vertices */
Vtx ManLfoot_b_v[]={
	{ -25,-27,101,0, -8, 47,  -90,-67,42,255 },   /* v0 used p2/V1 2 times */
	{ 22,-28,96,0, 527, 91,  106,30,44,255 },   /* v1 used p2/V2 2 times */
	{ 0,26,-19,0, 282, 998,  7,113,-36,255 },   /* v2 used p2/V3 3 times */
	{ -26,-26,-23,0, -12, 1026,  -76,-41,-83,255 },   /* v3 used p1/V2 1 times */
	{ 21,-27,-22,0, 524, 1021,  51,-91,-58,255 },   /* v4 used p3/V2 1 times */
	{ 21,-27,-22,0, -12, 0,  51,-91,-58,255 },   /* v5 used p4/V1 1 times */
	{ -26,-26,-23,0, 524, 0,  -76,-41,-83,255 },   /* v6 used p4/V2 1 times */
	{ 0,26,-19,0, 243, 567,  7,113,-36,255 },   /* v7 used p4/V3 1 times */
	{ 21,-27,-22,0, 246, 4,  51,-91,-58,255 },   /* v8 used p5/V1 2 times */
	{ 22,-28,96,0, 246, 1008,  106,30,44,255 },   /* v9 used p5/V2 1 times */
	{ -25,-27,101,0, 1, 1056,  -90,-67,42,255 },   /* v10 used p5/V3 2 times */
	{ -26,-26,-23,0, 1, 0,  -76,-41,-83,255 },   /* v11 used p6/V3 1 times */
};


/*   0 vertices */
/* 16 x 32  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short Sm1shoes_txt[] = {
	0x843, 0x1, 0x1, 0x841, 0x41, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x843, 0x843, 0x843, 0x843, 0x843, 0x841, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x843, 0x843, 0x843, 0x843, 0x843, 0x843, 0x843, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x843, 0x1, 0x843, 0x1, 0x843, 0x843, 0x843, 0x841, 0x843, 0x843, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x843, 0x843, 0x843, 0x1, 0x1, 0x843, 0x843, 0x843, 0x10c5, 0x18c7, 0x1083, 0x843, 0x1, 0x1, 0x1, 0x1, 
	0x843, 0x843, 0x843, 0x1, 0x843, 0x843, 0x1085, 0x318d, 0x6319, 0x6319, 0x4a53, 0x2109, 0x843, 0x1, 0x1, 0x1, 
	0x843, 0x1, 0x3, 0x1, 0x1, 0x1083, 0x2949, 0x6b59, 0xad6b, 0xa529, 0x5b17, 0x2109, 0x1085, 0x843, 0x1, 0x1, 
	0x841, 0x1, 0x43, 0x845, 0x1085, 0x843, 0x18c7, 0x5293, 0x739d, 0x4211, 0x294d, 0x318d, 0x18c5, 0x843, 0x3, 0x1, 
	0x1, 0x1081, 0x4183, 0x5a47, 0x3189, 0x18c7, 0x843, 0x18c7, 0x2107, 0x18c5, 0x5a05, 0x7303, 0x72c1, 0x41c3, 0x2103, 0x841, 
	0x841, 0x4181, 0x3141, 0x3981, 0x2103, 0x1085, 0x18c5, 0x18c7, 0x18c7, 0x2105, 0x41c5, 0x1083, 0x1081, 0x1041, 0x1081, 0x841, 
	0x801, 0x1, 0x1, 0x3, 0x5207, 0x41cd, 0x318d, 0x18c7, 0x294b, 0x41c9, 0x8305, 0x20c1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x6281, 0x7307, 0x39cf, 0x18c5, 0x1, 0x843, 0x294b, 0x5247, 0x9bc1, 0x41c1, 0x3, 0x1, 0x1, 
	0x1, 0x1041, 0x6241, 0x6ac7, 0x294b, 0x1085, 0x1085, 0x843, 0x843, 0x843, 0x298d, 0x398b, 0x72c1, 0x49c1, 0x841, 0x1, 
	0x801, 0x5201, 0x3981, 0x5, 0x1085, 0x18c7, 0x294b, 0x294b, 0x294b, 0x2109, 0x2107, 0x845, 0x845, 0x2903, 0x2901, 0x1, 
	0x841, 0x843, 0x1, 0x843, 0x843, 0x1085, 0x1085, 0x1, 0x18c7, 0x18c7, 0x1085, 0x18c5, 0x2901, 0x43, 0x843, 0x1, 
	0x3, 0x841, 0x9381, 0xc549, 0x318b, 0x845, 0x1085, 0x18c5, 0x18c7, 0x1085, 0x2109, 0xa44b, 0xee01, 0x3981, 0x3, 0x1, 
	0x3, 0x4181, 0xfe45, 0xfec7, 0x628d, 0x1085, 0x18c7, 0x1085, 0x318b, 0x2109, 0x3149, 0xd58d, 0xff0f, 0x8341, 0x1, 0x1, 
	0x3, 0x6a81, 0xfed1, 0x838b, 0x3145, 0x843, 0x843, 0x1, 0x1085, 0x1085, 0x2907, 0x5247, 0xcddb, 0xac05, 0x1, 0x1, 
	0x1, 0x6a81, 0xee0b, 0x2107, 0x18c7, 0x18c7, 0x2949, 0x20c7, 0x294b, 0x2109, 0x318d, 0x1087, 0xbd57, 0xa403, 0x1, 0x1, 
	0x3, 0x5a41, 0xee0b, 0x18c7, 0x843, 0x1085, 0x1085, 0x1, 0x2949, 0x2109, 0x2107, 0x1087, 0xc54f, 0x9bc5, 0x3, 0x1, 
	0x3, 0x4181, 0xdd89, 0x2107, 0x18c7, 0x1085, 0x18c7, 0x18c7, 0x2107, 0x1085, 0x2109, 0x1087, 0xc509, 0x7b01, 0x3, 0x1, 
	0x3, 0x20c1, 0xcd07, 0x18c5, 0x845, 0x2949, 0x294b, 0x1085, 0x2109, 0x318b, 0x1085, 0x885, 0xb489, 0x49c1, 0x1, 0x1, 
	0x1, 0x1, 0x940b, 0x2907, 0x843, 0x5253, 0x1085, 0x1, 0x1, 0x5295, 0x294b, 0x843, 0xac89, 0x1881, 0x1, 0x1, 
	0x841, 0x1, 0x5a49, 0x39c7, 0x210b, 0x2909, 0x1, 0x1, 0x1, 0x18c7, 0x4a53, 0x3147, 0x8b8b, 0x1, 0x3, 0x1, 
	0x841, 0x3, 0x1081, 0x3983, 0x294b, 0x1, 0x1, 0x1, 0x1, 0x1, 0x318d, 0x5a8b, 0x3985, 0x1, 0x1, 0x1, 
	0x841, 0x3983, 0x843, 0x841, 0x294b, 0x1, 0x1, 0x1, 0x1, 0x1, 0x294b, 0x3147, 0x1, 0x841, 0x841, 0x1, 
	0x1, 0x4183, 0x6243, 0x3, 0x2109, 0x1, 0x1, 0x1, 0x1, 0x1, 0x2109, 0x18c7, 0x843, 0x1043, 0x841, 0x841, 
	0x1, 0x843, 0x8b43, 0x3145, 0x1085, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1085, 0x18c7, 0x1043, 0x843, 0x3981, 0x1081, 
	0x1, 0x3, 0x3983, 0x6285, 0x1087, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1085, 0x18c7, 0x3, 0x5203, 0x7303, 0x1, 
	0x1, 0x43, 0x1083, 0x7b03, 0x2949, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1085, 0x18c7, 0x843, 0x9bc3, 0x3143, 0x1, 
	0x1, 0x843, 0x843, 0x7b03, 0x3147, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1083, 0x843, 0x20c3, 0xb483, 0x1883, 0x1, 
	0x843, 0x3, 0x843, 0x8b83, 0x2945, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1083, 0x843, 0x3983, 0xac43, 0x1, 0x1, 
};

/* 8 x 16  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short Sm1shoes_b_txt[] = {
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x18c7, 0x18c7, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x803, 0x2109, 0x39cf, 0x294b, 0x18c7, 0x843, 
	0x1, 0x1, 0x1, 0x1, 0x883, 0x2109, 0x298d, 0x39cf, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x3981, 0x41c1, 0x3143, 
	0x1, 0x1, 0x841, 0x1881, 0x1, 0x3981, 0x6281, 0x6281, 
	0x1, 0x1, 0x2901, 0xbcc3, 0x9bc3, 0x4181, 0x1881, 0x841, 
	0x1, 0x1, 0x1, 0x20c1, 0x72c1, 0xac43, 0xac43, 0xac43, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1081, 0x3141, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
};

/* 8 x 32  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short Sshoes_bottom_txt[] = {
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x41, 0x3203, 0x2a03, 0x881, 0x1, 0x1, 
	0x1, 0x1, 0x3205, 0x3285, 0x19c3, 0x1101, 0x1, 0x1, 
	0x1, 0x1, 0x3245, 0x5b87, 0x5347, 0x3245, 0x1, 0x1, 
	0x1, 0x10c1, 0x4b47, 0x5387, 0x5bc7, 0x3245, 0x1, 0x1, 
	0x1, 0x881, 0x42c7, 0x7c89, 0x7449, 0x4b07, 0x881, 0x1, 
	0x1, 0x29c5, 0x63c9, 0x6c09, 0x6c09, 0x3285, 0x41, 0x1, 
	0x1, 0x8c1, 0x3245, 0x63c7, 0x5b87, 0x6c0b, 0x2143, 0x1, 
	0x1, 0x31c5, 0x744d, 0x42c5, 0x3a85, 0x2a05, 0x10c3, 0x1, 
	0x1, 0x8c1, 0x63c9, 0x4b07, 0x42c7, 0x9d8f, 0x2983, 0x1, 
	0x1, 0x31c5, 0x6c0b, 0x63c9, 0x5347, 0x3a87, 0x2183, 0x1, 
	0x1, 0x881, 0x5bc9, 0x5b89, 0x6c49, 0x958f, 0x4285, 0x1, 
	0x1, 0x10c1, 0x5b89, 0x640b, 0x5309, 0x3a87, 0x3205, 0x1, 
	0x1, 0x41, 0x5b89, 0x6389, 0x7c4d, 0x954f, 0x5347, 0x1, 
	0x1, 0x10c1, 0x5b87, 0x63cb, 0x4ac7, 0x3a45, 0x42c7, 0x1, 
	0x1, 0x881, 0x5b87, 0x5b87, 0x744d, 0x954f, 0x63cb, 0x1, 
	0x1, 0x31c5, 0x6409, 0x6389, 0x4ac7, 0x3a45, 0x5349, 0x10c3, 
	0x1, 0x1943, 0x5b89, 0x5b89, 0x744d, 0x954f, 0x640b, 0x841, 
	0x1, 0x6c0b, 0x744b, 0x63c9, 0x4b07, 0x3205, 0x5b87, 0x2143, 
	0x41, 0x2a05, 0x5b89, 0x5b89, 0x744b, 0x954d, 0x6c0b, 0x1103, 
	0x1903, 0x954d, 0x5bc7, 0x63cb, 0x4b09, 0x3205, 0x63cb, 0x31c5, 
	0x10c3, 0x2a45, 0x5347, 0x4b07, 0x744d, 0x954f, 0x6409, 0x1103, 
	0x29c5, 0x958d, 0x5bc9, 0x4b05, 0x42c5, 0x3a47, 0x63c9, 0x31c5, 
	0x1903, 0x3245, 0x5347, 0x5347, 0x6c09, 0x8d4d, 0x63c9, 0x41, 
	0x2143, 0x954d, 0x63c9, 0x5b89, 0x42c7, 0x3245, 0x42c7, 0x841, 
	0x1083, 0x3245, 0x5347, 0x5b87, 0x744d, 0x954f, 0x5b49, 0x1, 
	0x883, 0x84cb, 0x63c9, 0x5b87, 0x4ac7, 0x3a85, 0x1943, 0x1, 
	0x1, 0x2185, 0x5347, 0x5b47, 0x744b, 0x8d4d, 0x2985, 0x1, 
	0x1, 0x52c9, 0x63c9, 0x5b89, 0x4ac7, 0x3a47, 0x841, 0x1, 
	0x1, 0x843, 0x63cb, 0x5b87, 0x7c8b, 0x2985, 0x1, 0x1, 
	0x1, 0x1, 0x883, 0x530b, 0x2987, 0x841, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
};

