#include<ultra64.h>

extern Vtx jetc_2_map_an_v[];
extern Vtx jetc_2_map_an_vmcur[];
extern Tri jetc_2_map_an_tri[];
extern Lights1 jetc_2_map_an_material[];
extern Mtx jetc_2_map_an_matrix[];

/*   0 vertices */
/*   2 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV2	1
Lights1 jetc_2_map_an_material[]={
	{{255/AMBDIV2,0/AMBDIV2,42/AMBDIV2,0,255/AMBDIV2,0/AMBDIV2,42/AMBDIV2,0},{255,0,42,0,255,0,42,0,LDIRX,LDIRY,LDIRZ,0}},
	{{255/AMBDIV2,255/AMBDIV2,255/AMBDIV2,0,255/AMBDIV2,255/AMBDIV2,255/AMBDIV2,0},{255,255,255,0,255,255,255,0,LDIRX,LDIRY,LDIRZ,0}},
};
static Vtx jetc_2_map_an_v[]={
	{ -99,0,1685,0, 0, 0, 0,120,0,255 },   /* v0 used p5989/V1 1 times */
	{ 867,0,1426,0, 0, 0, 0,120,0,255 },   /* v1 used p5989/V2 1 times */
	{ 255,0,1072,0, 0, 0, 0,120,0,255 },   /* v2 used p5989/V3 1 times */
	{ 577,0,1504,0, 0, 0, 0,120,0,255 },   /* v3 used p5988/V1 1 times */
	{ 191,0,1607,0, 0, 0, 0,120,0,255 },   /* v4 used p5988/V2 1 times */
	{ 314,0,2066,0, 0, 0, 0,120,0,255 },   /* v5 used p5988/V3 1 times */
	{ 700,0,1963,0, 0, 0, 0,120,0,255 },   /* v6 used p5988/V4 1 times */
	{ 1600,0,3200,0, 0, 0, 0,120,0,255 },   /* v7 used p5981/V1 1 times */
	{ 1665,0,2800,0, 0, 0, 0,120,0,255 },   /* v8 used p5981/V2 1 times */
	{ 1216,0,2650,0, 0, 0, 0,120,0,255 },   /* v9 used p5981/V3 1 times */
	{ 1000,0,3000,0, 0, 0, 0,120,0,255 },   /* v10 used p5981/V4 1 times */
	{ 1000,0,3000,0, 0, 0, 0,120,0,255 },   /* v11 used p5980/V1 1 times */
	{ 1216,0,2650,0, 0, 0, 0,120,0,255 },   /* v12 used p5980/V2 1 times */
	{ 950,0,2384,0, 0, 0, 0,120,0,255 },   /* v13 used p5980/V3 1 times */
	{ 600,0,2600,0, 0, 0, 0,120,0,255 },   /* v14 used p5980/V4 1 times */
	{ 600,0,2600,0, 0, 0, 0,120,0,255 },   /* v15 used p5979/V1 1 times */
	{ 950,0,2384,0, 0, 0, 0,120,0,255 },   /* v16 used p5979/V2 1 times */
	{ 700,0,1963,0, 0, 0, 0,120,0,255 },   /* v17 used p5979/V3 1 times */
	{ 314,0,2066,0, 0, 0, 0,120,0,255 },   /* v18 used p5979/V4 1 times */
	{ 0,0,-1000,0, 0, 0, 0,120,0,255 },   /* v19 used p5977/V1 1 times */
	{ 400,0,-1028,0, 0, 0, 0,120,0,255 },   /* v20 used p5977/V2 1 times */
	{ 189,0,-2507,0, 0, 0, 0,120,0,255 },   /* v21 used p5977/V3 1 times */
	{ -200,0,-2400,0, 0, 0, 0,120,0,255 },   /* v22 used p5977/V4 1 times */
	{ 3000,0,3200,0, 0, 0, 0,120,0,255 },   /* v23 used p5982/V1 1 times */
	{ 3065,0,2800,0, 0, 0, 0,120,0,255 },   /* v24 used p5982/V2 1 times */
	{ 1665,0,2800,0, 0, 0, 0,120,0,255 },   /* v25 used p5982/V3 1 times */
	{ 1600,0,3200,0, 0, 0, 0,120,0,255 },   /* v26 used p5982/V4 1 times */
	{ 3000,0,4400,0, 0, 0, 0,120,0,255 },   /* v27 used p5987/V1 1 times */
	{ 3126,0,4779,0, 0, 0, 0,120,0,255 },   /* v28 used p5987/V2 1 times */
	{ 3816,0,4550,0, 0, 0, 0,120,0,255 },   /* v29 used p5987/V3 1 times */
	{ 3600,0,4200,0, 0, 0, 0,120,0,255 },   /* v30 used p5987/V4 1 times */
	{ 3600,0,4200,0, 0, 0, 0,120,0,255 },   /* v31 used p5986/V1 1 times */
	{ 3816,0,4550,0, 0, 0, 0,120,0,255 },   /* v32 used p5986/V2 1 times */
	{ 4200,0,4066,0, 0, 0, 0,120,0,255 },   /* v33 used p5986/V3 1 times */
	{ 3800,0,3900,0, 0, 0, 0,120,0,255 },   /* v34 used p5986/V4 1 times */
	{ 3800,0,3900,0, 0, 0, 0,120,0,255 },   /* v35 used p5985/V1 1 times */
	{ 4200,0,4066,0, 0, 0, 0,120,0,255 },   /* v36 used p5985/V2 1 times */
	{ 4200,0,3534,0, 0, 0, 0,120,0,255 },   /* v37 used p5985/V3 1 times */
	{ 3800,0,3700,0, 0, 0, 0,120,0,255 },   /* v38 used p5985/V4 1 times */
	{ 3800,0,3700,0, 0, 0, 0,120,0,255 },   /* v39 used p5984/V1 1 times */
	{ 3600,0,3400,0, 0, 0, 0,120,0,255 },   /* v40 used p5983/V1 1 times */
	{ 0,0,400,0, 0, 0, 0,120,0,255 },   /* v41 used p5978/V1 1 times */
	{ -2600,0,-4400,0, 0, 0, 0,120,0,255 },   /* v42 used p5971/V1 1 times */
	{ -2400,0,4000,0, 0, 0, 0,120,0,255 },   /* v43 used p5969/V1 1 times */
	{ -2200,0,4200,0, 0, 0, 0,120,0,255 },   /* v44 used p5968/V1 1 times */
	{ -1800,0,4400,0, 0, 0, 0,120,0,255 },   /* v45 used p5967/V1 1 times */
	{ -2600,0,3600,0, 0, 0, 0,120,0,255 },   /* v46 used p5970/V1 1 times */
	{ -200,0,-2400,0, 0, 0, 0,120,0,255 },   /* v47 used p5976/V1 1 times */
	{ -1600,0,-5000,0, 0, 0, 0,120,0,255 },   /* v48 used p5974/V1 1 times */
	{ -1200,0,-4800,0, 0, 0, 0,120,0,255 },   /* v49 used p5975/V1 1 times */
	{ -2000,0,-5000,0, 0, 0, 0,120,0,255 },   /* v50 used p5973/V1 1 times */
	{ -2400,0,-4800,0, 0, 0, 0,120,0,255 },   /* v51 used p5972/V1 1 times */
	{ 4200,0,3534,0, 0, 0, 0,120,0,255 },   /* v52 used p5984/V2 1 times */
	{ 3816,0,3050,0, 0, 0, 0,120,0,255 },   /* v53 used p5984/V3 1 times */
	{ 3600,0,3400,0, 0, 0, 0,120,0,255 },   /* v54 used p5984/V4 1 times */
	{ 3816,0,3050,0, 0, 0, 0,120,0,255 },   /* v55 used p5983/V2 1 times */
	{ 3065,0,2800,0, 0, 0, 0,120,0,255 },   /* v56 used p5983/V3 1 times */
	{ 3000,0,3200,0, 0, 0, 0,120,0,255 },   /* v57 used p5983/V4 1 times */
	{ 400,0,400,0, 0, 0, 0,120,0,255 },   /* v58 used p5978/V2 1 times */
	{ 400,0,-1028,0, 0, 0, 0,120,0,255 },   /* v59 used p5978/V3 1 times */
	{ 0,0,-1000,0, 0, 0, 0,120,0,255 },   /* v60 used p5978/V4 1 times */
	{ -3000,0,-4494,0, 0, 0, 0,120,0,255 },   /* v61 used p5971/V2 1 times */
	{ -3000,0,3694,0, 0, 0, 0,120,0,255 },   /* v62 used p5971/V3 1 times */
	{ -2600,0,3600,0, 0, 0, 0,120,0,255 },   /* v63 used p5971/V4 1 times */
	{ -2729,0,4237,0, 0, 0, 0,120,0,255 },   /* v64 used p5969/V2 1 times */
	{ -2437,0,4529,0, 0, 0, 0,120,0,255 },   /* v65 used p5969/V3 1 times */
	{ -2200,0,4200,0, 0, 0, 0,120,0,255 },   /* v66 used p5969/V4 1 times */
	{ -2437,0,4529,0, 0, 0, 0,120,0,255 },   /* v67 used p5968/V2 1 times */
	{ -1894,0,4800,0, 0, 0, 0,120,0,255 },   /* v68 used p5968/V3 1 times */
	{ -1800,0,4400,0, 0, 0, 0,120,0,255 },   /* v69 used p5968/V4 1 times */
	{ -1894,0,4800,0, 0, 0, 0,120,0,255 },   /* v70 used p5967/V2 1 times */
	{ 3126,0,4779,0, 0, 0, 0,120,0,255 },   /* v71 used p5967/V3 1 times */
	{ 3000,0,4400,0, 0, 0, 0,120,0,255 },   /* v72 used p5967/V4 1 times */
	{ -3000,0,3694,0, 0, 0, 0,120,0,255 },   /* v73 used p5970/V2 1 times */
	{ -2729,0,4237,0, 0, 0, 0,120,0,255 },   /* v74 used p5970/V3 1 times */
	{ -2400,0,4000,0, 0, 0, 0,120,0,255 },   /* v75 used p5970/V4 1 times */
	{ 189,0,-2507,0, 0, 0, 0,120,0,255 },   /* v76 used p5976/V2 1 times */
	{ -888,0,-5091,0, 0, 0, 0,120,0,255 },   /* v77 used p5976/V3 1 times */
	{ -1200,0,-4800,0, 0, 0, 0,120,0,255 },   /* v78 used p5976/V4 1 times */
	{ -1506,0,-5400,0, 0, 0, 0,120,0,255 },   /* v79 used p5974/V2 1 times */
	{ -2094,0,-5400,0, 0, 0, 0,120,0,255 },   /* v80 used p5974/V3 1 times */
	{ -2000,0,-5000,0, 0, 0, 0,120,0,255 },   /* v81 used p5974/V4 1 times */
	{ -888,0,-5091,0, 0, 0, 0,120,0,255 },   /* v82 used p5975/V2 1 times */
	{ -1506,0,-5400,0, 0, 0, 0,120,0,255 },   /* v83 used p5975/V3 1 times */
	{ -1600,0,-5000,0, 0, 0, 0,120,0,255 },   /* v84 used p5975/V4 1 times */
	{ -2094,0,-5400,0, 0, 0, 0,120,0,255 },   /* v85 used p5973/V2 1 times */
	{ -2698,0,-5098,0, 0, 0, 0,120,0,255 },   /* v86 used p5973/V3 1 times */
	{ -2400,0,-4800,0, 0, 0, 0,120,0,255 },   /* v87 used p5973/V4 1 times */
	{ -2698,0,-5098,0, 0, 0, 0,120,0,255 },   /* v88 used p5972/V2 1 times */
	{ -3000,0,-4494,0, 0, 0, 0,120,0,255 },   /* v89 used p5972/V3 1 times */
	{ -2600,0,-4400,0, 0, 0, 0,120,0,255 },   /* v90 used p5972/V4 1 times */
};





