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

u8 cKF_ckcb_r_npc_1_gaaan1_tbl[] = { 56, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 7, 7, 0, 7, 7, 7, 7, 0, 7, 0, 0 };

s16 cKF_kn_npc_1_gaaan1_tbl[] = { 2, 4, 3, 2, 4, 2, 3, 6, 3, 2, 4, 2, 2, 2, 2, 3, 6, 3, 2, 4, 2, 2, 2, 2, 2, 6, 2,
                                  2, 6, 2, 2, 3, 2, 2, 6, 4, 2, 4, 2, 2, 6, 4, 2, 4, 2, 3, 6, 2, 2, 5, 5, 2, 6, 2 };

s16 cKF_c_npc_1_gaaan1_tbl[] = { 0,    0, 900, 0,   0, 1800, 0, 0, 1800, 0, 900, 0, 0,   0,
                                 -900, 0, 0,   900, 0, -900, 0, 0, 0,    0, 0,   0, -900 };

s16 cKF_ds_npc_1_gaaan1_tbl[] = {
    1,  0,    0, 11, 0,    0,   1,  1000, 0,    2,  900,  0,   3,  1100, 0,   11, 1100, 0, 1,  0,    0,   5,  -250, 0,
    11, -250, 0, 1,  0,    0,   11, 0,    0,    1,  0,    0,   3,  -50,  0,   5,  0,    0, 11, 0,    -72, 1,  0,    0,
    11, 0,    0, 1,  -175, 0,   5,  -150, 0,    11, -150, 0,   1,  -100, 0,   3,  -300, 0, 5,  -220, 0,   6,  -180, 0,
    7,  -200, 0, 11, -200, 0,   1,  25,   0,    5,  0,    0,   11, 0,    0,   1,  0,    0, 11, 0,    0,   1,  200,  0,
    3,  300,  0, 5,  -100, 0,   11, -100, 0,    1,  0,    0,   11, 0,    0,   1,  0,    0, 11, 0,    0,   1,  -100, 0,
    11, -100, 0, 1,  0,    0,   11, 0,    0,    1,  175,  0,   5,  150,  0,   11, 150,  0, 1,  -100, 0,   3,  -300, 0,
    5,  -220, 0, 6,  -180, 0,   7,  -200, 0,    11, -200, 0,   1,  -25,  0,   5,  0,    0, 11, 0,    0,   1,  0,    0,
    11, 0,    0, 1,  200,  0,   3,  300,  0,    5,  -100, 0,   11, -100, 0,   1,  0,    0, 11, 0,    0,   1,  0,    0,
    11, 0,    0, 1,  -100, 0,   11, -100, 0,    1,  0,    0,   11, 0,    0,   1,  0,    0, 11, 0,    0,   1,  60,   0,
    5,  -350, 0, 6,  -250, 0,   7,  -350, 0,    8,  -300, 0,   11, -300, 0,   1,  0,    0, 11, 0,    0,   1,  0,    0,
    11, 0,    0, 1,  82,   0,   7,  -150, 0,    8,  100,  0,   9,  -150, 0,   10, 0,    0, 11, 0,    0,   1,  0,    0,
    11, 0,    0, 1,  0,    0,   11, 0,    -143, 1,  2,    -78, 6,  -200, 0,   11, -200, 0, 1,  0,    0,   11, 0,    0,
    1,  0,    0, 11, 0,    0,   1,  58,   0,    3,  -50,  0,   5,  20,   0,   6,  -20,  0, 7,  0,    0,   11, 0,    0,
    1,  -564, 0, 3,  -100, 0,   5,  -350, 0,    11, -350, 378, 1,  0,    0,   11, 0,    0, 1,  -57,  468, 3,  -200, 0,
    5,  0,    0, 11, 0,    0,   1,  0,    0,    11, 0,    0,   1,  0,    0,   11, 0,    0, 1,  58,   0,   3,  -50,  0,
    5,  20,   0, 6,  -20,  0,   7,  0,    0,    11, 0,    0,   1,  564,  0,   3,  100,  0, 5,  350,  0,   11, 350,  0,
    1,  0,    0, 11, 0,    0,   1,  -57,  468,  3,  -200, 0,   5,  0,    0,   11, 0,    0, 1,  0,    0,   11, 0,    0,
    1,  0,    0, 5,  150,  0,   11, 150,  0,    1,  0,    0,   5,  150,  0,   6,  50,   0, 8,  150,  0,   9,  100,  0,
    11, 100,  0, 1,  0,    0,   11, 0,    0,    1,  0,    0,   11, 0,    150, 1,  0,    0, 3,  -60,  0,   5,  200,  0,
    8,  180,  0, 11, 190,  222, 1,  0,    0,    5,  -20,  0,   7,  10,   0,   9,  -10,  0, 11, 0,    151, 1,  0,    0,
    11, 0,    0, 1,  0,    0,   5,  -450, 0,    6,  -410, 0,   7,  -450, 0,   8,  -430, 0, 11, -430, 0,   1,  0,    0,
    11, 0,    0
};

u8 npc_1_gaaan10_tex_index[] = { 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5 };

u8 npc_1_gaaan11_tex_index[] = { 0, 1, 2, 6, 6, 6, 6, 6, 6, 6, 6 };

aNPC_Animation_c cKF_ba_r_npc_1_gaaan1 = {
    { cKF_ckcb_r_npc_1_gaaan1_tbl, cKF_ds_npc_1_gaaan1_tbl, cKF_kn_npc_1_gaaan1_tbl, cKF_c_npc_1_gaaan1_tbl, -1, 11 },
    1.0f,
    11.0f,
    cKF_FRAMECONTROL_STOP,
    -4.0f,
    npc_1_gaaan11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_gaaan10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    5,
    eEC_EFFECT_SHOCK,
    NULL,
    NULL,
};
