#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_tamahiroi1_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_tamahiroi1_tbl[] = { 2, 8,  3, 4, 8,  8,  11, 11, 10, 2, 11, 2, 9,  11, 11, 15, 12, 14,
                                      2, 11, 2, 2, 12, 11, 2,  10, 6,  2, 10, 6, 8,  8,  8,  8,  8,  9,
                                      2, 8,  2, 4, 10, 10, 2,  9,  2,  2, 2,  2, 11, 9,  2,  2,  2,  2 };

s16 cKF_c_npc_1_tamahiroi1_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_tamahiroi1_tbl[] = {
    1,  0,    0,     49, 0,    0,     1,  1000, 0,    9,  700,  0,     15, 775,  0,     21, 700,  0,
    27, 775,  0,     33, 700,  0,     39, 775,  0,    49, 900,  0,     1,  0,    0,     39, 0,    0,
    49, -250, 0,     1,  0,    0,     9,  100,  0,    39, 100,  0,     49, -150, -1783, 1,  0,    0,
    9,  -50,  0,     15, 50,   0,     21, -50,  0,    27, 50,   0,     33, -50,  0,     39, 50,   0,
    49, 50,   503,   1,  0,    0,     9,  0,    0,    15, 25,   0,     21, 0,    0,     27, 25,   0,
    33, 0,    0,     39, 25,   0,     49, 0,    0,    1,  -175, 0,     5,  -163, 146,   9,  -148, 0,
    15, -113, 0,     21, -148, 0,     27, -113, 0,    33, -148, 0,     39, -113, 0,     44, -194, -1013,
    48, -339, -1507, 49, -394, 0,     1,  -100, 0,    5,  -381, -2067, 9,  -568, 0,     15, -395, 0,
    21, -568, 0,     27, -395, 0,     33, -568, 0,    39, -395, 0,     44, -414, 0,     48, -331, 1086,
    49, -294, 0,     1,  25,   0,     5,  81,   184,  9,  88,   0,     15, 46,   0,     21, 88,   0,
    27, 46,   0,     33, 88,   0,     39, 46,   0,    44, 80,   430,   49, 183,  864,   1,  0,    0,
    49, 0,    0,     1,  200,  0,     5,  721,  4319, 9,  1008, 0,     15, 863,  0,     21, 1008, 0,
    27, 863,  0,     33, 1008, 0,     39, 863,  0,    44, 695,  -1747, 48, 509,  -339,  49, 515,  0,
    1,  0,    0,     49, 0,    0,     1,  0,    0,    5,  0,    0,     9,  -11,  0,     15, 0,    0,
    21, -11,  0,     27, 0,    0,     33, -11,  0,    39, 0,    0,     49, 0,    0,     1,  -100, 0,
    5,  -356, -2024, 9,  -485, 0,     15, -411, 0,    21, -485, 0,     27, -411, 0,     33, -485, 0,
    39, -411, 0,     44, -250, 1293,  48, -119, 0,    49, -126, 0,     1,  0,    0,     5,  8,    144,
    9,  29,   0,     15, 18,   0,     21, 29,   0,    27, 18,   0,     33, 29,   0,     39, 18,   0,
    45, 50,   196,   47, 59,   0,     49, 50,   -464, 1,  175,  0,     9,  175,  0,     10, 166,  -525,
    15, 81,   0,     20, 166,  513,   21, 175,  0,    22, 166,  -525,  27, 81,   0,     32, 166,  494,
    33, 175,  0,     34, 166,  -525,  39, 81,   -147, 41, 73,   -143,  46, 115,  813,   49, 199,  853,
    1,  -100, 0,     5,  -446, -2897, 9,  -681, 0,    15, -508, 0,     21, -681, 0,     27, -508, 0,
    33, -681, 0,     39, -508, 112,   41, -509, -122, 42, -514, 0,     46, -360, 1359,  49, -238, 368,
    1,  -25,  0,     9,  -150, 0,     10, -144, 544,  15, -76,  0,     20, -144, -531,  21, -150, 0,
    22, -144, 544,   27, -76,  0,     32, -144, -531, 33, -150, 0,     34, -144, 544,   41, -69,  0,
    46, -88,  -376,  49, -150, -755,  1,  0,    0,    49, 0,    0,     1,  200,  0,     5,  663,  4128,
    9,  960,  0,     15, 835,  0,     21, 960,  0,    27, 835,  0,     33, 960,  0,     39, 835,  0,
    41, 783,  -1433, 46, 610,  -447,  49, 595,  620,  1,  0,    0,     49, 0,    0,     1,  0,    0,
    49, 0,    0,     1,  -100, 0,     5,  -300, -508, 9,  -321, 0,     15, -270, 0,     21, -321, 0,
    27, -270, 0,     33, -321, 0,     39, -270, 0,    41, -229, 1164,  42, -175, 0,     46, -220, -676,
    49, -280, -110,  1,  0,    0,     5,  -36,  0,    9,  -25,  0,     15, -9,   0,     21, -25,  0,
    27, -9,   0,     33, -25,  0,     39, -9,   0,    42, 0,    111,   46, 8,    176,   49, 52,   146,
    1,  0,    0,     49, 0,    0,     1,  60,   0,    5,  75,   0,     9,  -75,  0,     15, 50,   0,
    21, -75,  0,     27, 50,   0,     33, -75,  0,    39, 50,   0,     44, -50,  0,     49, 25,   629,
    1,  0,    0,     9,  75,   0,     21, -75,  0,    33, 75,   0,     42, -50,  0,     49, 75,   -805,
    1,  0,    0,     49, 0,    0,     1,  60,   0,    5,  75,   0,     9,  -150, 0,     15, 150,  0,
    21, -150, 0,     27, 150,  0,     33, -150, 0,    39, 150,  0,     44, -150, 0,     49, 50,   1551,
    1,  0,    0,     9,  150,  0,     21, -150, 0,    33, 150,  0,     42, -100, 0,     49, 200,  -1049,
    1,  0,    0,     10, 200,  0,     15, 150,  0,    22, 50,   0,     27, 0,    0,     34, 300,  0,
    39, 250,  0,     49, -100, -1499, 1,  2,    -78,  10, -400, 0,     15, -350, 0,     22, -400, 0,
    27, -350, 0,     34, -400, 0,     39, -350, 0,    49, 75,   894,   1,  0,    0,     10, -50,  0,
    15, -25,  0,     22, 100,  0,     27, 50,   0,    34, -150, 0,     39, -100, 0,     49, 75,   470,
    1,  0,    0,     9,  150,  0,     15, 250,  0,    21, 150,  0,     27, 250,  0,     33, 150,  0,
    39, 250,  0,     49, 175,  0,     1,  58,   0,    9,  -350, 0,     15, -375, 0,     21, -350, 0,
    27, -375, 0,     33, -350, 0,     39, -375, 0,    49, -500, 0,     1,  -564, 0,     5,  -435, 0,
    9,  -450, 0,     15, -550, 0,     21, -450, 0,    27, -550, 0,     33, -450, 0,     39, -550, 0,
    49, -350, 0,     1,  0,    0,     49, 0,    0,    1,  -57,  0,     9,  -600, 0,     15, -750, 0,
    21, -900, 0,     27, -750, 0,     33, -900, 0,    39, -750, 0,     49, -750, 0,     1,  0,    0,
    49, 0,    0,     1,  0,    0,     15, -250, 0,    39, -250, 0,     49, 0,    0,     1,  58,   0,
    5,  -100, -2210, 9,  -600, 0,     15, -750, 0,    21, -600, 0,     27, -750, 0,     33, -600, 0,
    39, -750, 0,     44, -450, 0,     49, -750, 0,    1,  564,  0,     5,  400,  -2242, 9,  0,    0,
    15, 300,  0,     21, 0,    0,     27, 300,  0,    33, 0,    0,     39, 300,  0,     44, 450,  0,
    49, 300,  -1329, 1,  0,    0,     49, 0,    0,    1,  -57,  0,     5,  -250, 0,     9,  -60,  0,
    15, -750, 0,     21, -60,  0,     27, -750, 0,    33, -60,  0,     39, -750, 0,     49, -950, 0,
    1,  0,    0,     49, 0,    0,     1,  0,    0,    49, 0,    0,     1,  0,    0,     49, 0,    0,
    1,  0,    0,     49, 0,    0,     1,  0,    0,    9,  -300, 0,     11, -290, 453,   15, -150, 0,
    21, -300, 0,     23, -290, 458,   27, -150, 0,    33, -300, 0,     35, -290, 448,   39, -150, 0,
    49, 250,  2261,  1,  0,    0,     5,  -200, 0,    9,  -100, 0,     15, -150, 0,     21, -100, 0,
    27, -150, 0,     33, -100, 0,     39, -150, 0,    49, 100,  -501,  1,  0,    0,     49, 0,    0,
    1,  0,    0,     49, 0,    0,     1,  0,    0,    49, 0,    0,     1,  0,    0,     49, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_tamahiroi1 = {
    { cKF_ckcb_r_npc_1_tamahiroi1_tbl, cKF_ds_npc_1_tamahiroi1_tbl, cKF_kn_npc_1_tamahiroi1_tbl,
      cKF_c_npc_1_tamahiroi1_tbl, -1, 49 },
    1.0f,
    49.0f,
    cKF_FRAMECONTROL_STOP,
    -8.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX0,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