#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 */


/* ======== g47 ======== */


/* ======== db ======== */

Gfx jetc_2_map_an_model[]={

	gsSPNumLights(NUMLIGHTS_1),
	gsSPLight((&jetc_2_map_an_material[1].l[0]),1),
	gsSPLight((&jetc_2_map_an_material[1].a),2),
	gsDPPipeSync(),
	gsDPSetCombineMode(G_CC_SHADE,G_CC_SHADE),
	gsSPTexture(1, 1,0, 0, 0),
	gsSPVertex(&jetc_2_map_an_v[0], 7, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 5, 0),
	gsSP1Triangle(3, 5, 6, 0),

	gsSPLight((&jetc_2_map_an_material[0].l[0]),1),
	gsSPLight((&jetc_2_map_an_material[0].a),2),
	gsSPVertex(&jetc_2_map_an_v[7], 32, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSP1Triangle(4, 5, 6, 0),
	gsSP1Triangle(4, 6, 7, 0),
	gsSP1Triangle(8, 9, 10, 0),
	gsSP1Triangle(8, 10, 11, 0),
	gsSP1Triangle(12, 13, 14, 0),
	gsSP1Triangle(12, 14, 15, 0),
	gsSP1Triangle(16, 17, 18, 0),
	gsSP1Triangle(16, 18, 19, 0),
	gsSP1Triangle(20, 21, 22, 0),
	gsSP1Triangle(20, 22, 23, 0),
	gsSP1Triangle(24, 25, 26, 0),
	gsSP1Triangle(24, 26, 27, 0),
	gsSP1Triangle(28, 29, 30, 0),
	gsSP1Triangle(28, 30, 31, 0),
	gsSPVertex(&jetc_2_map_an_v[39], 8, 0),
	gsSPVertex(&jetc_2_map_an_v[52], 24, 8),
	gsSP1Triangle(0, 8, 9, 0),
	gsSP1Triangle(0, 9, 10, 0),
	gsSP1Triangle(1, 11, 12, 0),
	gsSP1Triangle(1, 12, 13, 0),
	gsSP1Triangle(2, 14, 15, 0),
	gsSP1Triangle(2, 15, 16, 0),
	gsSP1Triangle(3, 17, 18, 0),
	gsSP1Triangle(3, 18, 19, 0),
	gsSP1Triangle(4, 20, 21, 0),
	gsSP1Triangle(4, 21, 22, 0),
	gsSP1Triangle(5, 23, 24, 0),
	gsSP1Triangle(5, 24, 25, 0),
	gsSP1Triangle(6, 26, 27, 0),
	gsSP1Triangle(6, 27, 28, 0),
	gsSP1Triangle(7, 29, 30, 0),
	gsSP1Triangle(7, 30, 31, 0),
	gsSPVertex(&jetc_2_map_an_v[47], 5, 0),
	gsSPVertex(&jetc_2_map_an_v[76], 15, 5),
	gsSP1Triangle(0, 5, 6, 0),
	gsSP1Triangle(0, 6, 7, 0),
	gsSP1Triangle(1, 8, 9, 0),
	gsSP1Triangle(1, 9, 10, 0),
	gsSP1Triangle(2, 11, 12, 0),
	gsSP1Triangle(2, 12, 13, 0),
	gsSP1Triangle(3, 14, 15, 0),
	gsSP1Triangle(3, 15, 16, 0),
	gsSP1Triangle(4, 17, 18, 0),
	gsSP1Triangle(4, 18, 19, 0),
	gsSPEndDisplayList(),
}; /* db */ 

Gfx jetc_2_map_an_modelT[] = {
	gsSPEndDisplayList()
};

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 91 vertices */


