#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_taisou1_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_taisou1_tbl[] = { 2, 9,  7, 2, 6,  2,  4, 8,  8, 2, 6, 2, 2, 8, 6, 4, 8,  8,
                                   2, 6,  2, 2, 8,  6,  2, 9,  2, 2, 9, 2, 2, 8, 2, 8, 11, 10,
                                   2, 11, 2, 8, 11, 10, 2, 11, 2, 2, 2, 2, 2, 8, 2, 2, 2,  2 };

s16 cKF_c_npc_1_taisou1_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_taisou1_tbl[] = {
    1,  0,    0,     81, 0,    0,     1,  900,  0,     19, 1200, 163,  23, 1200, -171, 39, 1100, -110, 43, 1100, 110,
    59, 1000, -185,  63, 1000, 165,   70, 1000, 0,     81, 900,  0,    1,  0,    0,    19, 100,  0,    23, 100,  0,
    39, 50,   0,     43, 50,   0,     59, 0,    0,     81, 0,    0,    1,  0,    0,    81, 0,    0,    1,  -80,  0,
    19, -24,  0,     23, -24,  0,     39, 0,    0,     70, 0,    0,    81, -80,  0,    1,  0,    0,    81, 0,    0,
    1,  -215, 0,     19, -175, 0,     70, -175, 0,     81, -215, 0,    1,  -355, 0,    19, 10,   0,    23, 10,   0,
    39, 8,    0,     43, 8,    0,     59, -100, 0,     70, -100, 0,    81, -355, 0,    1,  95,   0,    19, 5,    0,
    23, 5,    0,     39, 0,    0,     43, 0,    0,     59, 25,   0,    70, 25,   0,    81, 95,   0,    1,  0,    0,
    81, 0,    0,     1,  595,  0,     19, 0,    0,     43, 0,    0,    59, 200,  0,    70, 200,  0,    81, 595,  0,
    1,  0,    0,     81, 0,    0,     1,  0,    0,     81, 0,    0,    1,  -310, 0,    19, 180,  0,    23, 180,  0,
    39, 75,   0,     43, 75,   0,     59, -100, 0,     70, -100, 0,    81, -310, 0,    1,  8,    0,    19, -25,  0,
    23, -25,  0,     39, 0,    0,     70, 0,    0,     81, 8,    0,    1,  215,  0,    19, 175,  0,    70, 175,  0,
    81, 215,  0,     1,  -355, 0,     19, 10,   0,     23, 10,   0,    39, 8,    0,    43, 8,    0,    59, -100, 0,
    70, -100, 0,     81, -355, 0,     1,  -95,  0,     19, -5,   0,    23, -5,   0,    39, 0,    0,    43, 0,    0,
    59, -25,  0,     70, -25,  0,     81, -95,  0,     1,  0,    0,    81, 0,    0,    1,  595,  0,    19, 0,    0,
    43, 0,    0,     59, 200,  0,     70, 200,  0,     81, 595,  0,    1,  0,    0,    81, 0,    0,    1,  0,    0,
    81, 0,    0,     1,  -310, 0,     19, 180,  0,     23, 180,  0,    39, 75,   0,    43, 75,   0,    59, -100, 0,
    70, -100, 0,     81, -310, 0,     1,  -8,   0,     19, 25,   0,    23, 25,   0,    39, 0,    0,    70, 0,    0,
    81, -8,   0,     1,  0,    0,     81, 0,    0,     1,  60,   0,    10, 200,  0,    19, -100, 0,    23, -100, 0,
    39, 25,   0,     43, 25,   0,     59, 125,  0,     70, 125,  0,    81, 60,   0,    1,  0,    0,    81, 0,    0,
    1,  0,    0,     81, 0,    0,     1,  60,   0,     11, 200,  0,    21, -150, 0,    25, -25,  0,    41, 75,   0,
    45, 25,   0,     61, 175,  0,     72, 125,  0,     81, 60,   0,    1,  0,    0,    81, 0,    0,    1,  0,    0,
    81, 0,    0,     1,  -150, 0,     19, 250,  244,   23, 250,  -240, 39, 70,   -160, 43, 70,   170,  59, 0,    -156,
    70, 0,    0,     81, -150, 0,     1,  0,    0,     81, 0,    0,    1,  0,    0,    10, -50,  -915, 14, -450, -517,
    23, -500, 0,     39, 0,    398,   43, 0,    -434,  59, 0,    0,    81, 0,    0,    1,  250,  0,    6,  100,  -2379,
    10, -500, -3626, 12, -620, -296,  19, -500, 0,     23, -500, 0,    39, 0,    342,  43, 0,    -333, 59, 0,    0,
    70, 0,    0,     81, 250,  0,     1,  -500, 0,     6,  -450, 726,  14, 200,  3714, 19, 400,  0,    23, 400,  0,
    39, 0,    -380,  43, 0,    0,     59, -565, -274,  70, -565, 0,    81, -500, 0,    1,  0,    0,    81, 0,    0,
    1,  0,    0,     19, -57,  0,     21, -57,  0,     23, -57,  0,    39, 0,    0,    41, 0,    0,    43, 0,    0,
    59, 0,    0,     61, 0,    0,     70, 0,    0,     81, 0,    0,    1,  0,    0,    81, 0,    0,    1,  0,    0,
    10, 50,   911,   14, 450,  521,   23, 500,  0,     39, 0,    -398, 43, 0,    391,  59, 0,    0,    81, 0,    0,
    1,  250,  0,     6,  100,  -2379, 10, -500, -3626, 12, -620, -296, 19, -500, 0,    23, -500, 0,    39, 0,    342,
    43, 0,    -333,  59, 0,    0,     70, 0,    0,     81, 250,  0,    1,  500,  0,    6,  450,  -758, 14, -200, -3986,
    19, -400, 0,     23, -400, 0,     39, 0,    375,   43, 0,    0,    59, 550,  514,  70, 550,  0,    81, 500,  0,
    1,  0,    0,     81, 0,    0,     1,  0,    0,     19, -56,  0,    21, -56,  0,    23, -56,  0,    39, 0,    0,
    41, 0,    0,     43, 0,    0,     59, 0,    0,     61, 0,    0,    70, 0,    0,    81, 0,    0,    1,  0,    0,
    81, 0,    0,     1,  0,    0,     81, 0,    0,     1,  0,    0,    81, 0,    0,    1,  0,    0,    81, 0,    0,
    1,  0,    0,     81, 0,    0,     1,  -100, 0,     19, 140,  138,  23, 140,  -137, 39, 50,   -99,  43, 50,   102,
    59, 0,    -104,  70, 0,    0,     81, -100, 0,     1,  0,    0,    81, 0,    0,    1,  0,    0,    81, 0,    0,
    1,  0,    0,     81, 0,    0,     1,  0,    0,     81, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_taisou1 = {
    { cKF_ckcb_r_npc_1_taisou1_tbl, cKF_ds_npc_1_taisou1_tbl, cKF_kn_npc_1_taisou1_tbl, cKF_c_npc_1_taisou1_tbl, -1,
      81 },
    1.0f,
    81.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX0,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
