#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_tamanage1_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_tamanage1_tbl[] = { 5, 5, 5, 5, 5, 5, 8, 9, 7, 2, 9, 2, 2, 7, 8, 5, 6, 7, 2, 5, 2, 2, 7, 7, 2, 4, 4,
                                     2, 4, 4, 5, 5, 5, 5, 5, 5, 2, 5, 2, 5, 5, 5, 2, 5, 2, 2, 2, 2, 6, 4, 4, 2, 2, 2 };

s16 cKF_c_npc_1_tamanage1_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_tamanage1_tbl[] = {
    1,  0,    0,    7,  -100, 0,     10, -50,  0,     18, 50,   0,     26, 0,    0,     1,  900,  0,
    7,  900,  0,    10, 850,  0,     18, 950,  0,     26, 900,  0,     1,  -250, 0,     7,  -100, 0,
    10, -50,  0,    18, 250,  0,     26, -250, 0,     1,  -150, -1783, 7,  -450, 0,     10, -450, 0,
    18, 150,  0,    26, -150, -1827, 1,  50,   503,   7,  100,  0,     10, 100,  0,     18, -50,  0,
    26, 50,   514,  1,  0,    0,     7,  75,   0,     10, 75,   0,     18, -50,  0,     26, 0,    0,
    1,  -175, 0,    10, -300, 0,     18, -150, 0,     19, -160, -457,  21, -220, -1184, 22, -255, 0,
    24, -215, 975,  26, -175, 0,     1,  -265, 0,     10, -850, 0,     18, -317, 0,     20, -348, -519,
    21, -363, 0,    22, -363, 0,     24, -350, 376,   25, -315, 1938,  26, -265, 0,     1,  80,   0,
    10, 300,  0,    18, 90,   0,     19, 93,   57,    22, 99,   0,     24, 80,   0,     26, 80,   0,
    1,  0,    0,    26, 0,    0,     1,  540,  0,     10, 100,  0,     18, 440,  308,   19, 443,  -116,
    20, 429,  -590, 21, 398,  -1544, 22, 323,  0,     24, 400,  2247,  26, 540,  0,     1,  0,    0,
    26, 0,    0,    1,  0,    0,     26, 0,    0,     1,  -214, 0,     10, 300,  0,     18, -179, 0,
    21, -69,  1897, 22, 21,   874,   25, -135, -3515, 26, -214, 0,     1,  0,    0,     10, 0,    0,
    18, 15,   102,  19, 18,   97,    20, 30,   599,   22, 71,   219,   25, 26,   -1112, 26, 0,    0,
    1,  199,  853,  7,  359,  0,     10, 300,  0,     18, 300,  0,     26, 175,  248,   1,  -238, 368,
    7,  -163, 0,    10, -214, 0,     14, 100,  2611,  18, 300,  0,     26, -238, 368,   1,  -150, -755,
    4,  -279, -801, 7,  -315, 0,     10, -369, 0,     14, -300, 1012,  18, -125, 0,     26, -150, -755,
    1,  0,    0,    26, 0,    0,     1,  595,  620,   7,  700,  0,     10, 798,  0,     18, 600,  0,
    26, 595,  620,  1,  0,    0,     26, 0,    0,     1,  0,    0,     26, 0,    0,     1,  -280, -110,
    4,  -356, -959, 7,  -441, 0,     10, -470, 0,     18, -150, 0,     22, -361, 0,     26, -280, -110,
    1,  52,   146,  4,  75,   0,     7,  75,   0,     10, 154,  0,     18, 0,    0,     22, 241,  0,
    26, 52,   146,  1,  0,    0,     26, 0,    0,     1,  25,   629,   13, 175,  0,     18, -175, 0,
    26, 25,   629,  1,  75,   -805,  13, -150, 0,     20, 200,  0,     26, 75,   -770,  1,  0,    0,
    26, 0,    0,    1,  50,   1551,  13, 275,  0,     18, -75,  0,     26, 50,   1551,  1,  200,  -1049,
    13, -300, 0,    20, 350,  0,     26, 200,  -1049, 1,  -100, -1499, 10, -400, 0,     14, -150, 4430,
    18, 300,  0,    26, -100, -1499, 1,  75,   894,   7,  250,  499,   10, 278,  0,     18, 199,  -635,
    26, 75,   894,  1,  75,   470,   10, 120,  -198,  14, -50,  -805,  18, -100, 0,     26, 75,   470,
    1,  175,  0,    7,  300,  740,   10, 375,  712,   18, 450,  0,     26, 175,  0,     1,  -500, 0,
    7,  -200, 0,    10, -200, 0,     18, -400, -750,  26, -500, 0,     1,  -350, 0,     7,  -500, -1436,
    10, -600, 0,    18, -400, 669,   26, -350, 0,     1,  0,    0,     26, 0,    0,     1,  -750, 0,
    7,  -800, -730, 10, -900, 0,     18, -900, 0,     26, -750, 0,     1,  0,    0,     26, 0,    0,
    1,  0,    0,    7,  180,  2542,  14, 1053, 0,     18, 474,  -4226, 26, 0,    0,     1,  -750, 0,
    7,  -245, 1450, 14, -150, 0,     18, -300, -1997, 26, -750, 0,     1,  300,  -1329, 7,  0,    -1654,
    14, -251, 0,    18, 125,  2449,  26, 300,  -1329, 1,  0,    0,     26, 0,    0,     1,  -950, 0,
    7,  -450, 2229, 14, -250, 0,     18, -350, -1745, 26, -950, 0,     1,  0,    0,     26, 0,    0,
    1,  0,    0,    26, 0,    0,     1,  0,    0,     26, 0,    0,     1,  0,    0,     26, 0,    0,
    1,  250,  2261, 7,  650,  750,   10, 675,  0,     14, 200,  -6061, 18, -450, 0,     26, 250,  2242,
    1,  100,  -501, 10, -25,  0,     18, 150,  0,     26, 100,  -504,  1,  0,    0,     10, -50,  0,
    18, 0,    0,    26, 0,    0,     1,  0,    0,     26, 0,    0,     1,  0,    0,     26, 0,    0,
    1,  0,    0,    26, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_tamanage1 = {
    { cKF_ckcb_r_npc_1_tamanage1_tbl, cKF_ds_npc_1_tamanage1_tbl, cKF_kn_npc_1_tamanage1_tbl, cKF_c_npc_1_tamanage1_tbl,
      -1, 26 },
    1.0f,
    26.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX0,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
