#include<ultra64.h>
extern Vtx CN_Boss_Dotai_v[];
extern Lights1 CN_Boss_Dotai_material[];

extern unsigned short CN_BossTX_01_txt[];
extern unsigned short CN_BossTX_02_txt[];
extern unsigned short CN_BossTX_04_txt[];
extern unsigned short CN_BossTX_05_txt[];
extern unsigned short CN_BossTX_06_txt[];
extern unsigned short CN_BossTX_07_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


/* ======== o1 ======== */

Gfx CN_Boss_Dotai[]={

	gsDPLoadTextureBlock(CN_BossTX_05_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_MIRROR, G_TX_MIRROR, 5, 5, G_TX_NOLOD, G_TX_NOLOD ),


	gsSPVertex(&CN_Boss_Dotai_v[0], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 2, 1, 0),



	gsDPLoadTextureBlock(CN_BossTX_01_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 5, 5, G_TX_NOLOD, G_TX_NOLOD ),


	gsSPVertex(&CN_Boss_Dotai_v[4], 32, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 3, 1, 0),
	gsSP1Triangle(4, 3, 0, 0),
	gsSP1Triangle(4, 5, 3, 0),
	gsSP1Triangle(2, 1, 6, 0),
	gsSP1Triangle(7, 5, 4, 0),
	gsSP1Triangle(7, 6, 5, 0),
	gsSP1Triangle(2, 6, 7, 0),
	gsSP1Triangle(8, 9, 10, 0),
	gsSP1Triangle(10, 11, 8, 0),
	gsSP1Triangle(12, 13, 14, 0),
	gsSP1Triangle(15, 16, 17, 0),
	gsSP1Triangle(15, 18, 19, 0),
	gsSP1Triangle(20, 21, 22, 0),
	gsSP1Triangle(23, 24, 22, 0),
	gsSP1Triangle(25, 26, 27, 0),
	gsSP1Triangle(28, 27, 26, 0),
	gsSP1Triangle(29, 30, 31, 0),



	gsDPLoadTextureBlock(CN_BossTX_04_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 5, 5, G_TX_NOLOD, G_TX_NOLOD ),


	gsSPVertex(&CN_Boss_Dotai_v[36], 6, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 5, 0),



	gsDPLoadTextureBlock(CN_BossTX_06_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 5, 5, G_TX_NOLOD, G_TX_NOLOD ),


	gsSPVertex(&CN_Boss_Dotai_v[42], 16, 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, 11, 9, 0),
	gsSP1Triangle(12, 13, 14, 0),
	gsSP1Triangle(12, 14, 15, 0),



	gsDPLoadTextureBlock(CN_BossTX_07_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 5, 5, G_TX_NOLOD, G_TX_NOLOD ),


	gsSPVertex(&CN_Boss_Dotai_v[58], 16, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 3, 1, 0),
	gsSP1Triangle(4, 5, 6, 0),
	gsSP1Triangle(4, 7, 5, 0),
	gsSP1Triangle(8, 9, 10, 0),
	gsSP1Triangle(8, 10, 11, 0),
	gsSP1Triangle(12, 13, 14, 0),
	gsSP1Triangle(12, 14, 15, 0),



	gsDPLoadTextureBlock(CN_BossTX_02_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 16, 0, G_TX_MIRROR, G_TX_MIRROR, 4, 4, G_TX_NOLOD, G_TX_NOLOD ),


	gsSPVertex(&CN_Boss_Dotai_v[74], 23, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 5, 0),
	gsSP1Triangle(3, 6, 7, 0),
	gsSP1Triangle(8, 9, 10, 0),
	gsSP1Triangle(11, 12, 13, 0),
	gsSP1Triangle(14, 15, 16, 0),
	gsSP1Triangle(17, 18, 19, 0),
	gsSP1Triangle(20, 21, 22, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 

#undef G_CC_PRIMSHADE
#undef gs_Nin_LoadTextureImage
#undef gs_Nin_SetUpTileDescrip
/*  97 vertices */
Vtx CN_Boss_Dotai_v[]={
	{  25,48,75,0,0,1023,-39,13,111,255 },   /* v0 used p8/V1 1 times */ 
	{  24,-50,75,0,1024,1023,-10,-21,116,255 },   /* v1 used p8/V2 2 times */ 
	{  103,47,75,0,0,0,11,22,116,255 },   /* v2 used p8/V3 2 times */ 
	{  102,-51,75,0,1024,0,40,-12,111,255 },   /* v3 used p2/V1 1 times */ 
	{  3,38,-27,0,768,2130,-112,39,0,255 },   /* v4 used p23/V1 3 times */ 
	{  2,-77,-53,0,1024,1023,-75,-70,-59,255 },   /* v5 used p23/V3 3 times */ 
	{  2,-39,-27,0,768,1392,-118,1,0,255 },   /* v6 used p30/V1 3 times */ 
	{  3,76,-53,0,1024,2498,-82,64,-58,255 },   /* v7 used p23/V2 3 times */ 
	{  3,38,27,0,256,2130,-98,67,0,255 },   /* v8 used p26/V1 3 times */ 
	{  3,76,53,0,0,2498,-74,72,58,255 },   /* v9 used p25/V2 3 times */ 
	{  2,-77,53,0,0,1023,-83,-62,57,255 },   /* v10 used p21/V2 3 times */ 
	{  2,-39,27,0,256,1392,-118,1,0,255 },   /* v11 used p22/V1 3 times */ 
	{  125,75,-53,0,0,0,105,43,-36,255 },   /* v12 used p20/V3 2 times */ 
	{  125,75,53,0,0,1024,94,54,49,255 },   /* v13 used p7/V2 1 times */ 
	{  123,-79,53,0,1024,1024,119,0,0,255 },   /* v14 used p20/V1 2 times */ 
	{  123,-79,-53,0,1024,0,93,-55,-50,255 },   /* v15 used p20/V2 1 times */ 
	{  64,119,0,0,512,1741,1,119,0,255 },   /* v16 used p45/V1 1 times */ 
	{  125,75,53,0,1024,1023,94,54,49,255 },   /* v17 used p45/V2 1 times */ 
	{  125,75,-53,0,0,1023,105,43,-36,255 },   /* v18 used p45/V3 1 times */ 
	{  62,-121,0,0,512,441,0,-118,0,255 },   /* v19 used p44/V1 2 times */ 
	{  123,-79,53,0,0,-141,40,-86,70,255 },   /* v20 used p43/V2 1 times */ 
	{  2,-77,53,0,0,1024,-83,-62,57,255 },   /* v21 used p43/V3 1 times */ 
	{  2,-77,-53,0,1024,1024,-75,-70,-59,255 },   /* v22 used p44/V2 1 times */ 
	{  123,-79,-53,0,1024,-141,93,-55,-50,255 },   /* v23 used p44/V3 1 times */ 
	{  125,75,-53,0,0,-141,105,43,-36,255 },   /* v24 used p42/V1 1 times */ 
	{  3,76,-53,0,0,1023,-82,64,-58,255 },   /* v25 used p42/V2 1 times */ 
	{  64,119,0,0,512,441,1,119,0,255 },   /* v26 used p42/V3 2 times */ 
	{  3,76,53,0,1024,1023,-74,72,58,255 },   /* v27 used p1/V1 1 times */ 
	{  125,75,53,0,1024,-141,94,54,49,255 },   /* v28 used p1/V2 1 times */ 
	{  25,48,-75,0,1024,1023,-15,33,-114,255 },   /* v29 used p4/V1 1 times */ 
	{  103,47,-75,0,1024,0,28,8,-116,255 },   /* v30 used p4/V2 2 times */ 
	{  24,-50,-75,0,0,1023,-27,-7,-116,255 },   /* v31 used p4/V3 2 times */ 
	{  102,-51,-75,0,0,0,16,-32,-114,255 },   /* v32 used p9/V1 1 times */ 
	{  123,-79,-53,0,1024,1024,93,-55,-50,255 },   /* v33 used p3/V1 1 times */ 
	{  123,-79,53,0,0,1024,40,-86,70,255 },   /* v34 used p3/V2 1 times */ 
	{  62,-121,0,0,512,1741,0,-118,0,255 },   /* v35 used p3/V3 1 times */ 
	{  64,119,0,0,512,306,1,119,0,255 },   /* v36 used p46/V1 1 times */ 
	{  3,76,-53,0,0,1023,-82,64,-58,255 },   /* v37 used p46/V2 1 times */ 
	{  3,76,53,0,1024,1023,-74,72,58,255 },   /* v38 used p46/V3 1 times */ 
	{  2,-77,53,0,0,1023,-83,-62,57,255 },   /* v39 used p41/V1 1 times */ 
	{  2,-77,-53,0,1024,1024,-75,-70,-59,255 },   /* v40 used p41/V2 1 times */ 
	{  62,-121,0,0,512,306,0,-118,0,255 },   /* v41 used p41/V3 1 times */ 
	{  102,-51,-75,0,1024,1023,16,-32,-114,255 },   /* v42 used p40/V1 2 times */ 
	{  123,-79,-53,0,1313,557,93,-55,-50,255 },   /* v43 used p39/V2 1 times */ 
	{  2,-77,-53,0,-288,557,-75,-70,-59,255 },   /* v44 used p40/V2 2 times */ 
	{  24,-50,-75,0,0,1023,-27,-7,-116,255 },   /* v45 used p40/V3 1 times */ 
	{  25,48,-75,0,1024,1023,-15,33,-114,255 },   /* v46 used p37/V1 2 times */ 
	{  3,76,-53,0,1313,557,-82,64,-58,255 },   /* v47 used p37/V2 1 times */ 
	{  125,75,-53,0,-288,557,105,43,-36,255 },   /* v48 used p37/V3 2 times */ 
	{  103,47,-75,0,0,1024,28,8,-116,255 },   /* v49 used p38/V3 1 times */ 
	{  24,-50,-75,0,1049,980,-27,-7,-116,255 },   /* v50 used p11/V1 2 times */ 
	{  3,76,-53,0,-262,657,-82,64,-58,255 },   /* v51 used p11/V2 2 times */ 
	{  25,48,-75,0,25,980,-15,33,-114,255 },   /* v52 used p11/V3 1 times */ 
	{  2,-77,-53,0,1338,657,-75,-70,-59,255 },   /* v53 used p10/V2 1 times */ 
	{  103,47,-75,0,920,979,28,8,-116,255 },   /* v54 used p12/V1 2 times */ 
	{  125,75,-53,0,1209,655,105,43,-36,255 },   /* v55 used p12/V2 1 times */ 
	{  123,-79,-53,0,-391,655,93,-55,-50,255 },   /* v56 used p12/V3 2 times */ 
	{  102,-51,-75,0,-103,979,16,-32,-114,255 },   /* v57 used p13/V3 1 times */ 
	{  2,-39,-27,0,1024,0,0,-118,0,255 },   /* v58 used p5/V1 2 times */ 
	{  -49,-38,27,0,0,1024,0,-118,0,255 },   /* v59 used p5/V3 2 times */ 
	{  -49,-38,-27,0,1024,1024,0,-118,0,255 },   /* v60 used p6/V3 1 times */ 
	{  2,-39,27,0,0,0,0,-118,0,255 },   /* v61 used p5/V2 1 times */ 
	{  3,38,-27,0,1024,0,0,0,-120,255 },   /* v62 used p31/V1 2 times */ 
	{  -49,-38,-27,0,0,1024,0,0,-120,255 },   /* v63 used p31/V3 2 times */ 
	{  -48,38,-27,0,1024,1024,0,0,-120,255 },   /* v64 used p32/V3 1 times */ 
	{  2,-39,-27,0,0,0,0,0,-120,255 },   /* v65 used p31/V2 1 times */ 
	{  3,38,27,0,1024,0,-98,67,0,255 },   /* v66 used p19/V1 2 times */ 
	{  3,38,-27,0,0,0,-112,39,0,255 },   /* v67 used p18/V2 1 times */ 
	{  -48,38,-27,0,0,1024,1,119,0,255 },   /* v68 used p19/V2 2 times */ 
	{  -48,38,27,0,1024,1024,1,119,0,255 },   /* v69 used p19/V3 1 times */ 
	{  2,-39,27,0,1024,0,0,0,119,255 },   /* v70 used p28/V1 2 times */ 
	{  3,38,27,0,0,0,0,0,119,255 },   /* v71 used p27/V2 1 times */ 
	{  -48,38,27,0,0,1024,0,0,119,255 },   /* v72 used p28/V2 2 times */ 
	{  -49,-38,27,0,1024,1024,0,0,119,255 },   /* v73 used p28/V3 1 times */ 
	{  24,-50,75,0,512,0,-10,-21,116,255 },   /* v74 used p15/V1 1 times */ 
	{  123,-79,53,0,0,511,40,-86,70,255 },   /* v75 used p15/V2 1 times */ 
	{  102,-51,75,0,512,512,40,-12,111,255 },   /* v76 used p15/V3 1 times */ 
	{  103,47,75,0,512,0,11,22,116,255 },   /* v77 used p16/V1 2 times */ 
	{  3,76,53,0,0,512,-74,72,58,255 },   /* v78 used p17/V2 1 times */ 
	{  25,48,75,0,512,511,-39,13,111,255 },   /* v79 used p17/V3 1 times */ 
	{  125,75,53,0,512,511,94,54,49,255 },   /* v80 used p16/V2 1 times */ 
	{  3,76,53,0,0,511,-74,72,58,255 },   /* v81 used p16/V3 1 times */ 
	{  102,-51,75,0,0,511,40,-12,111,255 },   /* v82 used p33/V1 1 times */ 
	{  123,-79,53,0,512,511,40,-86,70,255 },   /* v83 used p33/V2 1 times */ 
	{  125,75,53,0,512,0,94,54,49,255 },   /* v84 used p33/V3 1 times */ 
	{  102,-51,75,0,512,0,40,-12,111,255 },   /* v85 used p34/V1 1 times */ 
	{  125,75,53,0,0,511,94,54,49,255 },   /* v86 used p34/V2 1 times */ 
	{  103,47,75,0,512,520,11,22,116,255 },   /* v87 used p34/V3 1 times */ 
	{  25,48,75,0,0,511,-39,13,111,255 },   /* v88 used p35/V1 1 times */ 
	{  3,76,53,0,512,512,-74,72,58,255 },   /* v89 used p35/V2 1 times */ 
	{  2,-77,53,0,512,0,-83,-62,57,255 },   /* v90 used p35/V3 1 times */ 
	{  25,48,75,0,0,512,-39,13,111,255 },   /* v91 used p36/V1 1 times */ 
	{  2,-77,53,0,512,0,-83,-62,57,255 },   /* v92 used p36/V2 1 times */ 
	{  24,-50,75,0,512,512,-10,-21,116,255 },   /* v93 used p36/V3 1 times */ 
	{  24,-50,75,0,0,512,-10,-21,116,255 },   /* v94 used p14/V1 1 times */ 
	{  2,-77,53,0,512,511,-83,-62,57,255 },   /* v95 used p14/V2 1 times */ 
	{  123,-79,53,0,512,0,40,-86,70,255 },   /* v96 used p14/V3 1 times */ 
};
