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

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

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

s16 cKF_ds_npc_1_otiru1_tbl[] = {
    1, 0,    0,     9, 0,    0,     1, 1650, -6324, 4, -250, -24122, 5, -750, 0,     7, -375, 0,     9, -500, 0,
    1, 375,  1464,  5, 500,  0,     9, 0,    0,     1, 0,    0,      9, 0,    0,     1, 600,  0,     5, 500,  -1889,
    9, 0,    0,     1, 0,    0,     5, 0,    0,     9, 0,    0,      1, -400, 0,     5, -350, 748,   9, -175, 0,
    1, -700, 0,     5, -550, 2231,  9, -100, 0,     1, 300,  0,      5, 225,  -1146, 9, 25,   0,     1, 0,    0,
    9, 0,    0,     1, 50,   0,     9, 200,  0,     1, 0,    0,      9, 0,    0,     1, 0,    0,     9, 0,    0,
    1, -100, 0,     6, -100, 0,     9, -100, 0,     1, 0,    0,      6, 0,    0,     9, 0,    0,     1, 100,  981,
    6, 175,  0,     9, 175,  0,     1, -500, -2574, 6, -700, 0,      9, -100, 0,     1, 50,   -454,  6, -25,  0,
    9, -25,  0,     1, 0,    0,     9, 0,    0,     1, 150,  -764,   9, 200,  0,     1, 0,    0,     9, 0,    0,
    1, 0,    0,     9, 0,    0,     1, -50,  -744,  6, -100, 0,      9, -100, 0,     1, 0,    0,     6, 0,    0,
    9, 0,    0,     1, 0,    0,     5, 0,    0,     9, 0,    0,      5, -550, 0,     7, 898,  0,     9, 900,  0,
    5, 0,    0,     9, 0,    0,     1, 0,    0,     9, 0,    0,      6, -600, 0,     9, 82,   0,     1, 0,    0,
    9, 0,    0,     1, -298, 1117,  5, -100, 1588,  9, 100,  0,      1, -100, 0,     9, 0,    0,     1, -120, 0,
    4, -300, -1504, 9, -400, 0,     3, 203,  -2031, 9, -200, 0,      1, 0,    1521,  4, 250,  0,     9, 200,  0,
    1, 0,    0,     9, 0,    0,     1, -425, 1852,  4, -200, 0,      6, -300, 0,     9, -100, 0,     1, 0,    0,
    9, 0,    0,     1, 303,  2904,  4, 450,  0,     9, 450,  0,      1, -300, 2493,  4, -100, 0,     9, -400, 0,
    1, -75,  -2247, 9, -250, 0,     1, 0,    0,     9, 0,    0,      1, -250, 990,   4, -225, -763,  6, -300, 0,
    9, -100, 0,     1, 0,    0,     9, 0,    0,     1, 110,  0,      4, 425,  1895,  6, 475,  570,   9, 500,  0,
    1, -110, 0,     4, 150,  3731,  6, 375,  0,     9, 300,  0,      1, 475,  0,     4, 300,  -1500, 6, 200,  -1503,
    9, 100,  0,     1, 50,   -1153, 5, -50,  0,     9, 0,    0,      1, 100,  -495,  6, -250, 0,     9, 0,    0,
    1, 63,   0,     6, 0,    0,     9, 0,    0,     1, 0,    0,      9, 0,    0,     1, 0,    0,     9, 0,    0,
    1, 0,    0,     9, 0,    0
};

u8 npc_1_otiru10_tex_index[] = { 5, 5, 5, 5, 4, 4, 5, 5, 5 };

u8 npc_1_otiru11_tex_index[] = { 6, 6, 1, 1, 7, 7, 7, 1, 4 };

aNPC_Animation_c cKF_ba_r_npc_1_otiru1 = {
    { cKF_ckcb_r_npc_1_otiru1_tbl, cKF_ds_npc_1_otiru1_tbl, cKF_kn_npc_1_otiru1_tbl, cKF_c_npc_1_otiru1_tbl, -1, 9 },
    1.0f,
    9.0f,
    cKF_FRAMECONTROL_STOP,
    -3.0f,
    npc_1_otiru11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_otiru10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    -1,
    -1,
    NULL,
    NULL,
};
