#include<ultra64.h>

extern Vtx c0_man5_v[];
extern Vtx c0_man5_vmcur[];
extern Tri c0_man5_tri[];
extern Lights1 c0_man5_material[];
extern Mtx c0_man5_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_man5_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_man6_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,20,40,0,7),

	gsSPVertex(&c0_man5_v[0], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSPEndDisplayList(),
}; /* g1 */ 

/* ======== db ======== */

Gfx c0_man5_modelT[]={
	gsSPDisplayList(c0_man5_grp_g1T),
	gsSPEndDisplayList(),
}; /* db */ 

Gfx c0_man5_model[] = {
	gsSPEndDisplayList()
};

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 4 vertices */
Vtx c0_man5_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_man6_txt[] = {
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffc, 0xc62d, 0x94a3, 0xae2f, 0xefbc, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0x8c5d, 0x4a49, 0x4a4b, 0x528d, 0xace1, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf7bc, 0x6b15, 0x82cf, 0x8b53, 0x5a49, 0x8353, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xbc9d, 0xab4f, 0xb3d3, 0x8b0f, 0x8b99, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xdd23, 0xcbd5, 0xc3d7, 0xcc1b, 0xddef, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xff7c, 0xc45b, 0xab0d, 0xb311, 0xd4e3, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf6f6, 0xd4a9, 0x9b13, 0xab91, 0xa34f, 0x930b, 0xc4a1, 0xef7a, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xe77a, 0x8c9d, 0xba51, 0xb993, 0x3ac5, 0x4ac9, 0x82cf, 0x830b, 0x9209, 0xbad7, 0xcdeb, 0xfffc, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0x7c9f, 0x5207, 0xc993, 0x724d, 0x1bcb, 0x2311, 0x2a8b, 0x22c9, 0x4a85, 0xb98f, 0x8a0d, 0x8521, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xef78, 0x328b, 0x59c7, 0x9191, 0x334b, 0x138f, 0x230f, 0x2b8f, 0x230d, 0x330b, 0x8a0b, 0xa191, 0x3b0f, 0xd737, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xb5ed, 0x1a47, 0x2a0b, 0x320b, 0x130b, 0x1b4f, 0x1b09, 0x5c13, 0x2b0d, 0x234f, 0x4acd, 0x59cd, 0x228d, 0x8d67, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0x7c9d, 0xa49, 0x11cb, 0x1209, 0x1289, 0x1acb, 0x2ac9, 0x7c57, 0x2a8b, 0x1b0f, 0x22cf, 0x1a0b, 0x1a4d, 0x4b9b, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0x53d7, 0xa4b, 0x11c9, 0x1209, 0x124b, 0x128b, 0x228b, 0x4b51, 0x1acd, 0x128d, 0x224d, 0x11c7, 0x1a8d, 0x224f, 0xceb5, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xa569, 0x42cd, 0x4a8f, 0x4ad3, 0xa89, 0x128d, 0x12cb, 0x128b, 0x1acf, 0x1a8d, 0x224b, 0x19c9, 0x1249, 0x228f, 0xbe31, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xc5a7, 0x9391, 0x7b57, 0x5b57, 0xa89, 0x128d, 0x128d, 0x1acd, 0x1acd, 0x1a8d, 0x2a4b, 0x428d, 0x428d, 0xa525, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xcd65, 0x9b8f, 0x7395, 0x2a8f, 0x128d, 0x128d, 0x128b, 0x1a8d, 0x1a8d, 0x228d, 0x2209, 0x4a4b, 0x9b93, 0xb4e1, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xd5e9, 0x9b91, 0x6bd9, 0x22cf, 0x1a8d, 0x128d, 0x128d, 0x1a8d, 0x1a8d, 0x22cf, 0x224d, 0x2a07, 0x8b0f, 0xac5b, 0xf7fc, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xeef3, 0x9b91, 0x6c1b, 0x22d3, 0x1a8d, 0x1a8d, 0x128f, 0x128d, 0x128d, 0x1acd, 0x228d, 0x2a09, 0x628b, 0xac5b, 0xf7bc, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xf776, 0x93d3, 0x7c9f, 0x2b13, 0x124d, 0x1a8d, 0x1a8d, 0x124d, 0x1a8d, 0x1a8b, 0x1a8f, 0x228b, 0x5209, 0xac19, 0xe738, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xdda9, 0xa357, 0x9d69, 0x2b13, 0x1a8d, 0x128d, 0x128d, 0x124d, 0x1a4d, 0x124b, 0x1a8f, 0x228d, 0x41c7, 0xa3d9, 0xdeb5, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xdce7, 0xdadf, 0xa4a3, 0x22cf, 0x128f, 0x124b, 0x128b, 0x124d, 0x124b, 0x124d, 0x124d, 0x1a4b, 0x5a8b, 0xb399, 0xcded, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xd5e9, 0xab4d, 0x9419, 0x32d1, 0x124f, 0x124d, 0x124d, 0x1a8d, 0x1a4b, 0x1a4b, 0x124b, 0x1a49, 0x62c9, 0xab93, 0xcdeb, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xe6f3, 0x828d, 0x8c1b, 0x32d1, 0x128d, 0x1a4d, 0x124d, 0x124d, 0x1a4d, 0x1a4d, 0x124b, 0x1a49, 0x4a47, 0x8b13, 0xe6f3, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xd671, 0xdeb3, 0x32cf, 0xa8b, 0x1a4d, 0x1a4d, 0x124b, 0x1a4d, 0x1a0d, 0x220b, 0x324b, 0x4a4d, 0xce2f, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0x6bdb, 0x4313, 0x3291, 0x224d, 0x42d3, 0x2a0d, 0x31cd, 0x320f, 0x4291, 0x52d5, 0xf7bc, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffc, 0x7bd7, 0x6b91, 0x52d3, 0x4251, 0x7bdd, 0x4251, 0x3a4f, 0x424f, 0x4a91, 0x6359, 0xf7bc, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf7bc, 0x6b95, 0x5313, 0x52d5, 0x424f, 0x94a3, 0x5b17, 0x4293, 0x4251, 0x3a4f, 0x5b15, 0xefba, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf77a, 0x6357, 0x5315, 0x52d3, 0x94a1, 0xef78, 0x945f, 0x424d, 0x6357, 0x841f, 0xb5ed, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf7bc, 0x8bdb, 0x72d1, 0x83d7, 0xfffe, 0xfffe, 0x93d7, 0x6a8d, 0x945f, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xe6f5, 0x7acd, 0x6a09, 0xad23, 0xfffe, 0xf7bc, 0x8b53, 0x7b0f, 0x9c5d, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xcdeb, 0x728b, 0x6249, 0xb5a7, 0xfffe, 0xf7ba, 0x8b53, 0x7acd, 0xad25, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xbd67, 0x6a89, 0x6289, 0xc62b, 0xfffe, 0xf77a, 0x8b93, 0x7b0f, 0xce6f, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xbd67, 0x5a07, 0x7351, 0xf7ba, 0xfffe, 0xf77a, 0x8351, 0x8b95, 0xf77a, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xbda5, 0x5a03, 0xa4e1, 0xfffe, 0xfffe, 0xf7bc, 0x8353, 0x9c1b, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xa499, 0x6a87, 0xdef5, 0xfffe, 0xfffe, 0xfffe, 0x8b95, 0xace1, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0x9415, 0x9c5b, 0xfffe, 0xfffe, 0xfffe, 0xf7bc, 0x8353, 0xbda9, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffc, 0x8bd5, 0xb525, 0xfffe, 0xfffe, 0xfffe, 0xe736, 0x72cf, 0xb565, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xc5eb, 0x7b51, 0xa4a1, 0xfffe, 0xfffe, 0xfffe, 0xe736, 0x7b11, 0x8b97, 0xf7bc, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xe736, 0x7b11, 0x72cf, 0xc5eb, 0xfffe, 0xfffe, 0xfffe, 0xe6f5, 0x8b13, 0x82d1, 0xdeb3, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
};

