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

s16 cKF_c_npc_1_muuuuu1_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_muuuuu1_tbl[] = {
    1,  0,    0,    11, 150,  0,   33, 150,  0,    1,  1000, 0,    11, 950,  0,     33, 950,   0,    1,  0,     0,
    33, 0,    0,    1,  0,    0,   33, 0,    0,    1,  0,    0,    11, 80,   0,     14, 80,    0,    21, 50,    -122,
    33, 30,   0,    1,  0,    0,   11, -50,  0,    33, -50,  0,    1,  -175, 0,     14, -175,  0,    33, -175,  0,
    1,  -100, 0,    11, -80,  0,   14, -80,  0,    21, -120, -129, 33, -140, 0,     1,  25,    0,    11, 0,     0,
    33, 0,    0,    1,  0,    0,   14, 0,    0,    33, 0,    0,    1,  200,  0,     11, 450,   0,    14, 450,   0,
    33, 450,  0,    1,  0,    0,   14, 0,    0,    33, 0,    0,    1,  0,    0,     14, 0,     0,    33, 0,     0,
    1,  -100, 0,    11, -300, 0,   14, -300, 0,    33, -300, 0,    1,  0,    0,     11, 125,   0,    33, 125,   0,
    1,  175,  0,    9,  300,  0,   33, 300,  0,    1,  -100, 0,    11, 50,   0,     14, 50,    0,    21, 10,    -120,
    33, -10,  0,    1,  -25,  0,   11, -100, 0,    33, -100, 0,    1,  0,    0,     33, 0,     0,    1,  200,   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,  -100, 0,     13, -100,  404,  17, 105,   0,
    21, -100, -403, 25, -100, 404, 29, 105,  0,    33, -100, -403, 1,  0,    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,  -793,
    33, -250, 379,  1,  0,    0,   8,  -30,  0,    18, 50,   0,    25, -60,  0,     33, 53,    1485, 1,  0,     0,
    33, 0,    0,    1,  82,   0,   9,  140,  0,    16, -40,  0,    24, 140,  0,     33, -115,  -144, 1,  0,     0,
    11, -50,  0,    21, 20,   0,   33, -35,  1179, 1,  0,    0,    7,  -30,  -224,  33, -60,   0,    1,  2,     -78,
    7,  -60,  0,    13, -30,  0,   20, -110, -237, 33, -150, 0,    1,  0,    0,     13, 70,    0,    33, 70,    0,
    1,  0,    0,    14, 0,    0,   33, 80,   0,    1,  58,   0,    14, -650, 0,     33, -750,  0,    1,  -564,  240,
    33, -550, 0,    1,  0,    0,   14, 0,    0,    33, 0,    0,    1,  -57,  468,   14, -900,  0,    33, -900,  0,
    1,  0,    0,    14, 0,    0,   33, 0,    0,    1,  0,    0,    13, -600, -1280, 24, -750,  0,    33, -750,  0,
    1,  58,   0,    24, 100,  0,   33, 100,  0,    1,  564,  -272, 24, 250,  0,     33, 250,   0,    1,  0,     0,
    13, 0,    0,    24, 0,    0,   33, 0,    0,    1,  -57,  468,  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, -40,  -158,  33, -60,   0,    1,  0,     0,
    10, 30,   0,    18, 10,   -72, 33, 0,    0,    1,  0,    0,    10, -70,  -323,  33, -100,  0,    1,  0,     0,
    33, 0,    0,    1,  0,    0,   7,  -150, 0,    14, -110, 441,  21, 0,    0,     33, 0,     0,    1,  0,     0,
    33, 0,    0
};

u8 npc_1_muuuuu10_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_muuuuu11_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_muuuuu1 = {
    { cKF_ckcb_r_npc_1_muuuuu1_tbl, cKF_ds_npc_1_muuuuu1_tbl, cKF_kn_npc_1_muuuuu1_tbl, cKF_c_npc_1_muuuuu1_tbl, -1,
      33 },
    1.0f,
    33.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_muuuuu11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_muuuuu10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    16,
    eEC_EFFECT_KANGAERU,
    NULL,
    NULL,
};
