#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_kokeru_getup1_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_kokeru_getup1_tbl[] = { 2, 6, 6, 3, 5, 2, 6, 7, 6, 2,  7,  2,  3, 8, 6, 4, 8, 5,
                                         2, 7, 2, 2, 7, 3, 2, 5, 3, 2,  4,  2,  3, 6, 2, 5, 5, 5,
                                         2, 6, 2, 4, 6, 6, 2, 5, 2, 10, 10, 11, 4, 5, 4, 2, 2, 2 };

s16 cKF_c_npc_1_kokeru_getup1_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_kokeru_getup1_tbl[] = {
    1,  0,    0,     32, 0,    0,     1,  500,   0,     11, 500,   0,     15, 800,  1769,  20, 900,   0,
    25, 925,  297,   32, 1000, 0,     1,  -1000, 0,     6,  -1000, 0,     11, -875, 1506,  20, 0,     0,
    27, 0,    0,     32, 0,    0,     1,  0,     557,   11, 50,    0,     32, 0,    0,     1,  -850,  609,
    11, -800, 0,     18, -450, 1103,  25, -350,  1131,  32, 0,     0,     1,  0,    0,     32, 0,     0,
    1,  -250, 524,   6,  -100, 0,     11, -100,  0,     20, -200,  0,     25, -180, 86,    32, -175,  0,
    1,  -200, 0,     6,  -200, 0,     11, -300,  -996,  16, -650,  -1479, 20, -750, 0,     25, -600,  2069,
    32, -100, 0,     1,  200,  0,     6,  200,   0,     11, 200,   0,     20, 100,  0,     25, 70,    -334,
    32, 25,   0,     1,  0,    0,     32, 0,     0,     1,  400,   0,     6,  300,  0,     11, 450,   1819,
    14, 1048, 0,     18, 663,  -1376, 25, 550,   -732,  32, 200,   0,     1,  0,    0,     32, 0,     0,
    1,  0,    0,     25, 0,    0,     32, 0,     0,     1,  250,   0,     6,  450,  0,     11, 450,   0,
    16, -600, 0,     20, -310, 1667,  22, -250,  0,     25, -295,  0,     32, -100, 0,     1,  0,     0,
    6,  0,    0,     11, 0,    0,     20, 20,    0,     25, 15,    -53,   32, 0,    0,     1,  100,   0,
    11, 100,  0,     18, 140,  206,   32, 175,   0,     1,  -500,  0,     5,  -450, 0,     11, -1200, 0,
    16, -150, 6292,  18, 110,  0,     24, -650,  0,     28, -370,  3223,  32, -100, 0,     1,  -100,  0,
    11, -100, 0,     18, -60,  0,     24, -120,  0,     32, -25,   0,     1,  0,    0,     32, 0,     0,
    1,  800,  0,     5,  800,  0,     11, 1450,  0,     18, 150,   0,     22, 1050, 0,     27, 470,   -2999,
    32, 200,  0,     1,  0,    0,     32, 0,     0,     1,  0,     0,     32, 0,    0,     1,  270,   551,
    5,  300,  0,     11, 450,  0,     18, 500,   0,     22, -560,  0,     25, -400, 3243,  32, -100,  0,
    1,  2,    0,     24, 5,    0,     32, 0,     0,     1,  0,     0,     32, 0,    0,     1,  0,     496,
    10, 500,  768,   14, 550,  0,     24, 400,   -995,  32, 50,    0,     1,  0,    0,     26, 0,     0,
    32, 0,    0,     1,  0,    0,     32, 0,     0,     1,  -150,  0,     12, 350,  730,   16, 400,   0,
    32, 150,  0,     1,  0,    0,     32, 0,     0,     1,  0,     -513,  11, -50,  0,     32, 0,     0,
    1,  -50,  -625,  11, -50,  0,     16, -150,  -945,  20, -250,  0,     25, -150, 1482,  32, 2,     -78,
    1,  0,    0,     32, 0,    0,     1,  -450,  591,   11, -400,  0,     16, 200,  4571,  21, 650,   0,
    32, 0,    0,     1,  -50,  0,     11, 100,   0,     16, -250,  -2111, 21, -500, 0,     32, 58,    0,
    1,  0,    495,   11, 50,   0,     16, -103,  -1703, 21, -400,  0,     32, -564, 0,     1,  0,     0,
    32, 0,    0,     1,  -200, 0,     11, -1050, 0,     16, -550,  5770,  21, -100, 0,     27, -400,  0,
    32, -57,  468,   1,  0,    0,     32, 0,     0,     1,  850,   0,     14, 30,   -4007, 23, -450,  0,
    32, 0,    0,     1,  -150, 0,     6,  -150,  0,     11, 100,   0,     14, -100, -3446, 23, -450,  0,
    32, 58,   0,     1,  -138, 467,   6,  -50,   0,     11, -50,   0,     14, 50,   1859,  23, 450,   0,
    32, 564,  0,     1,  0,    0,     32, 0,     0,     1,  -400,  -1691, 11, -950, 0,     17, -350,  2878,
    22, -100, 0,     32, -57,  468,   1,  0,     0,     32, 0,     0,     1,  -104, -800,  6,  -276,  -1949,
    8,  -296, 5429,  10, 586,  9083,  11, 613,   -3063, 12, 382,   -5824, 13, 224,  -3486, 16, 268,   2795,
    22, 742,  1798,  32, 920,  0,     1,  386,   1414,  8,  807,   2070,  9,  854,  103,   10, 841,   -441,
    11, 825,  -621,  12, 799,  -1363, 13, 734,   -1864, 16, 677,   0,     22, 675,  0,     32, 0,     0,
    1,  -181, -814,  4,  -285, -1449, 6,  -438,  -3287, 8,  -548,  3889,  10, 178,  6620,  11, 113,   -5789,
    12, -208, -8430, 13, -448, -6269, 16, -593,  2280,  22, -188,  1708,  32, -135, 0,     1,  60,    -123,
    5,  0,    0,     17, 0,    0,     32, 0,     0,     1,  400,   482,   12, 300,  0,     20, 400,   0,
    27, 50,   -799,  32, 0,    0,     1,  0,     -147,  12, 0,     0,     21, 10,   70,    32, 0,     -273,
    1,  0,    0,     32, 0,    0,     1,  0,     0,     32, 0,     0,     1,  0,    0,     32, 0,     0
};

u8 npc_1_kokeru_getup10_tex_index[] = { 5, 5, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
                                        3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 };

u8 npc_1_kokeru_getup11_tex_index[] = { 7, 7, 7, 7, 7, 7, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4,
                                        4, 4, 4, 4, 1, 2, 2, 2, 4, 4, 4, 1, 2, 2, 2, 0 };

aNPC_Animation_c cKF_ba_r_npc_1_kokeru_getup1 = {
    { cKF_ckcb_r_npc_1_kokeru_getup1_tbl, cKF_ds_npc_1_kokeru_getup1_tbl, cKF_kn_npc_1_kokeru_getup1_tbl,
      cKF_c_npc_1_kokeru_getup1_tbl, -1, 32 },
    1.0f,
    32.0f,
    cKF_FRAMECONTROL_STOP,
    0.0f,
    npc_1_kokeru_getup11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_kokeru_getup10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    -1,
    -1,
    NULL,
    NULL,
};
