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

s16 cKF_c_npc_1_musu1_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_musu1_tbl[] = {
    1,  0,    0,   33, 0,    0,    1,  1000, 0,    17, 1025, 0,   33, 1000, 0,   1,  0,    0,    17, 60,   0,
    33, 0,    0,   1,  0,    0,    33, 0,    0,    1,  -30,  0,   17, -50,  0,   33, -30,  0,    1,  0,    0,
    33, 0,    0,   1,  -175, 0,    33, -175, 0,    1,  -130, 0,   17, -30,  0,   33, -130, 0,    1,  25,   0,
    17, 0,    0,   33, 25,   0,    1,  0,    0,    33, 0,    0,   1,  200,  0,   17, 0,    0,    33, 200,  0,
    1,  0,    0,   33, 0,    0,    1,  0,    0,    33, 0,    0,   1,  -100, 0,   17, -20,  0,    33, -100, 0,
    1,  0,    0,   33, 0,    0,    1,  175,  0,    33, 175,  0,   1,  -130, 0,   17, -30,  0,    33, -130, 0,
    1,  -25,  0,   17, 0,    0,    33, -25,  0,    1,  0,    0,   33, 0,    0,   1,  200,  0,    17, 0,    0,
    33, 200,  0,   1,  0,    0,    33, 0,    0,    1,  0,    0,   33, 0,    0,   1,  -100, 0,    17, -20,  0,
    33, -100, 0,   1,  0,    0,    33, 0,    0,    1,  0,    0,   33, 0,    0,   1,  -100, 0,    9,  -160, 0,
    17, -100, 0,   25, -160, 0,    33, -100, 0,    1,  0,    0,   33, 0,    0,   1,  0,    0,    33, 0,    0,
    1,  45,   896, 4,  90,   0,    11, -90,  0,    19, 90,   0,   27, -90,  0,   33, 45,   896,  1,  0,    0,
    33, 0,    0,   1,  0,    0,    33, 0,    0,    1,  -48,  -78, 2,  -50,  0,   18, 0,    0,    33, -48,  -78,
    1,  0,    0,   33, 0,    0,    1,  0,    0,    33, 0,    0,   1,  28,   170, 5,  40,   0,    21, -40,  0,
    33, 28,   170, 1,  -564, 252,  5,  -550, 0,    21, -650, 0,   33, -564, 252, 1,  0,    0,    33, 0,    0,
    1,  -57,  468, 7,  0,    0,    23, -180, 0,    33, -57,  468, 1,  0,    0,   33, 0,    0,    1,  0,    0,
    33, 0,    0,   1,  28,   170,  5,  40,   0,    21, -40,  0,   33, 28,   170, 1,  565,  -272, 5,  550,  0,
    21, 650,  0,   33, 565,  -266, 1,  0,    0,    33, 0,    0,   1,  -58,  468, 7,  0,    0,    23, -180, 0,
    33, -58,  468, 1,  0,    0,    33, 0,    0,    1,  0,    0,   33, 0,    0,   1,  0,    0,    33, 0,    0,
    1,  0,    0,   33, 0,    0,    1,  0,    0,    33, 0,    0,   1,  -20,  0,   9,  10,   0,    17, -20,  0,
    25, 10,   0,   33, -20,  0,    1,  0,    -114, 9,  -20,  0,   25, 20,   0,   33, 0,    -114, 1,  0,    0,
    33, 0,    0,   1,  0,    0,    33, 0,    0,    1,  0,    0,   33, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_musu1 = {
    { cKF_ckcb_r_npc_1_musu1_tbl, cKF_ds_npc_1_musu1_tbl, cKF_kn_npc_1_musu1_tbl, cKF_c_npc_1_musu1_tbl, -1, 33 },
    1.0f,
    33.0f,
    cKF_FRAMECONTROL_REPEAT,
    -5.0f,
    NULL,
    aNPC_EYE_TEX0,
    3,
    NULL,
    aNPC_MOUTH_TEX2,
    3,
    -1,
    -1,
    NULL,
    NULL,
};
