#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_hyuuu1_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_hyuuu1_tbl[] = { 2, 2,  2, 15, 2, 2, 3, 3, 2, 2, 2, 2, 15, 2, 2, 3, 3, 2, 2, 2, 2, 15, 2, 2, 3, 8, 6,
                                  3, 10, 7, 23, 2, 2, 2, 2, 2, 2, 2, 2, 2,  2, 2, 2, 2, 2, 2, 2, 2, 24, 2, 2, 2, 2, 2 };

s16 cKF_c_npc_1_hyuuu1_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_hyuuu1_tbl[] = {
    1,  0,    0,  51, 0,    0, 1,  1000, 0,    51, 1000, 0, 1,  0,    0, 51, 0,    0, 1,  0,    0, 21, 0,    0,
    22, 10,   0,  23, -15,  0, 24, 20,   0,    25, -25,  0, 26, 25,   0, 27, -25,  0, 28, 25,   0, 29, -20,  0,
    30, 15,   0,  31, -5,   0, 32, 5,    0,    33, 0,    0, 51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0,
    51, 0,    0,  1,  -175, 0, 41, -175, 0,    51, -175, 0, 1,  -100, 0, 41, -100, 0, 51, -100, 0, 1,  25,   0,
    51, 25,   0,  1,  0,    0, 51, 0,    0,    1,  200,  0, 51, 200,  0, 1,  0,    0, 51, 0,    0, 1,  0,    0,
    13, 0,    0,  14, 10,   0, 15, -15,  0,    16, 20,   0, 17, -25,  0, 18, 25,   0, 19, -25,  0, 20, 25,   0,
    21, -20,  0,  22, 15,   0, 23, -5,   0,    24, 5,    0, 25, 0,    0, 51, 0,    0, 1,  -100, 0, 51, -100, 0,
    1,  0,    0,  51, 0,    0, 1,  175,  0,    41, 175,  0, 51, 175,  0, 1,  -100, 0, 41, -100, 0, 51, -100, 0,
    1,  -25,  0,  51, -25,  0, 1,  0,    0,    51, 0,    0, 1,  200,  0, 51, 200,  0, 1,  0,    0, 51, 0,    0,
    1,  0,    0,  13, 0,    0, 14, 10,   0,    15, -15,  0, 16, 20,   0, 17, -25,  0, 18, 25,   0, 19, -25,  0,
    20, 25,   0,  21, -20,  0, 22, 15,   0,    23, -5,   0, 24, 5,    0, 25, 0,    0, 51, 0,    0, 1,  -100, 0,
    51, -100, 0,  1,  0,    0, 51, 0,    0,    1,  0,    0, 41, 0,    0, 51, 0,    0, 1,  60,   0, 11, -100, 0,
    16, 100,  0,  21, -100, 0, 26, 50,   0,    31, -30,  0, 41, 20,   0, 51, 60,   0, 1,  0,    0, 9,  -110, -831,
    16, -350, 0,  21, -250, 0, 31, -200, 0,    51, 0,    0, 1,  0,    0, 41, 0,    0, 51, 0,    0, 1,  82,   0,
    7,  150,  0,  14, 0,    0, 19, 250,  0,    24, -150, 0, 29, 100,  0, 34, -70,  0, 39, 50,   0, 46, -30,  0,
    51, 82,   0,  1,  0,    0, 6,  100,  1239, 11, 250,  0, 21, -410, 0, 26, -340, 0, 36, -300, 0, 51, 0,    0,
    1,  0,    0,  21, 0,    0, 22, -10,  0,    23, 15,   0, 24, -20,  0, 25, 25,   0, 26, -25,  0, 27, 25,   0,
    28, -25,  -2, 29, 20,   0, 30, -5,   0,    31, -10,  0, 32, 15,   0, 33, -25,  0, 34, 25,   0, 35, -25,  0,
    36, 25,   0,  37, -20,  0, 38, 15,   0,    39, -5,   0, 40, 5,    0, 41, 0,    0, 51, 0,    0, 1,  2,    0,
    51, 2,    0,  1,  0,    0, 51, 0,    0,    1,  0,    0, 51, 0,    0, 1,  58,   0, 51, 58,   0, 1,  -564, 0,
    51, -564, 0,  1,  0,    0, 51, 0,    0,    1,  -57,  0, 51, -57,  0, 1,  0,    0, 51, 0,    0, 1,  0,    0,
    51, 0,    0,  1,  58,   0, 51, 58,   0,    1,  564,  0, 51, 564,  0, 1,  0,    0, 51, 0,    0, 1,  -57,  0,
    51, -57,  0,  1,  0,    0, 51, 0,    0,    1,  0,    0, 51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0,
    51, 0,    0,  1,  0,    0, 29, 0,    0,    30, -10,  0, 31, 15,   0, 32, -20,  0, 33, 25,   0, 34, -25,  0,
    35, 25,   0,  36, -15,  0, 37, 10,   0,    38, 0,    0, 39, -10,  0, 40, 10,   0, 41, -15,  0, 42, 15,   0,
    43, -10,  0,  44, 10,   0, 45, -10,  0,    46, 10,   0, 47, -10,  0, 48, 10,   0, 49, -5,   0, 50, 5,    0,
    51, 0,    0,  1,  0,    0, 51, 0,    0,    1,  0,    0, 51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0,
    51, 0,    0,  1,  0,    0, 51, 0,    0
};

u8 npc_1_hyuuu11_tex_index[] = { 0, 1, 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, 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_hyuuu1 = {
    { cKF_ckcb_r_npc_1_hyuuu1_tbl, cKF_ds_npc_1_hyuuu1_tbl, cKF_kn_npc_1_hyuuu1_tbl, cKF_c_npc_1_hyuuu1_tbl, -1, 51 },
    1.0f,
    51.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_hyuuu11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    NULL,
    aNPC_MOUTH_TEX0,
    3,
    1,
    eEC_EFFECT_KAZE,
    NULL,
    NULL,
};
