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

s16 cKF_c_npc_1_muuuuu_f1_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_muuuuu_f1_tbl[] = {
    1,  0,    0,    11, 150,  0,     33, 150,   0,    1,  975,   0,    11, 950,  0,    33, 950,  0,    1,  0,    0,
    33, 0,    0,    1,  0,    0,     33, 0,     0,    1,  60,    0,    11, 80,   0,    14, 80,   0,    21, 50,   -123,
    33, 30,   0,    1,  90,   0,     11, -50,   0,    33, -50,   0,    1,  -185, 0,    11, -175, 0,    33, -175, 0,
    1,  40,   0,    11, -80,  0,     14, -80,   0,    21, -120,  -129, 33, -140, 0,    1,  -85,  0,    11, 0,    0,
    33, 0,    0,    1,  0,    0,     33, 0,     0,    1,  40,    0,    11, 450,  0,    33, 450,  0,    1,  0,    0,
    33, 0,    0,    1,  0,    0,     33, 0,     0,    1,  -15,   0,    11, -300, 0,    33, -300, 0,    1,  0,    0,
    11, 125,  0,    33, 125,  0,     1,  180,   0,    9,  300,   0,    33, 300,  0,    1,  -260, 0,    11, 50,   0,
    14, 50,   0,    21, 10,   -120,  33, -10,   0,    1,  -145,  0,    11, -100, 0,    33, -100, 0,    1,  0,    0,
    33, 0,    0,    1,  560,  0,     17, 0,     0,    21, 80,    394,  25, 80,   -393, 29, 0,    0,    33, 80,   394,
    1,  0,    0,    12, 0,    0,     15, 0,     0,    33, 0,     0,    1,  0,    0,    33, 0,    0,    1,  -240, 0,
    13, -100, 404,  17, 105,  0,     21, -100,  -403, 25, -100,  404,  29, 105,  0,    33, -100, -403, 1,  -40,  0,
    12, 105,  0,    15, 105,  0,     33, 105,   0,    1,  0,     0,    33, 0,    0,    1,  60,   0,    14, -200, 0,
    22, -150, 0,    28, -230, -798,  33, -250,  381,  1,  0,     0,    8,  -30,  0,    18, 50,   0,    25, -60,  0,
    33, 53,   1482, 1,  0,    0,     33, 0,     0,    1,  82,    0,    9,  140,  0,    16, -40,  0,    24, 140,  0,
    33, -115, -145, 1,  0,    0,     11, -50,   0,    21, 20,    0,    33, -35,  1182, 1,  0,    0,    7,  -30,  -224,
    33, -60,  0,    1,  100,  0,     7,  -60,   0,    13, -30,   0,    20, -110, -238, 33, -150, 0,    1,  -50,  0,
    13, 70,   0,    33, 70,   0,     1,  -120,  0,    33, -600,  0,    1,  -700, 0,    33, -750, 0,    1,  -450, 0,
    33, 20,   0,    1,  0,    0,     33, 0,     0,    1,  -50,   0,    33, -50,  0,    1,  0,    0,    33, 0,    0,
    1,  0,    0,    13, -600, -1280, 24, -750,  0,    33, -750,  0,    1,  50,   0,    24, 100,  0,    33, 100,  0,
    1,  300,  0,    24, 250,  0,     33, 250,   0,    1,  0,     0,    13, 0,    0,    24, 0,    0,    33, 0,    0,
    1,  -57,  0,    13, -800, -1823, 24, -1050, 0,    33, -1050, 0,    1,  0,    0,    13, 0,    0,    24, 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,    10, -38,  -157,  33, -58,   0,    1,  -200,  0,    10, 30,   0,    18, 10,   -72,  27, 0,    0,
    33, 0,    0,    1,  -10,  0,     10, -70,   -321, 33, -100,  0,    1,  0,    0,    33, 0,    0,    1,  0,    0,
    7,  -150, 0,    14, -110, 442,   21, 0,     0,    33, 0,     0,    1,  0,    0,    33, 0,    0
};

u8 npc_1_muuuuu_f10_tex_index[] = { 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3,
                                    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 };

u8 npc_1_muuuuu_f11_tex_index[] = { 0, 1, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                                    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };

aNPC_Animation_c cKF_ba_r_npc_1_muuuuu_f1 = {
    { cKF_ckcb_r_npc_1_muuuuu_f1_tbl, cKF_ds_npc_1_muuuuu_f1_tbl, cKF_kn_npc_1_muuuuu_f1_tbl, cKF_c_npc_1_muuuuu_f1_tbl,
      -1, 33 },
    1.0f,
    33.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_muuuuu_f11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_muuuuu_f10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    16,
    eEC_EFFECT_KANGAERU,
    NULL,
    NULL,
};
