#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_taisou2_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_taisou2_tbl[] = {
    2, 5,  5, 2, 5, 2, 5, 5,  5, 2, 4, 2, 2, 5,  5, 5, 5, 5, 2, 4, 2, 2,  5, 5, 2, 13, 2,
    2, 12, 2, 2, 9, 2, 8, 10, 8, 2, 8, 2, 8, 10, 8, 2, 8, 2, 2, 2, 2, 14, 8, 2, 2, 2,  2
};

s16 cKF_c_npc_1_taisou2_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_taisou2_tbl[] = {
    1,   200,   0,     161, 200,   0,     1,   900,   0,     41,  1200,  0,    81,  975,   0,     121, 1200,  0,
    161, 900,   0,     1,   0,     0,     41,  300,   0,     81,  -100,  0,    121, 300,   0,     161, 0,     0,
    1,   0,     0,     161, 0,     0,     1,   65,    0,     41,  -100,  0,    81,  -15,   0,     121, -100,  0,
    161, 65,    0,     1,   0,     0,     161, 0,     0,     1,   -95,   0,    41,  -168,  0,     81,  -195,  0,
    121, -168,  0,     161, -95,   0,     1,   -195,  0,     41,  40,    0,    81,  -93,   0,     121, 40,    0,
    161, -195,  0,     1,   190,   0,     41,  155,   0,     81,  135,   0,    121, 155,   0,     161, 190,   0,
    1,   0,     0,     161, 0,     0,     1,   530,   0,     41,  0,     0,    121, 0,     0,     161, 530,   0,
    1,   0,     0,     161, 0,     0,     1,   0,     0,     161, 0,     0,    1,   -235,  0,     41,  178,   0,
    81,  105,   0,     121, 178,   0,     161, -235,  0,     1,   -155,  0,    41,  -185,  0,     81,  -108,  0,
    121, -185,  0,     161, -155,  0,     1,   95,    0,     41,  168,   0,    81,  195,   0,     121, 168,   0,
    161, 95,    0,     1,   -195,  0,     41,  40,    0,     81,  -93,   0,    121, 40,    0,     161, -195,  0,
    1,   -190,  0,     41,  -155,  0,     81,  -135,  0,     121, -155,  0,    161, -190,  0,     1,   0,     0,
    161, 0,     0,     1,   530,   0,     41,  0,     0,     121, 0,     0,    161, 530,   0,     1,   0,     0,
    161, 0,     0,     1,   0,     0,     161, 0,     0,     1,   -235,  0,    41,  178,   0,     81,  105,   0,
    121, 178,   0,     161, -235,  0,     1,   155,   0,     41,  185,   0,    81,  108,   0,     121, 185,   0,
    161, 155,   0,     1,   0,     0,     161, 0,     0,     1,   60,    0,    11,  200,   0,     26,  0,     -303,
    41,  -50,   0,     56,  0,     293,   71,  200,   0,     81,  110,   0,    91,  200,   0,     106, 0,     -303,
    121, -50,   0,     136, 0,     294,   151, 200,   0,     161, 60,    0,    1,   0,     0,     161, 0,     0,
    1,   0,     0,     161, 0,     0,     1,   0,     -440,  6,   -50,   0,    21,  150,   0,     46,  -200,  0,
    56,  -150,  299,   71,  150,   0,     86,  -50,   0,     101, 150,   0,    126, -200,  0,     136, -150,  298,
    151, 150,   0,     161, 0,     -440,  1,   0,     0,     161, 0,     0,    1,   0,     0,     161, 0,     0,
    1,   -200,  0,     21,  150,   624,   41,  350,   0,     61,  125,   -689, 81,  -279,  0,     101, 150,   656,
    121, 350,   0,     141, 150,   -633,  161, -200,  0,     1,   0,     0,    161, 0,     0,     1,   800,   0,
    21,  -400,  -1490, 46,  -1000, -762,  66,  -1535, -649,  81,  -1650, 0,    106, -1000, 992,   131, -350,  738,
    161, 800,   0,     1,   -800,  0,     6,   -550,  2025,  21,  -250,  0,    46,  -850,  -1143, 66,  -1825, -1254,
    81,  -2050, 0,     106, -800,  1498,  131, -250,  754,   141, -50,   -381, 161, -800,  0,     1,   -800,  0,
    21,  255,   1438,  46,  900,   503,   66,  1385,  650,   81,  1500,  0,    106, 750,   -1001, 131, 200,   -746,
    161, -800,  0,     1,   0,     0,     161, 0,     0,     1,   -600,  0,    16,  0,     0,     31,  0,     0,
    51,  -450,  0,     81,  0,     0,     106, -450,  0,     136, 0,     0,    161, -600,  0,     1,   0,     0,
    161, 0,     0,     1,   -800,  0,     21,  400,   1500,  46,  1000,  750,  66,  1535,  639,   81,  1650,  0,
    106, 1000,  -1011, 131, 350,   -720,  161, -800,  0,     1,   -950,  0,    6,   -700,  2022,  21,  -300,  0,
    46,  -900,  -1150, 66,  -1835, -1252, 81,  -2050, 0,     106, -800,  1498, 131, -250,  754,   141, -50,   -381,
    161, -950,  0,     1,   800,   0,     21,  -250,  -1473, 46,  -900,  -511, 66,  -1385, -645,  81,  -1500, 0,
    106, -750,  992,   131, -200,  739,   161, 800,   0,     1,   0,     0,    161, 0,     0,     1,   -600,  0,
    16,  0,     0,     31,  0,     0,     51,  -450,  0,     81,  0,     0,    106, -450,  0,     136, 0,     0,
    161, -600,  0,     1,   0,     0,     161, 0,     0,     1,   0,     0,    161, 0,     0,     1,   0,     0,
    161, 0,     0,     1,   0,     0,     161, 0,     0,     1,   0,     0,    21,  0,     0,     26,  25,    0,
    36,  -50,   0,     46,  50,    0,     56,  -25,   0,     61,  0,     0,    101, 0,     0,     106, 25,    0,
    116, -50,   0,     126, 50,    0,     136, -25,   0,     141, 0,     0,    161, 0,     0,     1,   -60,   0,
    11,  0,     296,   41,  200,   0,     71,  60,    -72,   91,  60,    73,   121, 200,   0,     151, 0,     -298,
    161, -60,   0,     1,   0,     0,     161, 0,     0,     1,   0,     0,    161, 0,     0,     1,   0,     0,
    161, 0,     0,     1,   0,     0,     161, 0,     0
};

aNPC_Animation_c cKF_ba_r_npc_1_taisou2 = {
    { cKF_ckcb_r_npc_1_taisou2_tbl, cKF_ds_npc_1_taisou2_tbl, cKF_kn_npc_1_taisou2_tbl, cKF_c_npc_1_taisou2_tbl, -1,
      161 },
    1.0f,
    161.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX0,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
