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

s16 cKF_c_npc_1_asihumi1_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_asihumi1_tbl[] = {
    1,  0,     0,     17, 0,     0,     1,  1013,  -764,  2,  1000,  0,    6,  1100,  0,     10, 1000,  0,
    14, 1100,  0,     17, 1013,  -764,  1,  -38,   -559,  2,  -50,   0,    6,  0,     0,     10, -50,   0,
    14, 0,     0,     17, -38,   -559,  1,  -36,   961,   6,  100,   0,    14, -100,  0,     17, -36,   961,
    1,  -25,   0,     5,  0,     0,     9,  -25,   0,     13, 0,     0,    17, -25,   0,     1,  0,     0,
    17, 0,     0,     1,  0,     0,     9,  0,     0,     13, -300,  0,    17, 0,     0,     1,  -126,  8160,
    3,  200,   719,   6,  225,   0,     11, -700,  -774,  14, -725,  0,    17, -126,  8160,  1,  0,     0,
    9,  0,     0,     13, 300,   0,     17, 0,     0,     1,  0,     0,    17, 0,     0,     1,  299,   -7461,
    3,  0,     0,     6,  0,     0,     11, 900,   962,   14, 900,   -965, 17, 299,   -7461, 1,  0,     0,
    17, 0,     0,     1,  0,     0,     17, 0,     0,     1,  -234,  1041, 6,  -50,   0,     14, -300,  0,
    17, -234,  1041,  1,  0,     0,     17, 0,     0,     1,  0,     0,    5,  300,   0,     9,  0,     0,
    17, 0,     0,     1,  -374,  -8170, 3,  -700,  -751,  6,  -725,  0,    11, 200,   722,   14, 225,   0,
    17, -374,  -8170, 1,  0,     0,     5,  -300,  0,     9,  0,     0,    17, 0,     0,     1,  0,     0,
    17, 0,     0,     1,  585,   6560,  3,  900,   972,   6,  900,   -967, 11, 0,     0,     14, 0,     0,
    17, 585,   6560,  1,  0,     0,     17, 0,     0,     1,  0,     0,    17, 0,     0,     1,  -146,  -1282,
    6,  -300,  0,     14, -50,   0,     17, -146,  -1282, 1,  0,     0,    17, 0,     0,     1,  0,     0,
    17, 0,     0,     1,  -25,   1769,  3,  50,    0,     7,  -100,  0,    11, 50,    0,     15, -100,  0,
    17, -25,   1769,  1,  0,     -501,  5,  -50,   0,     13, 50,    0,    17, 0,     -501,  1,  0,     0,
    17, 0,     0,     1,  -150,  0,     5,  150,   0,     9,  -150,  0,    13, 150,   0,     17, -150,  0,
    1,  -35,   445,   7,  50,    0,     15, -50,   0,     17, -35,   445,  1,  28,    -708,  6,  -75,   0,
    14, 75,    0,     17, 28,    -708,  1,  75,    -531,  3,  50,    0,    7,  100,   0,     11, 50,    0,
    15, 100,   0,     17, 75,    -531,  1,  19,    -534,  6,  -50,   0,    14, 50,    0,     17, 19,    -534,
    1,  50,    0,     5,  -50,   0,     9,  50,    0,     13, -50,   0,    17, 50,    0,     1,  13,    -386,
    5,  -50,   0,     13, 50,    0,     17, 13,    -386,  1,  -550,  0,    5,  -650,  0,     9,  -550,  0,
    13, -650,  0,     17, -550,  0,     1,  0,     0,     17, 0,     0,    1,  -1136, 1066,  6,  -1000, 0,
    14, -1200, 0,     17, -1136, 1066,  1,  0,     0,     17, 0,     0,    1,  50,    0,     5,  -50,   0,
    9,  50,    0,     13, -50,   0,     17, 50,    0,     1,  -13,   383,  5,  50,    0,     13, -50,   0,
    17, -13,   383,   1,  550,   0,     5,  650,   0,     9,  550,   0,    13, 650,   0,     17, 550,   0,
    1,  0,     0,     17, 0,     0,     1,  -1063, -940,  6,  -1200, 0,    14, -1000, 0,     17, -1063, -940,
    1,  0,     0,     17, 0,     0,     1,  0,     0,     17, 0,     0,    1,  0,     0,     17, 0,     0,
    1,  0,     0,     17, 0,     0,     1,  0,     0,     17, 0,     0,    1,  16,    -476,  3,  0,     0,
    11, 100,   0,     17, 16,    -476,  1,  -9,    251,   6,  25,    0,    14, -25,   0,     17, -9,    251,
    1,  0,     0,     17, 0,     0,     1,  0,     0,     17, 0,     0,    1,  0,     0,     17, 0,     0
};

aNPC_Animation_c cKF_ba_r_npc_1_asihumi1 = {
    { cKF_ckcb_r_npc_1_asihumi1_tbl, cKF_ds_npc_1_asihumi1_tbl, cKF_kn_npc_1_asihumi1_tbl, cKF_c_npc_1_asihumi1_tbl, -1,
      17 },
    1.0f,
    17.0f,
    cKF_FRAMECONTROL_REPEAT,
    -5.0f,
    NULL,
    aNPC_EYE_TEX0,
    3,
    NULL,
    aNPC_MOUTH_TEX2,
    4,
    -1,
    -1,
    NULL,
    NULL,
};
