#include "libforest/gbi_extensions.h"
#include "PR/gbi.h"
#include "evw_anime.h"
#include "c_keyframe.h"

u8 grl_1_skin_tex_txt[] = {
#include "assets/grl_1_skin_tex_txt.inc"
};

u8 grl_1_hair_tex_txt[] = {
#include "assets/grl_1_hair_tex_txt.inc"
};

u8 grl_1_shoe_tex_txt[] = {
#include "assets/grl_1_shoe_tex_txt.inc"
};

u8 grl_1_bottom_tex_txt[] = {
#include "assets/grl_1_bottom_tex_txt.inc"
};

u8 grl_1_foot_tex_txt[] = {
#include "assets/grl_1_foot_tex_txt.inc"
};

u8 grl_1_hole_tex_txt[] = {
#include "assets/grl_1_hole_tex_txt.inc"
};

Vtx grl_1_v[] = {
#include "assets/grl_1_v.inc"
};

Gfx head_grl_model[] = {
    gsSPMatrix(&anime_6_mdl[7], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
    gsSPVertex(grl_1_v, 6, 0),
    gsSPMatrix(&anime_6_mdl[12], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
    gsDPSetCombineLERP(TEXEL0, 0, SHADE, 0, 0, 0, 0, TEXEL0, PRIMITIVE, 0, COMBINED, 0, 0, 0, 0, COMBINED),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_4_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 32, 32, anime_3_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_REPEAT, GX_CLAMP, 0, 0),
    gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 508, 124),
    gsDPSetPrimColor(0, 128, 255, 255, 255, 255),
    gsSPVertex(&grl_1_v[6], 13, 6),
    gsSPNTrianglesInit_5b(9, 0, 6, 1, 2, 4, 7, 1, 9, 8),
    gsSPNTriangles_5b(0, 11, 10, 5, 3, 12, 3, 13, 14, 2, 15, 0),
    gsSPNTriangles_5b(2, 16, 17, 1, 18, 3, 0, 0, 0, 0, 0, 0),
    gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 1020, 124),
    gsSPVertex(&grl_1_v[19], 27, 0),
    gsSPNTrianglesInit_5b(27, 0, 1, 2, 3, 4, 5, 6, 7, 8),
    gsSPNTriangles_5b(9, 10, 6, 11, 12, 13, 14, 2, 1, 15, 16, 3),
    gsSPNTriangles_5b(17, 18, 10, 19, 15, 7, 0, 20, 7, 8, 21, 6),
    gsSPNTriangles_5b(22, 7, 6, 6, 10, 23, 7, 20, 8, 7, 15, 0),
    gsSPNTriangles_5b(6, 21, 9, 17, 11, 24, 25, 1, 3, 3, 1, 15),
    gsSPNTriangles_5b(10, 11, 17, 5, 25, 3, 11, 10, 9, 12, 11, 9),
    gsSPNTriangles_5b(0, 15, 1, 24, 13, 26, 1, 25, 14, 13, 24, 11),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_5_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 16, 16, grl_1_skin_tex_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsSPVertex(&grl_1_v[46], 28, 0),
    gsSPNTrianglesInit_5b(10, 0, 1, 2, 3, 1, 4, 0, 4, 1),
    gsSPNTriangles_5b(5, 6, 0, 7, 8, 9, 10, 11, 5, 10, 5, 2),
    gsSPNTriangles_5b(2, 5, 0, 8, 7, 10, 2, 8, 10, 0, 0, 0),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 32, 16, anime_2_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsSPNTrianglesInit_5b(18, 12, 13, 14, 15, 16, 17, 18, 19, 20),
    gsSPNTriangles_5b(21, 20, 19, 22, 19, 23, 20, 24, 25, 12, 21, 19),
    gsSPNTriangles_5b(14, 26, 21, 14, 21, 12, 20, 21, 26, 22, 17, 13),
    gsSPNTriangles_5b(13, 12, 22, 23, 15, 22, 17, 22, 15, 20, 27, 18),
    gsSPNTriangles_5b(26, 24, 20, 19, 22, 12, 25, 27, 20, 0, 0, 0),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 16, 16, grl_1_hair_tex_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsSPVertex(&grl_1_v[74], 18, 0),
    gsSPNTrianglesInit_5b(10, 0, 1, 2, 3, 4, 5, 6, 7, 8),
    gsSPNTriangles_5b(2, 9, 0, 10, 9, 11, 11, 12, 10, 13, 14, 15),
    gsSPNTriangles_5b(0, 9, 10, 8, 16, 6, 5, 17, 3, 0, 0, 0),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 32, 16, anime_1_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsSPVertex(&grl_1_v[92], 15, 0),
    gsSPNTrianglesInit_5b(13, 0, 1, 2, 3, 4, 5, 0, 6, 1),
    gsSPNTriangles_5b(7, 3, 8, 5, 8, 3, 7, 8, 9, 4, 6, 5),
    gsSPNTriangles_5b(10, 11, 12, 9, 11, 10, 9, 10, 7, 13, 12, 14),
    gsSPNTriangles_5b(1, 6, 4, 12, 11, 14, 0, 0, 0, 0, 0, 0),
    gsSPEndDisplayList(),
};

