#include<ultra64.h>

extern Vtx c0_man2_v[];
extern Vtx c0_man2_vmcur[];
extern Tri c0_man2_tri[];
extern Lights1 c0_man2_material[];
extern Mtx c0_man2_matrix[];

extern unsigned short beach_br_txt[];
extern unsigned short check_f1_txt[];
extern unsigned short check_f2_txt[];
extern unsigned short cross1_txt[];
extern unsigned short goal_f1_txt[];
extern unsigned short goal_f2_txt[];
extern unsigned short green1_2_txt[];
extern unsigned short green_d_txt[];
extern unsigned short pole2_txt[];
extern unsigned short rock_2_2_txt[];
extern unsigned short rock_3_txt[];
extern unsigned short roof_gr1_txt[];
extern unsigned short roof_gr2_txt[];
extern unsigned short sabitetu1_txt[];
extern unsigned short saku1_txt[];
extern unsigned short start_f1_txt[];
extern unsigned short start_f2_txt[];
extern unsigned short tree1_txt[];
extern unsigned short tube_l1_2_txt[];
extern unsigned short tube_light1_txt[];
extern unsigned short tube_light2_txt[];
extern unsigned short wall13_tw_2_txt[];
extern unsigned short wall17_d_txt[];
extern unsigned short wall_bk1_txt[];
extern unsigned short wall_bk2_txt[];
extern unsigned short wall_br1_txt[];
extern unsigned short wall_gr2_txt[];
extern unsigned short wall_gr4_txt[];
extern unsigned short wall_rock_2_txt[];
extern unsigned short wall_wd1_txt[];
extern unsigned short wall_wd2_txt[];
extern unsigned short wall_wd3_2_txt[];
extern unsigned short wall_wd4_txt[];
extern unsigned short wall_wh1_txt[];
extern unsigned short wave_f1_txt[];
extern unsigned short wave_f2_txt[];
extern unsigned short window_a1_txt[];
extern unsigned short window_a2_txt[];
extern unsigned short window3_txt[];
extern unsigned short road1_txt[];
extern unsigned short b_nin64_6_txt[];
extern unsigned short b_wave_1_txt[];
extern unsigned short cm_js1_1_txt[];
extern unsigned short cm_js1_2_txt[];
extern unsigned short cm_js2_1_txt[];
extern unsigned short cm_js2_2_txt[];
extern unsigned short cm_kw1_1_txt[];
extern unsigned short cm_kw2_1_txt[];
extern unsigned short cm_kw2_2_txt[];
extern unsigned short cm_kw3_1_txt[];
extern unsigned short cm_kw3_2_txt[];
extern unsigned short cm_kw4_1_txt[];
extern unsigned short cm_kw4_2_txt[];
extern unsigned short cm_kw5_1_txt[];
extern unsigned short cm_kw5_2_txt[];
extern unsigned short cm_kz1_1_txt[];
extern unsigned short cm_kz1_2_txt[];
extern unsigned short corner_flag1_txt[];
extern unsigned short display_txt[];
extern unsigned short fence8_txt[];
extern unsigned short fence9_txt[];
extern unsigned short fence_bw_txt[];
extern unsigned short fence_by_txt[];
extern unsigned short fence_gr_txt[];
extern unsigned short fence_pole1_txt[];
extern unsigned short fence_pole2_txt[];
extern unsigned short fence_rw_txt[];
extern unsigned short i_beach_txt[];
extern unsigned short i_beach2_txt[];
extern unsigned short i_coral_txt[];
extern unsigned short i_coral_txt[];
extern unsigned short i_coral2_txt[];
extern unsigned short i_coral3_txt[];
extern unsigned short i_cottage_1_txt[];
extern unsigned short i_cottage_10_txt[];
extern unsigned short i_cottage_11_txt[];
extern unsigned short i_cottage_12_txt[];
extern unsigned short i_cottage_13_txt[];
extern unsigned short i_cottage_2_txt[];
extern unsigned short i_cottage_3_txt[];
extern unsigned short i_cottage_4_txt[];
extern unsigned short i_cottage_5_txt[];
extern unsigned short i_cottage_6_txt[];
extern unsigned short i_cottage_7_txt[];
extern unsigned short i_cottage_8_txt[];
extern unsigned short i_cottage_9_txt[];
extern unsigned short i_green2_txt[];
extern unsigned short i_green_1_txt[];
extern unsigned short i_green_3_txt[];
extern unsigned short i_green_4_txt[];
extern unsigned short i_green_5_txt[];
extern unsigned short i_kyaku1_txt[];
extern unsigned short i_kyaku2_txt[];
extern unsigned short i_palm_1_txt[];
extern unsigned short i_palm_4_txt[];
extern unsigned short i_rock_1_txt[];
extern unsigned short i_rock_2_txt[];
extern unsigned short i_rock_3_txt[];
extern unsigned short i_roof_1_txt[];
extern unsigned short i_roof_2_txt[];
extern unsigned short i_roof_3_txt[];
extern unsigned short i_roof_4_txt[];
extern unsigned short i_wall1_txt[];
extern unsigned short kw_js_3_txt[];
extern unsigned short kw_kw_3_txt[];
extern unsigned short man_endo_txt[];
extern unsigned short man_kane_txt[];
extern unsigned short man_kanno_txt[];
extern unsigned short man_kimra_txt[];
extern unsigned short man_man1_txt[];
extern unsigned short man_man2_txt[];
extern unsigned short man_man3_txt[];
extern unsigned short man_man5_txt[];
extern unsigned short man_man6_txt[];
extern unsigned short man_nakamura_txt[];
extern unsigned short man_oota_txt[];
extern unsigned short man_oyazi_txt[];
extern unsigned short man_shimuzu_txt[];
extern unsigned short man_takahasi_txt[];
extern unsigned short man_takano_txt[];
extern unsigned short man_wata_txt[];
extern unsigned short nintendo64_f1_txt[];
extern unsigned short nintendo64_f2_txt[];
extern unsigned short palm_r1_txt[];
extern unsigned short palm_r2_txt[];
extern unsigned short road_1_txt[];
extern unsigned short roof_1_txt[];
extern unsigned short start_bak_txt[];
extern unsigned short start_base1_txt[];
extern unsigned short start_base2_txt[];
extern unsigned short start_base3_txt[];
extern unsigned short start_base4_txt[];
extern unsigned short uturn_txt[];
extern unsigned short b_nin64_1_txt[];
extern unsigned short b_nin64_2_txt[];
extern unsigned short b_nin64_3_txt[];
extern unsigned short b_nin64_4_txt[];
extern unsigned short b_nin64_5_txt[];
extern unsigned short check_bouy_txt[];
extern unsigned short check_rope_txt[];
extern unsigned short start_base_txt[];
extern unsigned short start_pole_txt[];
extern unsigned short bridge1_txt[];
extern unsigned short green1_rgb_txt[];
extern unsigned short roof1_txt[];
extern unsigned short roof2_txt[];
extern unsigned short side1_txt[];
extern unsigned short veranda1_txt[];
extern unsigned short wall10_txt[];
extern unsigned short wall13_txt[];
extern unsigned short wall15_txt[];
extern unsigned short wall16_txt[];
extern unsigned short wall17_txt[];
extern unsigned short wall18_txt[];
extern unsigned short wall2_txt[];
extern unsigned short wall4_txt[];
extern unsigned short wall5_txt[];
extern unsigned short wall6_txt[];
extern unsigned short wall7_txt[];
extern unsigned short wall8_txt[];
extern unsigned short wall9_txt[];
extern unsigned short water1_txt[];
extern unsigned short window1_txt[];
extern unsigned short window2_txt[];
extern unsigned short wlight0_txt[];
extern unsigned short wlight1_txt[];
extern unsigned short wlight2_txt[];
extern unsigned short wlight3_txt[];
extern unsigned short fence1_txt[];
extern unsigned short fence2_txt[];
extern unsigned short fence3_txt[];
extern unsigned short fence4_txt[];
extern unsigned short fence5_txt[];
extern unsigned short fence6_txt[];
extern unsigned short fence7_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 */


