#include<ultra64.h>

extern Vtx ManLthigh_c_v[];
extern Vtx ManLthigh_c_vmcur[];
extern Tri ManLthigh_c_tri[];
extern Lights1 ManLthigh_c_material[];
extern Mtx ManLthigh_c_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
******************************************************************************/

Gfx ManLthigh_c_model[]={

	gsSPTexture(65535, 65535,0, 0, 1),
	gsDPPipeSync(),
	gsDPSetCombineMode(G_CC_MODULATERGBA,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(Sm1momo_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,32,0,7),

	gsSPVertex(&ManLthigh_c_v[0], 12, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 5, 0),
	gsSP1Triangle(3, 6, 4, 0),
	gsSP1Triangle(7, 8, 9, 0),
	gsSP1Triangle(8, 10, 9, 0),
	gsSP1Triangle(9, 11, 7, 0),
	gsSPEndDisplayList(),
};

Gfx *ManLthigh_c_modelT = NULL;

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 12 vertices */

/******************************************************************************
	vertex & texture
******************************************************************************/


/******************************************************************************
	vertex & texture
******************************************************************************/


/******************************************************************************
	vertex & texture
******************************************************************************/


/******************************************************************************
	vertex & texture
******************************************************************************/

Vtx ManLthigh_c_v[]={
	{ 28,-39,18,0, 98, 628, 85, -52, -65, 0 },   /* v0 p2/V1 used 1 times */ 
	{ -30,-37,4,0, 394, 641, -47, -102, -37, 0 },   /* v1 p2/V2 used 1 times */ 
	{ -3,34,5,0, 256, 1024, 15, 104, -57, 0 },   /* v2 p2/V3 used 1 times */ 
	{ -30,-37,4,0, 236, 991, -47, -102, -37, 0 },   /* v3 p3/V1 used 2 times */ 
	{ 28,-1,184,0, 0, 0, 87, -61, 54, 0 },   /* v4 p3/V3 used 2 times */ 
	{ -28,-1,185,0, 238, 0, -105, 41, 38, 0 },   /* v5 p4/V3 used 1 times */ 
	{ 28,-39,18,0, -9, 913, 85, -52, -65, 0 },   /* v6 p3/V2 used 1 times */ 
	{ -28,-1,185,0, 264, 0, -105, 41, 38, 0 },   /* v7 p5/V3 used 2 times */ 
	{ 28,-1,184,0, 503, 0, 87, -61, 54, 0 },   /* v8 p6/V1 used 2 times */ 
	{ -3,34,5,0, 382, 1038, 15, 104, -57, 0 },   /* v9 p5/V1 used 3 times */ 
	{ 28,-39,18,0, 512, 881, 85, -52, -65, 0 },   /* v10 p6/V2 used 1 times */ 
	{ -30,-37,4,0, 267, 967, -47, -102, -37, 0 },   /* v11 p5/V2 used 1 times */ 
};


/*   0 vertices */
/* 16 x 32  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short Sm1momo_txt[] = {
	0x20a1, 0x30e7, 0x2871, 0x2873, 0x30b3, 0x38f3, 0x4975, 0x51b5, 0x49b5, 0x4137, 0x51ab, 0xee87, 0xf6cd, 0x5a27, 0x182b, 0x1821, 
	0x20a1, 0x1861, 0x2871, 0x2873, 0x30b3, 0x4175, 0x51b5, 0x51f5, 0x49b5, 0x4177, 0x51eb, 0xff59, 0xffa7, 0x51e9, 0x206f, 0x2065, 
	0x30ad, 0x3931, 0x30b3, 0x2873, 0x38f3, 0x49b5, 0x51f5, 0x3971, 0x3933, 0x4175, 0x51ad, 0xef57, 0xffa1, 0x4169, 0x2871, 0x28ab, 
	0x392d, 0x392b, 0x2871, 0x30b3, 0x4975, 0x51f7, 0x396b, 0x84d, 0x185d, 0x4135, 0x4175, 0xb515, 0xc593, 0x30af, 0x30b3, 0x30ad, 
	0x30e9, 0x2067, 0x2871, 0x3935, 0x51b7, 0x49b3, 0x108f, 0x8c1, 0x843, 0x30eb, 0x4137, 0x496d, 0x4129, 0x2871, 0x30b3, 0x30f1, 
	0x416f, 0x28a9, 0x2871, 0x4975, 0x59f9, 0x3125, 0xc1, 0x1285, 0x1203, 0x1855, 0x4135, 0x30b5, 0x2033, 0x2873, 0x3073, 0x30b1, 
	0x49b5, 0x4171, 0x30b1, 0x51b7, 0x51f7, 0x18d3, 0xa41, 0xbc3, 0xb43, 0x907, 0x38ef, 0x4135, 0x2873, 0x2873, 0x2873, 0x30b3, 
	0x30b3, 0x4135, 0x4133, 0x59f7, 0x416f, 0x947, 0x13c3, 0x1485, 0x1485, 0x201, 0x20a1, 0x4977, 0x30b3, 0x2873, 0x2873, 0x2873, 
	0x2873, 0x2873, 0x4975, 0x5a39, 0x291f, 0xa83, 0x1cc7, 0x1d07, 0x1d07, 0xb81, 0x10d1, 0x49b7, 0x4135, 0x2873, 0x2873, 0x2873, 
	0x2873, 0x30b3, 0x51b7, 0x51f7, 0x110f, 0x1403, 0x25c9, 0x2e09, 0x2589, 0x14c5, 0x987, 0x4171, 0x4977, 0x2873, 0x2873, 0x2873, 
	0x2873, 0x38f3, 0x5a37, 0x416d, 0x9c5, 0x1d07, 0x2e4b, 0x36cb, 0x2e4b, 0x2587, 0xa41, 0x3125, 0x51b7, 0x30b3, 0x2871, 0x2873, 
	0x30b3, 0x4135, 0x6239, 0x291f, 0x12c3, 0x25c9, 0x370d, 0x3f8d, 0x370d, 0x2e49, 0x13c3, 0x2117, 0x51f9, 0x38f3, 0x2873, 0x2873, 
	0x38f3, 0x51b5, 0x5a37, 0x1911, 0x1443, 0x2e4b, 0x3f4d, 0x3f8d, 0x3f8d, 0x36cb, 0x1cc5, 0x118b, 0x49b3, 0x4975, 0x2873, 0x30b3, 
	0x4135, 0x59f7, 0x49f1, 0x987, 0x1d47, 0x370b, 0x3f8d, 0x3f8d, 0x3f8d, 0x374d, 0x2609, 0x1245, 0x396b, 0x51b7, 0x30b3, 0x30b3, 
	0x4975, 0x5a39, 0x3165, 0xa83, 0x2609, 0x374d, 0x3f8d, 0x3fcd, 0x3fcd, 0x3f8d, 0x2e8b, 0x1383, 0x291d, 0x51f9, 0x4135, 0x30b3, 
	0x49b5, 0x5a37, 0x1915, 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