#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_kyoro1_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_kyoro1_tbl[] = { 2, 5, 2, 2, 2, 2, 2, 5, 5, 2, 5, 2, 2, 5, 2, 2, 5, 5, 2, 5, 2, 2, 5, 2, 2, 2, 2,
                                  2, 2, 2, 6, 7, 2, 2, 5, 5, 2, 5, 5, 2, 5, 5, 2, 5, 5, 2, 2, 2, 9, 5, 7, 2, 2, 2 };

s16 cKF_c_npc_1_kyoro1_tbl[] = { 3600, 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_kyoro1_tbl[] = {
    1,  0,    0,    31, 0,    0,   1,  1000, 0,     9,  1025, 0,     15, 1000, 0,    24, 1025, 0,    31, 1000, 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,  -175, 0,   31, -175, 0,     1,  -100, 0,     9,  0,    0,    15, -100, 0,    24, 0,    0,
    31, -100, 0,    1,  25,   0,   9,  0,    0,     15, 25,   0,     24, 0,    0,    31, 25,   0,    1,  0,    0,
    31, 0,    0,    1,  200,  0,   9,  0,    0,     15, 200,  0,     24, 0,    0,    31, 200,  0,    1,  0,    0,
    31, 0,    0,    1,  0,    0,   31, 0,    0,     1,  -100, 0,     9,  0,    0,    15, -100, 0,    24, 0,    0,
    31, -100, 0,    1,  0,    0,   31, 0,    0,     1,  175,  0,     31, 175,  0,    1,  -100, 0,    9,  0,    0,
    15, -100, 0,    24, 0,    0,   31, -100, 0,     1,  -25,  0,     9,  0,    0,    15, -25,  0,    24, 0,    0,
    31, -25,  0,    1,  0,    0,   31, 0,    0,     1,  200,  0,     9,  0,    0,    15, 200,  0,    24, 0,    0,
    31, 200,  0,    1,  0,    0,   31, 0,    0,     1,  0,    0,     31, 0,    0,    1,  -100, 0,    9,  0,    0,
    15, -100, 0,    24, 0,    0,   31, -100, 0,     1,  0,    0,     31, 0,    0,    1,  0,    0,    31, 0,    0,
    1,  60,   0,    31, 60,   0,   1,  0,    0,     31, 0,    0,     1,  0,    0,    31, 0,    0,    1,  82,   0,
    31, 82,   0,    1,  0,    0,   31, 0,    0,     1,  0,    0,     7,  -80,  0,    10, -70,  302,  21, 80,   0,
    24, 70,   -198, 31, 0,    0,   1,  2,    0,     7,  30,   0,     10, 30,   0,    15, 0,    0,    21, 30,   0,
    24, 30,   0,    31, 2,    0,   1,  0,    0,     31, 0,    0,     1,  0,    0,    31, 0,    0,    1,  58,   0,
    7,  30,   0,    15, 60,   172, 21, 100,  0,     31, 58,   0,     1,  -564, 0,    7,  -530, 0,    15, -560, 0,
    21, -530, 0,    31, -564, 0,   1,  0,    0,     31, 0,    0,     1,  -57,  0,    9,  -20,  0,    15, -60,  -243,
    23, -100, 0,    31, -57,  0,   1,  0,    0,     9,  30,   0,     15, 0,    0,    23, 30,   0,    31, 0,    0,
    1,  0,    0,    31, 0,    0,   1,  58,   0,     7,  90,   0,     15, 60,   -178, 21, 30,   0,    31, 58,   0,
    1,  564,  0,    7,  530,  0,   15, 560,  0,     21, 530,  0,     31, 564,  0,    1,  0,    0,    31, 0,    0,
    1,  -57,  0,    8,  -100, 0,   15, -60,  279,   22, -20,  0,     31, -57,  0,    1,  0,    0,    8,  -30,  0,
    15, 0,    0,    22, -30,  0,   31, 0,    0,     1,  0,    0,     31, 0,    0,    1,  0,    0,    31, 0,    0,
    1,  0,    0,    31, 0,    0,   1,  0,    -3079, 5,  -320, 0,     7,  -300, 0,    10, -300, 0,    15, 0,    3177,
    19, 320,  0,    21, 300,  0,   25, 300,  0,     31, 0,    -3079, 1,  0,    0,    10, 0,    0,    15, -20,  0,
    19, 0,    0,    31, 0,    0,   1,  0,    0,     5,  50,   0,     10, 50,   0,    15, 0,    -751, 19, -50,  0,
    25, -50,  0,    31, 0,    0,   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_kyoro1 = {
    { cKF_ckcb_r_npc_1_kyoro1_tbl, cKF_ds_npc_1_kyoro1_tbl, cKF_kn_npc_1_kyoro1_tbl, cKF_c_npc_1_kyoro1_tbl, -1, 31 },
    1.0f,
    31.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX0,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