/* ======== g1 ======== */

static	Gfx c0_man2_grp_g1T[]={

	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,20,40,0,0,G_TX_CLAMP,5,0,G_TX_CLAMP,6,0),
	gs_Nin_LoadTextureImage(man_man2_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,20,40,0,7),

	gsSPVertex(&c0_man2_v[0], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSPEndDisplayList(),
}; /* g1 */ 

/* ======== db ======== */

Gfx c0_man2_modelT[]={
	gsSPDisplayList(c0_man2_grp_g1T),
	gsSPEndDisplayList(),
}; /* db */ 

Gfx c0_man2_model[] = {
	gsSPEndDisplayList()
};

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 4 vertices */
Vtx c0_man2_v[]={
	{ 20,80,0,0, 640, 0,  255, 255, 255, 255 /* face color */  },   /* v0 used p1/V1 1 times */
	{ -20,80,0,0, 0, 0,  255, 255, 255, 255 /* face color */  },   /* v1 used p1/V2 1 times */
	{ -20,0,0,0, 0, 1280,  255, 255, 255, 255 /* face color */  },   /* v2 used p1/V3 1 times */
	{ 20,0,0,0, 640, 1280,  255, 255, 255, 255 /* face color */  },   /* v3 used p1/V4 1 times */
};


/*   0 vertices */
/* 20 x 40  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short man_man2_txt[] = {
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf7b6, 0xf6ef, 0xf734, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xeee9, 0xcccd, 0xc44d, 0xcc13, 0xc4e3, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf776, 0xa3c9, 0x9303, 0xab09, 0xd38b, 0xcbcf, 0xf778, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xd66f, 0x5a05, 0x6203, 0x8205, 0xcb51, 0x89c7, 0xcd67, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xdef6, 0x49c9, 0x8acf, 0xaacb, 0xcb4d, 0xab51, 0xe6b5, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xbda9, 0xa2cb, 0xcacb, 0xcb47, 0xab4d, 0xef38, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xceb3, 0xa353, 0xb2cb, 0x92c5, 0xc521, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfe3b, 0xcb2f, 0x7ad5, 0x9313, 0x7a4f, 0xbda9, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfe79, 0xfa31, 0xf9ab, 0xba5d, 0x5b1b, 0x42d9, 0x6b9b, 0xef78, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfbf3, 0xf8ad, 0xf963, 0xf921, 0xb9e5, 0x7add, 0x9361, 0xe5f5, 0xfffe, 0xfffc, 0xdef6, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xffbc, 0xfa67, 0xf8e7, 0xf8db, 0xf899, 0xf8db, 0xf1dd, 0xe21f, 0xe3eb, 0xfffe, 0x94a3, 0x4a13, 0xd675, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfef8, 0xf9a5, 0xf8e3, 0xf91b, 0xe8d5, 0xf159, 0xfa21, 0xf921, 0xf21f, 0xbda9, 0x2189, 0x5299, 0xef3a, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfe79, 0xf9a9, 0xf8dd, 0xf919, 0xe895, 0xf0d7, 0xf8d7, 0xf0d3, 0xf397, 0xbc53, 0x734f, 0x941b, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfe39, 0xf8e5, 0xf9a5, 0xf9a1, 0xe855, 0xe895, 0xf113, 0xfb13, 0xf48d, 0xd495, 0xd5e9, 0xef36, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xe675, 0xaa21, 0xb9dd, 0xda17, 0xe20f, 0xe2cb, 0xd34b, 0xd34d, 0xa2cb, 0xef34, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xeef3, 0xab4f, 0x9a87, 0xa287, 0xaa85, 0xa203, 0x9945, 0xa8cd, 0x9111, 0xef7a, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xddeb, 0x9a4d, 0x8187, 0x8949, 0xa0c9, 0xc08d, 0xd051, 0xa913, 0xef38, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xc9d7, 0xd08d, 0xc889, 0xd88f, 0xe04d, 0xd88d, 0xb9d5, 0xef38, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xff38, 0xe0d1, 0xe84f, 0xe04b, 0xe04d, 0xe08b, 0xc08d, 0xbba1, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfdb1, 0xf84d, 0xf085, 0xe149, 0xe8c9, 0xf0c9, 0xd8c9, 0xa213, 0xdeb5, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfceb, 0xf005, 0xda05, 0xdacd, 0xf08d, 0xf88d, 0xe885, 0xb14d, 0xcdef, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf463, 0xf849, 0xf0c5, 0xf083, 0xf847, 0xf847, 0xe8c7, 0xb109, 0xc56b, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfd6b, 0xf849, 0xf887, 0xf883, 0xf847, 0xf047, 0xe0c7, 0xa0c5, 0xc529, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xffba, 0xe9cf, 0xf085, 0xf0c5, 0xe8c5, 0xd885, 0xd107, 0x98c5, 0xd5ad, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf4e9, 0xf84b, 0xe8c9, 0xd0c7, 0xd0c9, 0xc8c7, 0xa0c5, 0xcce7, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xff7a, 0xf151, 0xf08b, 0xd107, 0xd0cb, 0xc8cd, 0xa8c9, 0xc461, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf425, 0xe04d, 0xa907, 0xa907, 0xc0cb, 0xb0c5, 0xcd25, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xffbc, 0xf425, 0xc10b, 0xb149, 0xb18d, 0xa1c9, 0xd5a9, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xef34, 0xaa8f, 0xb30f, 0xa30f, 0x8a89, 0xcda9, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xeeef, 0xc457, 0xc3d3, 0xabcf, 0x8b0b, 0x82cd, 0xe6f3, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xe6af, 0xcc55, 0xc3d1, 0xc413, 0x9b0b, 0x830d, 0xe6f5, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xee69, 0xcc13, 0xccd9, 0x930f, 0x7a89, 0xbd65, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffc, 0xe5a1, 0xdcdb, 0xabd3, 0x7247, 0x8b4f, 0xf778, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xff74, 0xede5, 0xd55f, 0x8acb, 0x7247, 0xc565, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xee2b, 0xe561, 0xee29, 0xb417, 0x8b0d, 0xac57, 0xffba, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xe5e7, 0xd499, 0xde29, 0xac15, 0xa3d3, 0xef33, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf6b1, 0xd5a7, 0x930d, 0xcda5, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xbd21, 0x8ac9, 0xe6b1, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xb49b, 0x8acb, 0xac15, 0xcda7, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xd62d, 0x934f, 0x8b0d, 0x930f, 0xb49d, 0xffbc, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
};

