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

s16 cKF_c_npc_1_aseru_i2_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_aseru_i2_tbl[] = {
    1,  0,    749,  4,  50,   0,    10, -50,  0,   16, 50,   0,    22, -50,  0,    25, 0,    757,  1,  1000, 0,
    4,  975,  0,    7,  1000, 0,    10, 975,  0,   13, 1000, 0,    16, 975,  0,    19, 1000, 0,    22, 975,  0,
    25, 1000, 0,    1,  0,    0,    25, 0,    0,   1,  -80,  0,    13, 80,   0,    25, -80,  0,    1,  0,    0,
    25, 0,    0,    1,  0,    -703, 4,  -50,  0,   10, 50,   0,    16, -50,  0,    22, 50,   0,    25, 0,    -635,
    1,  -175, 0,    7,  -175, 0,    10, -150, 0,   13, -175, 0,    19, -175, 0,    22, -150, 0,    25, -175, 0,
    1,  -100, 0,    4,  -200, 0,    7,  -100, 0,   10, -450, 0,    13, -100, 0,    16, -200, 0,    19, -100, 0,
    22, -450, 0,    25, -100, 0,    1,  25,   0,   4,  75,   0,    7,  25,   0,    10, 150,  0,    13, 25,   0,
    16, 75,   0,    19, 25,   0,    22, 150,  0,   25, 25,   0,    1,  0,    0,    25, 0,    0,    1,  200,  0,
    4,  400,  0,    7,  200,  0,    10, 950,  0,   13, 200,  0,    16, 400,  0,    19, 200,  0,    22, 950,  0,
    25, 203,  0,    1,  0,    0,    25, 0,    0,   1,  0,    0,    25, 0,    0,    1,  -100, 0,    4,  -200, 0,
    7,  -100, 0,    10, -300, 0,    13, -100, 0,   16, -200, 0,    19, -100, 0,    22, -300, 0,    25, -100, 0,
    1,  0,    0,    25, 0,    0,    1,  175,  0,   4,  150,  0,    7,  175,  0,    13, 175,  0,    16, 150,  0,
    19, 175,  0,    25, 175,  0,    1,  -100, 0,   4,  -450, 0,    7,  -100, 0,    10, -200, 0,    13, -100, 0,
    16, -450, 0,    19, -100, 0,    22, -200, 0,   25, -100, 0,    1,  -25,  0,    4,  -150, 0,    7,  -25,  0,
    10, -75,  0,    13, -25,  0,    16, -150, 0,   19, -25,  0,    22, -75,  0,    25, -25,  0,    1,  0,    0,
    25, 0,    0,    1,  200,  0,    4,  950,  0,   7,  200,  0,    10, 400,  0,    13, 200,  0,    16, 950,  0,
    19, 200,  0,    22, 400,  0,    25, 200,  0,   1,  0,    0,    25, 0,    0,    1,  0,    0,    25, 0,    0,
    1,  -100, 0,    4,  -300, 0,    7,  -100, 0,   10, -200, 0,    13, -100, 0,    16, -300, 0,    19, -100, 0,
    22, -200, 0,    25, -100, 0,    1,  0,    0,   25, 0,    0,    1,  0,    0,    25, 0,    0,    1,  0,    0,
    7,  -200, 0,    13, 0,    0,    19, -200, 0,   25, 0,    0,    1,  -38,  499,  9,  80,   0,    21, -80,  0,
    25, -38,  501,  1,  0,    0,    25, 0,    0,   1,  -178, 1548, 6,  100,  0,    12, -200, 0,    18, 100,  0,
    24, -200, 0,    25, -178, 1555, 1,  -68,  346, 11, 80,   0,    23, -80,  0,    25, -68,  339,  1,  0,    1189,
    4,  80,   0,    10, -80,  0,    16, 80,   0,   22, -80,  0,    25, 0,    1215, 1,  50,   -754, 7,  -50,  0,
    19, 150,  0,    25, 50,   -752, 1,  0,    748, 4,  50,   0,    10, -50,  0,    16, 50,   0,    22, -50,  0,
    25, 0,    740,  1,  3,    0,    25, 3,    0,   1,  -300, 0,    25, -300, 0,    1,  -500, 0,    25, -500, 0,
    1,  0,    0,    25, 0,    0,    1,  -600, 0,   25, -600, 0,    1,  0,    0,    25, 0,    0,    1,  0,    0,
    25, 0,    0,    1,  -300, 0,    25, -300, 0,   1,  503,  0,    25, 503,  0,    1,  0,    0,    25, 0,    0,
    1,  -600, 0,    25, -600, 0,    1,  0,    0,   25, 0,    0,    1,  0,    0,    25, 0,    0,    1,  0,    0,
    25, 0,    0,    1,  0,    0,    25, 0,    0,   1,  0,    0,    25, 0,    0,    1,  50,   0,    25, 50,   0,
    1,  0,    0,    25, 0,    0,    1,  0,    0,   25, 0,    0,    1,  -200, -361, 7,  -250, 0,    19, -150, 0,
    25, -200, -361, 1,  0,    0,    25, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_aseru_i2 = {
    { cKF_ckcb_r_npc_1_aseru_i2_tbl, cKF_ds_npc_1_aseru_i2_tbl, cKF_kn_npc_1_aseru_i2_tbl, cKF_c_npc_1_aseru_i2_tbl, -1,
      25 },
    1.0f,
    25.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    4,
    NULL,
    aNPC_MOUTH_TEX2,
    4,
    -1,
    eEC_EFFECT_ASE2,
    NULL,
    NULL,
};
