#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_d2_tbl[] = { 56, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 7, 0, 0, 7, 7, 7, 7, 0, 7, 0, 0 };

s16 cKF_kn_npc_1_gaaan_d2_tbl[] = { 2, 2, 2, 2, 3, 4, 4, 3, 4, 2, 4, 2, 2, 2, 2, 4, 3, 4, 2, 4, 2, 2, 2, 2, 2, 2,
                                    2, 2, 2, 2, 4, 4, 4, 2, 4, 4, 2, 4, 4, 2, 2, 2, 2, 2, 2, 4, 4, 4, 2, 2, 2 };

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

s16 cKF_ds_npc_1_gaaan_d2_tbl[] = {
    1,  0,    0,    31, 0,    0,    1,  2400, 0,    31, 2400, 0,    1,  0,    0,    31, 0,    0,    1,  0,    0,
    31, 0,    0,    1,  130,  0,    16, 200,  0,    31, 130,  0,    1,  0,    143,  8,  20,   0,    24, -20,  0,
    31, 0,    154,  1,  -750, -287, 8,  -800, 0,    24, -700, 0,    31, -750, -299, 1,  -520, 0,    16, -490, 0,
    31, -520, 0,    1,  300,  -283, 8,  250,  0,    24, 350,  0,    31, 300,  -337, 1,  0,    0,    31, 0,    0,
    1,  150,  -308, 8,  100,  0,    24, 200,  0,    31, 150,  -307, 1,  0,    0,    31, 0,    0,    1,  0,    0,
    31, 0,    0,    1,  -100, 0,    31, -100, 0,    1,  0,    0,    31, 0,    0,    1,  750,  291,  8,  800,  0,
    24, 700,  0,    31, 750,  315,  1,  -520, 0,    16, -490, 0,    31, -520, 0,    1,  -300, -293, 8,  -350, 0,
    24, -250, 0,    31, -300, -317, 1,  0,    0,    31, 0,    0,    1,  150,  306,  8,  200,  0,    24, 100,  0,
    31, 150,  306,  1,  0,    0,    31, 0,    0,    1,  0,    0,    31, 0,    0,    1,  -100, 0,    31, -100, 0,
    1,  0,    0,    31, 0,    0,    1,  0,    0,    31, 0,    0,    1,  -250, 0,    31, -250, 0,    1,  0,    0,
    31, 0,    0,    1,  0,    0,    31, 0,    0,    1,  -100, 0,    31, -100, 0,    1,  0,    0,    31, 0,    0,
    1,  0,    -143, 8,  -20,  0,    24, 20,   0,    31, 0,    -153, 1,  -30,  -225, 7,  -55,  0,    23, -5,   0,
    31, -30,  -228, 1,  0,    -143, 8,  -20,  0,    24, 20,   0,    31, 0,    -153, 1,  0,    0,    31, 0,    0,
    1,  0,    -729, 8,  -100, 0,    24, 100,  0,    31, 0,    -747, 1,  -350, 493,  8,  -300, 0,    24, -405, 0,
    31, -350, 522,  1,  0,    0,    31, 0,    0,    1,  0,    723,  8,  100,  0,    24, -100, 0,    31, 0,    738,
    1,  350,  381,  8,  400,  0,    24, 300,  0,    31, 350,  379,  1,  0,    0,    31, 0,    0,    1,  0,    0,
    31, 0,    0,    1,  0,    0,    31, 0,    0,    1,  0,    0,    31, 0,    0,    1,  0,    0,    31, 0,    0,
    1,  0,    0,    31, 0,    0,    1,  0,    150,  8,  20,   0,    24, -20,  0,    31, 0,    152,  1,  -50,  -198,
    8,  -70,  0,    24, -25,  0,    31, -50,  -202, 1,  0,    151,  8,  20,   0,    24, -20,  0,    31, 0,    152,
    1,  0,    0,    31, 0,    0,    1,  0,    0,    31, 0,    0,    1,  0,    0,    31, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_gaaan_d2 = {
    { cKF_ckcb_r_npc_1_gaaan_d2_tbl, cKF_ds_npc_1_gaaan_d2_tbl, cKF_kn_npc_1_gaaan_d2_tbl, cKF_c_npc_1_gaaan_d2_tbl, -1,
      31 },
    1.0f,
    31.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    6,
    NULL,
    aNPC_MOUTH_TEX2,
    5,
    -1,
    -1,
    NULL,
    NULL,
};
