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

s16 cKF_c_npc_1_musu_d1_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_musu_d1_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,  60,   0,    16, 85,   0,    31, 60,   0,    1,  0,    0,    31, 0,    0,    1,  -750, 150,
    7,  -730, 0,    23, -770, 0,    31, -750, 146,  1,  -520, -149, 5,  -530, 0,    21, -470, 0,    31, -520, -149,
    1,  300,  148,  7,  320,  0,    23, 270,  0,    31, 300,  148,  1,  0,    0,    31, 0,    0,    1,  350,  305,
    7,  400,  0,    23, 300,  0,    31, 350,  296,  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,  -147, 7,  730,  0,    23, 770,  0,
    31, 750,  -149, 1,  -520, -150, 5,  -530, 0,    21, -470, 0,    31, -520, -148, 1,  -300, -148, 7,  -320, 0,
    23, -270, 0,    31, -300, -150, 1,  0,    0,    31, 0,    0,    1,  350,  302,  7,  400,  0,    23, 300,  0,
    31, 350,  297,  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,    0,    31, 0,    0,    1,  -120, -101, 5,  -130, 0,    16, -110, 61,   25, -105, -50,  31, -120, -98,
    1,  0,    0,    31, 0,    0,    1,  0,    0,    31, 0,    0,    1,  50,   0,    31, 50,   0,    1,  -650, 0,
    16, -620, 0,    31, -650, 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,  50,   0,    31, 50,   0,    1,  650,  0,    16, 620,  0,
    31, 650,  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,  0,    0,    31, 0,    0,    1,  0,    0,    31, 0,    0,    1,  0,    0,
    31, 0,    0,    1,  -20,  -152, 11, -50,  0,    19, -30,  151,  26, -10,  0,    31, -20,  -147, 1,  0,    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_musu_d1 = {
    { cKF_ckcb_r_npc_1_musu_d1_tbl, cKF_ds_npc_1_musu_d1_tbl, cKF_kn_npc_1_musu_d1_tbl, cKF_c_npc_1_musu_d1_tbl, -1,
      31 },
    1.0f,
    31.0f,
    cKF_FRAMECONTROL_REPEAT,
    -5.0f,
    NULL,
    aNPC_EYE_TEX0,
    3,
    NULL,
    aNPC_MOUTH_TEX2,
    3,
    -1,
    -1,
    NULL,
    NULL,
};