Gfx Rarm2_grl_model[] = {
    gsSPMatrix(&anime_6_mdl[10], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
    gsSPVertex(&grl_1_v[173], 4, 0),
    gsSPMatrix(&anime_6_mdl[11], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
    gsDPSetCombineLERP(TEXEL0, 0, SHADE, 0, 0, 0, 0, TEXEL0, PRIMITIVE, 0, COMBINED, 0, 0, 0, 0, COMBINED),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_5_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 16, 16, grl_1_skin_tex_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsDPSetPrimColor(0, 128, 255, 255, 255, 255),
    gsSPVertex(&grl_1_v[177], 25, 4),
    gsSPNTrianglesInit_5b(6, 2, 4, 5, 2, 0, 6, 3, 2, 7),
    gsSPNTriangles_5b(1, 3, 8, 2, 9, 10, 3, 11, 12, 0, 0, 0),
    gsSPNTrianglesInit_5b(19, 13, 14, 15, 16, 17, 18, 19, 20, 21),
    gsSPNTriangles_5b(22, 13, 17, 17, 23, 22, 20, 24, 21, 15, 18, 13),
    gsSPNTriangles_5b(18, 19, 16, 13, 25, 14, 26, 27, 28, 16, 27, 23),
    gsSPNTriangles_5b(23, 27, 26, 27, 16, 21, 21, 16, 19, 25, 13, 22),
    gsSPNTriangles_5b(23, 17, 16, 21, 28, 27, 17, 13, 18, 24, 28, 21),
    gsSPEndDisplayList(),
};

Gfx Rarm1_grl_model[] = {
    gsSPMatrix(&anime_6_mdl[7], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
    gsSPVertex(&grl_1_v[202], 4, 0),
    gsSPMatrix(&anime_6_mdl[10], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
    gsDPSetCombineLERP(TEXEL0, 0, SHADE, 0, 0, 0, 0, TEXEL0, PRIMITIVE, 0, COMBINED, 0, 0, 0, 0, COMBINED),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_4_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 32, 32, anime_3_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_REPEAT, GX_CLAMP, 0, 0),
    gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 252, 124),
    gsDPSetPrimColor(0, 128, 255, 255, 255, 255),
    gsSPVertex(&grl_1_v[206], 27, 4),
    gsSPNTrianglesInit_5b(10, 3, 4, 5, 0, 2, 6, 2, 7, 8),
    gsSPNTriangles_5b(2, 9, 10, 0, 11, 12, 3, 1, 13, 3, 14, 15),
    gsSPNTriangles_5b(2, 3, 16, 3, 17, 18, 2, 19, 20, 0, 0, 0),
    gsSPNTrianglesInit_5b(8, 21, 22, 23, 23, 24, 21, 25, 26, 27),
    gsSPNTriangles_5b(28, 23, 29, 27, 22, 25, 22, 21, 25, 23, 28, 24),
    gsSPNTriangles_5b(29, 30, 28, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_5_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 16, 16, grl_1_skin_tex_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsSPVertex(&grl_1_v[233], 6, 0),
    gsSPNTrianglesInit_5b(4, 0, 1, 2, 3, 1, 0, 2, 4, 0),
    gsSPNTriangles_5b(2, 5, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    gsSPEndDisplayList(),
};

Gfx Larm2_grl_model[] = {
    gsSPMatrix(&anime_6_mdl[8], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
    gsSPVertex(&grl_1_v[107], 4, 0),
    gsSPMatrix(&anime_6_mdl[9], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
    gsDPSetCombineLERP(TEXEL0, 0, SHADE, 0, 0, 0, 0, TEXEL0, PRIMITIVE, 0, COMBINED, 0, 0, 0, 0, COMBINED),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_5_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 16, 16, grl_1_skin_tex_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsDPSetPrimColor(0, 128, 255, 255, 255, 255),
    gsSPVertex(&grl_1_v[111], 25, 4),
    gsSPNTrianglesInit_5b(6, 2, 4, 5, 0, 2, 6, 2, 3, 7),
    gsSPNTriangles_5b(3, 1, 8, 2, 9, 10, 3, 11, 12, 0, 0, 0),
    gsSPNTrianglesInit_5b(19, 13, 14, 15, 16, 17, 18, 19, 20, 21),
    gsSPNTriangles_5b(17, 15, 22, 22, 23, 17, 19, 24, 20, 15, 16, 13),
    gsSPNTriangles_5b(18, 21, 16, 14, 25, 15, 26, 27, 28, 23, 27, 18),
    gsSPNTriangles_5b(28, 27, 23, 19, 18, 27, 21, 18, 19, 22, 15, 25),
    gsSPNTriangles_5b(18, 17, 23, 27, 26, 19, 16, 15, 17, 19, 26, 24),
    gsSPEndDisplayList(),
};

Gfx Larm1_grl_model[] = {
    gsSPMatrix(&anime_6_mdl[7], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
    gsSPVertex(&grl_1_v[136], 4, 0),
    gsSPMatrix(&anime_6_mdl[8], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
    gsDPSetCombineLERP(TEXEL0, 0, SHADE, 0, 0, 0, 0, TEXEL0, PRIMITIVE, 0, COMBINED, 0, 0, 0, 0, COMBINED),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_4_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 32, 32, anime_3_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_REPEAT, GX_CLAMP, 0, 0),
    gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 252, 124),
    gsDPSetPrimColor(0, 128, 255, 255, 255, 255),
    gsSPVertex(&grl_1_v[0x8c], 27, 4),
    gsSPNTrianglesInit_5b(10, 3, 4, 5, 2, 0, 6, 2, 7, 8),
    gsSPNTriangles_5b(2, 9, 10, 0, 11, 12, 1, 3, 13, 3, 14, 15),
    gsSPNTriangles_5b(3, 2, 16, 3, 17, 18, 2, 19, 20, 0, 0, 0),
    gsSPNTrianglesInit_5b(8, 21, 22, 23, 23, 24, 21, 25, 26, 27),
    gsSPNTriangles_5b(28, 21, 29, 27, 22, 25, 27, 23, 22, 24, 29, 21),
    gsSPNTriangles_5b(29, 30, 28, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_5_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 16, 16, grl_1_skin_tex_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsSPVertex(&grl_1_v[167], 6, 0),
    gsSPNTrianglesInit_5b(4, 0, 1, 2, 2, 1, 3, 2, 4, 0),
    gsSPNTriangles_5b(4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    gsSPEndDisplayList(),
};

Gfx chest_grl_model[] = {
    gsSPMatrix(anime_6_mdl, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
    gsSPVertex(&grl_1_v[239], 7, 0),
    gsSPMatrix(&anime_6_mdl[7], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
    gsDPSetCombineLERP(TEXEL0, 0, SHADE, 0, 0, 0, 0, TEXEL0, PRIMITIVE, 0, COMBINED, 0, 0, 0, 0, COMBINED),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_4_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 32, 32, anime_3_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_REPEAT, GX_CLAMP, 0, 0),
    gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 508, 124),
    gsDPSetPrimColor(0, 128, 255, 255, 255, 255),
    gsSPVertex(&grl_1_v[246], 20, 7),
    gsSPNTrianglesInit_5b(13, 4, 6, 7, 6, 8, 9, 3, 10, 11),
    gsSPNTriangles_5b(3, 12, 5, 2, 4, 13, 2, 14, 15, 3, 16, 17),
    gsSPNTriangles_5b(2, 18, 19, 5, 20, 21, 0, 2, 22, 4, 23, 24),
    gsSPNTriangles_5b(3, 1, 25, 5, 26, 6, 0, 0, 0, 0, 0, 0),
    gsSPEndDisplayList(),
};

Gfx Rfoot3_grl_model[] = {
    gsSPMatrix(&anime_6_mdl[5], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
    gsSPVertex(&grl_1_v[317], 4, 0),
    gsSPMatrix(&anime_6_mdl[6], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
    gsDPSetCombineLERP(TEXEL0, 0, SHADE, 0, 0, 0, 0, TEXEL0, PRIMITIVE, 0, COMBINED, 0, 0, 0, 0, COMBINED),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_5_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 16, 16, grl_1_shoe_tex_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsDPSetPrimColor(0, 128, 255, 255, 255, 255),
    gsSPVertex(&grl_1_v[321], 23, 4),
    gsSPNTrianglesInit_5b(9, 3, 4, 5, 3, 6, 7, 0, 3, 8),
    gsSPNTriangles_5b(3, 2, 9, 1, 0, 10, 2, 1, 11, 0, 12, 13),
    gsSPNTriangles_5b(2, 14, 15, 1, 16, 17, 0, 0, 0, 0, 0, 0),
    gsSPNTrianglesInit_5b(2, 18, 19, 20, 20, 19, 21, 0, 0, 0),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 16, 16, grl_1_bottom_tex_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsSPNTrianglesInit_5b(3, 22, 23, 24, 24, 25, 22, 23, 26, 24),
    gsSPEndDisplayList(),
};

Gfx Rffot2_grl_model[] = {
    gsSPMatrix(&anime_6_mdl[4], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
    gsSPVertex(&grl_1_v[344], 4, 0),
    gsSPMatrix(&anime_6_mdl[5], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
    gsDPSetCombineLERP(TEXEL0, 0, SHADE, 0, 0, 0, 0, TEXEL0, PRIMITIVE, 0, COMBINED, 0, 0, 0, 0, COMBINED),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_5_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 16, 16, grl_1_foot_tex_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsDPSetPrimColor(0, 128, 255, 255, 255, 255),
    gsSPVertex(&grl_1_v[348], 11, 4),
    gsSPNTrianglesInit_5b(7, 0, 4, 5, 0, 3, 6, 1, 7, 8),
    gsSPNTriangles_5b(2, 1, 9, 3, 2, 10, 3, 11, 12, 2, 13, 14),
    gsSPEndDisplayList(),
};

Gfx Rfoot1_grl_model[] = {
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
    gsDPSetCombineLERP(TEXEL0, 0, SHADE, 0, 0, 0, 0, TEXEL0, PRIMITIVE, 0, COMBINED, 0, 0, 0, 0, COMBINED),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_5_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 16, 16, grl_1_foot_tex_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsDPSetPrimColor(0, 128, 255, 255, 255, 255),
    gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
    gsSPVertex(&grl_1_v[359], 9, 0),
    gsSPNTrianglesInit_5b(7, 0, 1, 2, 3, 4, 5, 6, 3, 5),
    gsSPNTriangles_5b(5, 1, 6, 7, 4, 8, 4, 3, 8, 0, 6, 1),
    gsSPEndDisplayList(),
};

Gfx Lfoot3_grl_model[] = {
    gsSPMatrix(&anime_6_mdl[2], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
    gsSPVertex(&grl_1_v[266], 4, 0),
    gsSPMatrix(&anime_6_mdl[3], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
    gsDPSetCombineLERP(TEXEL0, 0, SHADE, 0, 0, 0, 0, TEXEL0, PRIMITIVE, 0, COMBINED, 0, 0, 0, 0, COMBINED),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_5_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 16, 16, grl_1_shoe_tex_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsDPSetPrimColor(0, 128, 255, 255, 255, 255),
    gsSPVertex(&grl_1_v[270], 23, 4),
    gsSPNTrianglesInit_5b(9, 3, 4, 5, 3, 6, 7, 3, 0, 8),
    gsSPNTriangles_5b(2, 3, 9, 0, 1, 10, 1, 2, 11, 0, 12, 13),
    gsSPNTriangles_5b(2, 14, 15, 1, 16, 17, 0, 0, 0, 0, 0, 0),
    gsSPNTrianglesInit_5b(2, 18, 19, 20, 21, 19, 18, 0, 0, 0),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 16, 16, grl_1_bottom_tex_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsSPNTrianglesInit_5b(3, 22, 23, 24, 24, 25, 22, 22, 26, 23),
    gsSPEndDisplayList(),
};

Gfx Lfoot2_grl_model[] = {
    gsSPMatrix(&anime_6_mdl[1], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
    gsSPVertex(&grl_1_v[293], 4, 0),
    gsSPMatrix(&anime_6_mdl[2], G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW),
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
    gsDPSetCombineLERP(TEXEL0, 0, SHADE, 0, 0, 0, 0, TEXEL0, PRIMITIVE, 0, COMBINED, 0, 0, 0, 0, COMBINED),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_5_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 16, 16, grl_1_foot_tex_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsDPSetPrimColor(0, 128, 255, 255, 255, 255),
    gsSPVertex(&grl_1_v[297], 11, 4),
    gsSPNTrianglesInit_5b(7, 0, 4, 5, 3, 0, 6, 1, 7, 8),
    gsSPNTriangles_5b(1, 2, 9, 2, 3, 10, 3, 11, 12, 2, 13, 14),
    gsSPEndDisplayList(),
};

Gfx Lfoot1_grl_model[] = {
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
    gsDPSetCombineLERP(TEXEL0, 0, SHADE, 0, 0, 0, 0, TEXEL0, PRIMITIVE, 0, COMBINED, 0, 0, 0, 0, COMBINED),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_5_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 16, 16, grl_1_foot_tex_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_CLAMP, GX_CLAMP, 0, 0),
    gsDPSetPrimColor(0, 128, 255, 255, 255, 255),
    gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
    gsSPVertex(&grl_1_v[308], 9, 0),
    gsSPNTrianglesInit_5b(7, 0, 1, 2, 3, 4, 5, 3, 5, 6),
    gsSPNTriangles_5b(6, 1, 3, 7, 4, 8, 7, 5, 4, 1, 6, 2),
    gsSPEndDisplayList(),
};

Gfx bace_grl_model[] = {
    gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_ON),
    gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
    gsDPSetCombineLERP(TEXEL0, 0, SHADE, 0, 0, 0, 0, TEXEL0, PRIMITIVE, 0, COMBINED, 0, 0, 0, 0, COMBINED),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_4_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 32, 32, anime_3_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_REPEAT, GX_CLAMP, 0, 0),
    gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 508, 124),
    gsDPSetPrimColor(0, 128, 255, 255, 255, 255),
    gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
    gsSPVertex(&grl_1_v[368], 28, 0),
    gsSPNTrianglesInit_5b(22, 0, 1, 2, 3, 4, 5, 6, 2, 1),
    gsSPNTriangles_5b(6, 7, 2, 8, 4, 3, 4, 9, 10, 2, 7, 11),
    gsSPNTriangles_5b(1, 12, 6, 8, 9, 4, 13, 14, 3, 2, 11, 15),
    gsSPNTriangles_5b(3, 16, 8, 4, 10, 17, 17, 10, 1, 2, 18, 0),
    gsSPNTriangles_5b(1, 0, 17, 14, 16, 3, 10, 12, 1, 17, 5, 4),
    gsSPNTriangles_5b(5, 19, 3, 3, 19, 13, 15, 18, 2, 0, 0, 0),
    gsDPLoadTLUT_Dolphin(15, 16, 1, anime_5_txt),
    gsDPSetTextureImage_Dolphin(G_IM_FMT_CI, G_IM_SIZ_4b, 16, 16, grl_1_hole_tex_txt),
    gsDPSetTile_Dolphin(G_DOLPHIN_TLUT_DEFAULT_MODE, 0, 15, GX_MIRROR, GX_MIRROR, 0, 0),
    gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 124, 124),
    gsSPNTrianglesInit_5b(6, 20, 21, 22, 23, 24, 25, 22, 24, 20),
    gsSPNTriangles_5b(25, 26, 23, 24, 27, 25, 22, 27, 24, 0, 0, 0),
    gsSPEndDisplayList(),
};

cKF_Joint_R_c cKF_je_r_grl_1_tbl[] = {
    { NULL, 1, cKF_JOINT_FLAG_DISP_OPA, { 0, 1000, 0 } },
    { bace_grl_model, 4, cKF_JOINT_FLAG_DISP_OPA, { 0, 0, 0 } },
    { NULL, 1, cKF_JOINT_FLAG_DISP_OPA, { 0, 65186, 0 } },
    { Lfoot1_grl_model, 1, cKF_JOINT_FLAG_DISP_OPA, { 0, 0, 0 } },
    { Lfoot2_grl_model, 1, cKF_JOINT_FLAG_DISP_OPA, { 450, 0, 0 } },
    { Lfoot3_grl_model, 0, cKF_JOINT_FLAG_DISP_OPA, { 400, 0, 0 } },
    { NULL, 1, cKF_JOINT_FLAG_DISP_OPA, { 0, 350, 0 } },
    { Rfoot1_grl_model, 1, cKF_JOINT_FLAG_DISP_OPA, { 0, 0, 0 } },
    { Rffot2_grl_model, 1, cKF_JOINT_FLAG_DISP_OPA, { 450, 0, 0 } },
    { Rfoot3_grl_model, 0, cKF_JOINT_FLAG_DISP_OPA, { 400, 0, 0 } },
    { NULL, 1, cKF_JOINT_FLAG_DISP_OPA, { 75, 0, 65336 } },
    { NULL, 1, cKF_JOINT_FLAG_DISP_OPA, { 0, 0, 0 } },
    { NULL, 0, cKF_JOINT_FLAG_DISP_OPA, { 101, 0, 0 } },
    { chest_grl_model, 3, cKF_JOINT_FLAG_DISP_OPA, { 301, 0, 0 } },
    { NULL, 1, cKF_JOINT_FLAG_DISP_OPA, { 500, 65086, 0 } },
    { Larm1_grl_model, 1, cKF_JOINT_FLAG_DISP_OPA, { 0, 0, 0 } },
    { Larm2_grl_model, 0, cKF_JOINT_FLAG_DISP_OPA, { 626, 0, 0 } },
    { NULL, 1, cKF_JOINT_FLAG_DISP_OPA, { 500, 450, 0 } },
    { Rarm1_grl_model, 1, cKF_JOINT_FLAG_DISP_OPA, { 0, 0, 0 } },
    { Rarm2_grl_model, 1, cKF_JOINT_FLAG_DISP_OPA, { 626, 0, 0 } },
    { NULL, 0, cKF_JOINT_FLAG_DISP_OPA, { 625, 0, 0 } },
    { NULL, 2, cKF_JOINT_FLAG_DISP_OPA, { 625, 0, 0 } },
    { NULL, 1, cKF_JOINT_FLAG_DISP_OPA, { 500, 0, 600 } },
    { NULL, 0, cKF_JOINT_FLAG_DISP_OPA, { 0, 0, 0 } },
    { head_grl_model, 1, cKF_JOINT_FLAG_DISP_OPA, { 0, 0, 0 } },
    { NULL, 0, cKF_JOINT_FLAG_DISP_OPA, { 1375, 0, 0 } },
};

cKF_Skeleton_R_c cKF_bs_r_grl_1 = { ARRAY_COUNT(cKF_je_r_grl_1_tbl), 13, cKF_je_r_grl_1_tbl };
