#include<ultra64.h>
extern Vtx CN_Bill_04_v[];
extern Lights1 CN_Bill_04_material[];

extern unsigned short CN_Bill_05_txt[];
extern unsigned short CN_Bill_08_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_Bill_04[]={

	gsDPLoadTextureBlock(CN_Bill_05_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 64, 0, G_TX_CLAMP | G_TX_NOMIRROR, G_TX_CLAMP | G_TX_NOMIRROR, 5, 6, G_TX_NOLOD, G_TX_NOLOD ),


	gsSPVertex(&CN_Bill_04_v[0], 12, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 3, 1, 0),
	gsSP1Triangle(4, 5, 6, 0),
	gsSP1Triangle(4, 6, 7, 0),
	gsSP1Triangle(8, 9, 10, 0),
	gsSP1Triangle(8, 11, 9, 0),



	gsDPLoadTextureBlock(CN_Bill_08_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_Bill_04_v[12], 30, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 5, 0),
	gsSP1Triangle(6, 7, 8, 0),
	gsSP1Triangle(9, 10, 11, 0),
	gsSP1Triangle(12, 10, 13, 0),
	gsSP1Triangle(14, 10, 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(27, 28, 29, 0),
	gsSPVertex(&CN_Bill_04_v[42], 7, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSP1Triangle(0, 3, 4, 0),
	gsSP1Triangle(1, 5, 6, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 

#undef G_CC_PRIMSHADE
#undef gs_Nin_LoadTextureImage
#undef gs_Nin_SetUpTileDescrip
/*  49 vertices */
Vtx CN_Bill_04_v[]={
	{  112,0,112,0,1024,2048,120,0,0,255 },   /* v0 used p6/V1 2 times */ 
	{  112,610,-112,0,0,0,119,8,0,255 },   /* v1 used p6/V2 2 times */ 
	{  112,610,112,0,1024,0,119,10,0,255 },   /* v2 used p6/V3 1 times */ 
	{  112,0,-112,0,0,2048,120,0,0,255 },   /* v3 used p5/V2 1 times */ 
	{  -112,0,112,0,0,2048,0,0,119,255 },   /* v4 used p4/V1 2 times */ 
	{  112,0,112,0,1024,2048,0,0,119,255 },   /* v5 used p3/V2 1 times */ 
	{  112,610,112,0,1024,0,0,8,118,255 },   /* v6 used p4/V2 2 times */ 
	{  -112,610,112,0,0,0,0,0,119,255 },   /* v7 used p4/V3 1 times */ 
	{  -112,0,-112,0,1024,2048,-119,0,0,255 },   /* v8 used p2/V1 2 times */ 
	{  -112,610,112,0,0,0,-118,13,4,255 },   /* v9 used p2/V2 2 times */ 
	{  -112,610,-112,0,1024,0,-118,10,0,255 },   /* v10 used p2/V3 1 times */ 
	{  -112,0,112,0,0,2048,-119,0,0,255 },   /* v11 used p1/V2 1 times */ 
	{  56,670,56,0,0,1024,99,65,16,255 },   /* v12 used p17/V1 1 times */ 
	{  112,610,-112,0,1024,0,119,8,0,255 },   /* v13 used p17/V2 1 times */ 
	{  56,670,-56,0,1024,1024,111,44,0,255 },   /* v14 used p17/V3 1 times */ 
	{  -56,670,-56,0,0,1024,-106,53,0,255 },   /* v15 used p15/V1 1 times */ 
	{  -112,610,112,0,1024,0,-118,13,4,255 },   /* v16 used p15/V2 1 times */ 
	{  -56,670,56,0,1024,1024,-110,44,0,255 },   /* v17 used p15/V3 1 times */ 
	{  56,670,56,0,0,1024,99,65,16,255 },   /* v18 used p16/V1 1 times */ 
	{  112,610,112,0,1024,1024,119,10,0,255 },   /* v19 used p16/V2 1 times */ 
	{  112,610,-112,0,1024,0,119,8,0,255 },   /* v20 used p16/V3 1 times */ 
	{  56,750,-56,0,1024,0,116,28,0,255 },   /* v21 used p21/V1 1 times */ 
	{  0,820,0,0,1024,1024,0,110,45,255 },   /* v22 used p21/V2 3 times */ 
	{  56,750,56,0,0,1024,90,67,41,255 },   /* v23 used p21/V3 1 times */ 
	{  -56,750,56,0,1024,0,-115,28,0,255 },   /* v24 used p18/V1 1 times */ 
	{  -56,750,-56,0,0,1024,-111,42,0,255 },   /* v25 used p18/V3 1 times */ 
	{  56,750,56,0,1024,0,90,67,41,255 },   /* v26 used p11/V1 1 times */ 
	{  -56,750,56,0,0,1024,0,42,111,255 },   /* v27 used p11/V3 1 times */ 
	{  -56,670,-56,0,0,1024,-106,53,0,255 },   /* v28 used p19/V1 2 times */ 
	{  -56,670,56,0,1024,1023,-110,44,0,255 },   /* v29 used p19/V2 1 times */ 
	{  -56,750,56,0,1024,0,-115,28,0,255 },   /* v30 used p19/V3 2 times */ 
	{  -56,750,-56,0,0,0,-111,42,0,255 },   /* v31 used p20/V3 1 times */ 
	{  -56,670,56,0,0,1023,0,53,106,255 },   /* v32 used p7/V1 2 times */ 
	{  56,670,56,0,1024,1024,0,0,119,255 },   /* v33 used p7/V2 1 times */ 
	{  56,750,56,0,1024,0,0,0,119,255 },   /* v34 used p7/V3 2 times */ 
	{  -56,750,56,0,0,0,0,42,111,255 },   /* v35 used p8/V3 1 times */ 
	{  -56,670,56,0,0,1024,0,53,106,255 },   /* v36 used p9/V1 1 times */ 
	{  -112,610,112,0,1024,1024,-118,13,4,255 },   /* v37 used p9/V2 1 times */ 
	{  112,610,112,0,1024,0,0,8,118,255 },   /* v38 used p9/V3 1 times */ 
	{  -56,670,56,0,0,1024,0,53,106,255 },   /* v39 used p10/V1 1 times */ 
	{  112,610,112,0,1024,0,0,8,118,255 },   /* v40 used p10/V2 1 times */ 
	{  56,670,56,0,1024,1024,99,65,16,255 },   /* v41 used p10/V3 1 times */ 
	{  56,670,56,0,0,1024,99,65,16,255 },   /* v42 used p12/V1 2 times */ 
	{  -56,670,-56,0,0,1024,-106,53,0,255 },   /* v43 used p14/V1 1 times */ 
	{  56,670,-56,0,1024,1023,111,44,0,255 },   /* v44 used p12/V2 1 times */ 
	{  56,750,-56,0,1024,0,116,28,0,255 },   /* v45 used p12/V3 2 times */ 
	{  56,750,56,0,0,0,90,67,41,255 },   /* v46 used p13/V3 1 times */ 
	{  -112,610,-112,0,1024,1024,-118,10,0,255 },   /* v47 used p14/V2 1 times */ 
	{  -112,610,112,0,1024,0,-118,13,4,255 },   /* v48 used p14/V3 1 times */ 
};
