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

s16 cKF_c_npc_1_aseru_i1_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_i1_tbl[] = {
    1,  0,    0,   4,  50,   0, 10, -50,  0,    13, 0,    749,  1,  975,  0,    4,  975,  0, 7,  1000, 0,
    10, 975,  0,   13, 1000, 0, 1,  0,    0,    13, 0,    0,    1,  0,    0,    13, -80,  0, 1,  60,   0,
    13, 0,    0,   1,  90,   0, 4,  -50,  0,    10, 50,   0,    13, 0,    -703, 1,  -185, 0, 7,  -175, 0,
    10, -150, 0,   13, -175, 0, 1,  40,   0,    4,  -200, 0,    7,  -100, 0,    10, -450, 0, 13, -100, 0,
    1,  -85,  0,   4,  75,   0, 7,  25,   0,    10, 150,  0,    13, 25,   0,    1,  0,    0, 13, 0,    0,
    1,  40,   0,   4,  400,  0, 7,  200,  0,    10, 950,  0,    13, 200,  0,    1,  0,    0, 13, 0,    0,
    1,  0,    0,   13, 0,    0, 1,  -15,  0,    4,  -200, 0,    7,  -100, 0,    10, -300, 0, 13, -100, 0,
    1,  0,    0,   13, 0,    0, 1,  180,  0,    4,  150,  0,    7,  175,  0,    13, 175,  0, 1,  -260, 0,
    4,  -450, 0,   7,  -100, 0, 10, -200, 0,    13, -100, 0,    1,  -145, 0,    4,  -150, 0, 7,  -25,  0,
    10, -75,  0,   13, -25,  0, 1,  0,    0,    13, 0,    0,    1,  560,  0,    4,  950,  0, 7,  200,  0,
    10, 400,  0,   13, 200,  0, 1,  0,    0,    13, 0,    0,    1,  0,    0,    13, 0,    0, 1,  -240, 0,
    4,  -300, 0,   7,  -100, 0, 10, -200, 0,    13, -100, 0,    1,  -40,  0,    13, 0,    0, 1,  0,    0,
    13, 0,    0,   1,  60,   0, 10, -200, 0,    13, 0,    0,    1,  0,    0,    4,  20,   0, 13, -38,  499,
    1,  0,    0,   13, 0,    0, 1,  82,   0,    12, -200, 0,    13, -178, 1548, 1,  0,    0, 6,  20,   0,
    13, -68,  346, 1,  0,    0, 10, -80,  0,    13, 0,    1189, 1,  100,  0,    10, 50,   0, 13, 50,   -754,
    1,  -90,  0,   4,  50,   0, 10, -50,  0,    13, 0,    748,  1,  0,    0,    13, 3,    0, 1,  -300, 0,
    13, -300, 0,   1,  -500, 0, 13, -500, 0,    1,  0,    0,    13, 0,    0,    1,  -600, 0, 13, -600, 0,
    1,  0,    0,   13, 0,    0, 1,  0,    0,    13, 0,    0,    1,  -300, 0,    13, -300, 0, 1,  503,  0,
    13, 503,  0,   1,  0,    0, 13, 0,    0,    1,  -600, 0,    13, -600, 0,    1,  0,    0, 13, 0,    0,
    1,  0,    0,   13, 0,    0, 1,  0,    0,    13, 0,    0,    1,  0,    0,    13, 0,    0, 1,  0,    0,
    13, 0,    0,   1,  -200, 0, 10, 50,   0,    13, 50,   0,    1,  -10,  -149, 13, 0,    0, 1,  0,    0,
    13, 0,    0,   1,  0,    0, 13, -200, -361, 1,  0,    0,    13, 0,    0
};

u8 npc_1_aseru_i11_tex_index[] = { 1, 2, 2, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4 };

aNPC_Animation_c cKF_ba_r_npc_1_aseru_i1 = {
    { cKF_ckcb_r_npc_1_aseru_i1_tbl, cKF_ds_npc_1_aseru_i1_tbl, cKF_kn_npc_1_aseru_i1_tbl, cKF_c_npc_1_aseru_i1_tbl, -1,
      13 },
    1.0f,
    13.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_aseru_i11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    NULL,
    aNPC_MOUTH_TEX2,
    3,
    6,
    eEC_EFFECT_ASE2,
    NULL,
    NULL,
};
