#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_gaaan_d1_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_gaaan_d1_tbl[] = { 2, 2, 2, 2, 4, 2, 3, 5, 3, 2, 3, 2, 2, 2, 2, 3, 5, 3, 2, 3, 2, 2, 2, 2, 2, 2, 2,
                                    2, 2, 2, 2, 5, 2, 2, 4, 3, 2, 4, 2, 2, 4, 3, 2, 4, 2, 2, 2, 2, 2, 6, 5, 2, 2, 2 };

s16 cKF_c_npc_1_gaaan_d1_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_gaaan_d1_tbl[] = {
    1,  0,    0,    11, 0,    0,    1,  2400, 0,    11, 2400, 0,    1,  0,    0,    11, 0,    0,    1,  0,    0,
    11, 0,    0,    1,  80,   0,    3,  50,   0,    5,  120,  148,  11, 130,  0,    1,  0,    0,    11, 0,    143,
    1,  -750, 150,  5,  -750, 0,    11, -750, -287, 1,  -520, 0,    4,  -540, 0,    6,  -500, 0,    7,  -520, 0,
    11, -520, 0,    1,  300,  148,  5,  300,  0,    11, 300,  -283, 1,  0,    0,    11, 0,    0,    1,  350,  0,
    5,  150,  0,    11, 150,  -308, 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,  750,  0,    5,  750,  0,    11, 750,  291,  1,  -520, 0,
    4,  -540, 0,    6,  -500, 0,    7,  -520, 0,    11, -520, 0,    1,  -300, 0,    5,  -300, 0,    11, -300, -293,
    1,  0,    0,    11, 0,    0,    1,  350,  0,    5,  150,  -612, 11, 150,  306,  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,  -250, 0,    11, -250, 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,    -143, 1,  -100, -101,
    3,  -150, 0,    5,  -45,  936,  8,  -15,  0,    11, -30,  -225, 1,  0,    0,    11, 0,    -143, 1,  0,    0,
    11, 0,    0,    1,  50,   0,    5,  20,   -297, 7,  10,   0,    11, 0,    -729, 1,  -650, 0,    5,  -350, 0,
    11, -350, 493,  1,  0,    0,    11, 0,    0,    1,  -250, 0,    3,  -200, 1783, 5,  0,    0,    11, 0,    0,
    1,  0,    0,    11, 0,    0,    1,  0,    0,    11, 0,    0,    1,  50,   0,    5,  20,   -296, 7,  0,    -299,
    11, 0,    723,  1,  650,  0,    5,  350,  0,    11, 350,  381,  1,  0,    0,    11, 0,    0,    1,  -250, 0,
    3,  -200, 1798, 5,  0,    0,    11, 0,    0,    1,  0,    0,    11, 0,    0,    1,  0,    0,    11, 0,    0,
    1,  0,    0,    11, 0,    0,    1,  0,    0,    11, 0,    0,    1,  0,    0,    11, 0,    150,  1,  0,    0,
    4,  -100, 0,    6,  -50,  0,    8,  -70,  0,    10, -45,  0,    11, -50,  -198, 1,  0,    0,    5,  -20,  0,
    7,  10,   0,    9,  -10,  0,    11, 0,    151,  1,  0,    0,    11, 0,    0,    1,  0,    0,    11, 0,    0,
    1,  0,    0,    11, 0,    0
};

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

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

aNPC_Animation_c cKF_ba_r_npc_1_gaaan_d1 = {
    { cKF_ckcb_r_npc_1_gaaan_d1_tbl, cKF_ds_npc_1_gaaan_d1_tbl, cKF_kn_npc_1_gaaan_d1_tbl, cKF_c_npc_1_gaaan_d1_tbl, -1,
      11 },
    1.0f,
    11.0f,
    cKF_FRAMECONTROL_STOP,
    -4.0f,
    npc_1_gaaan_d10_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_gaaan_d11_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    5,
    eEC_EFFECT_SHOCK,
    NULL,
    NULL,
};
