#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_tunahiki_furi1_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_tunahiki_furi1_tbl[] = { 2, 2, 18, 3, 3, 2, 7, 7,  6, 2, 7, 2, 8, 8, 9, 8, 8, 7,
                                          2, 7, 2,  4, 9, 6, 2, 12, 2, 2, 4, 2, 4, 4, 4, 3, 3, 3,
                                          2, 3, 2,  4, 4, 5, 2, 3,  2, 2, 2, 2, 4, 3, 6, 2, 8, 2 };

s16 cKF_c_npc_1_tunahiki_furi1_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_tunahiki_furi1_tbl[] = {
    1,  0,     0,    33, 0,     0,     1,  500,   0,     33, 500,   0,    1,  0,     0,    2,  53,    0,
    3,  4,     0,    4,  61,    0,     5,  16,    0,     6,  75,    0,    7,  32,    0,    8,  93,    0,
    9,  50,    0,    10, 111,   0,     11, 68,    0,     12, 129,   0,    13, 84,    0,    14, 143,   0,
    15, 96,    0,    16, 151,   0,     17, 100,   0,     33, 0,     0,    1,  450,   0,    17, 250,   0,
    33, 450,   0,    1,  -100,  0,     17, -350,  0,     33, -100,  0,    1,  0,     0,    33, 0,     0,
    1,  -700,  0,    17, -955,  0,     18, -951,  141,   22, -965,  -435, 23, -975,  0,    28, -813,  1230,
    33, -700,  0,    1,  -650,  0,     17, -475,  0,     18, -481,  -200, 20, -495,  -201, 21, -500,  0,
    23, -490,  0,    33, -650,  0,     1,  700,   0,     17, 720,   0,    20, 721,   37,   21, 724,   8,
    23, 724,   -8,   33, 700,   0,     1,  0,     0,     33, 0,     0,    1,  1200,  0,    9,  1188,  0,
    17, 1190,  0,    19, 1191,  37,    23, 1196,  38,    28, 1200,  0,    33, 1200,  0,    1,  0,     0,
    33, 0,     0,    1,  0,     0,     9,  30,    165,   17, 63,    0,    18, 55,    -314, 22, 9,     -389,
    23, 0,     0,    28, 0,     0,     33, 0,     0,     1,  -413,  0,    9,  -459,  -250, 17, -508,  0,
    18, -510,  0,    20, -506,  116,   23, -480,  315,   28, -441,  220,  33, -413,  0,    1,  -145,  0,
    9,  -179,  -240, 17, -235,  0,     18, -230,  186,   20, -203,  474,  22, -134,  1688, 23, -90,   0,
    28, -111,  -211, 33, -145,  0,     1,  675,   0,     9,  1015,  1657, 17, 1300,  0,    20, 1243,  -586,
    23, 1185,  -572, 24, 1121,  -2005, 30, 739,   -1169, 33, 675,   0,    1,  -600,  0,    9,  -540,  236,
    17, -510,  0,    20, -505,  -156,  23, -582,  -624,  28, -631,  0,    30, -614,  273,  33, -600,  0,
    1,  -1100, 0,    9,  -1380, -1276, 17, -1585, 0,     23, -1660, 0,    24, -1600, 2170, 30, -1171, 1709,
    33, -1100, 0,    1,  0,     0,     33, 0,     0,     1,  850,   0,    9,  688,   -896, 17, 525,   0,
    23, 908,   0,    24, 903,   -194,  30, 861,   -208,  33, 850,   0,    1,  0,     0,    33, 0,     0,
    1,  0,     0,    17, 125,   0,     23, 0,     0,     33, 0,     0,    1,  45,    0,    9,  225,   848,
    17, 360,   0,    20, 216,   -2372, 23, 48,    -77,   26, 40,    -77,  28, 35,    0,    30, 39,    62,
    33, 45,    0,    1,  375,   0,     17, 225,   0,     23, 354,   316,  26, 369,   94,   28, 375,   0,
    33, 375,   0,    1,  0,     0,     33, 0,     0,     1,  60,    0,    3,  -25,   0,    5,  25,    0,
    7,  -130,  0,    9,  -100,  0,     11, -265,  0,     13, -215,  0,    15, -335,  0,    17, -300,  0,
    22, -335,  -345, 27, -300,  1002,  33, 60,    0,     1,  0,     0,    33, 0,     0,    1,  0,     0,
    33, 0,     0,    1,  0,     0,     22, 0,     0,     27, -100,  0,    33, 0,     0,    1,  0,     0,
    33, 0,     0,    1,  300,   0,     17, 450,   0,     25, 425,   -309, 33, 300,   0,    1,  -150,  0,
    17, -300,  0,    25, -175,  308,   33, -150,  0,     1,  0,     0,    17, 0,     0,    25, -100,  0,
    33, 0,     0,    1,  450,   0,     17, 550,   0,     33, 450,   0,    1,  -300,  0,    17, -550,  0,
    33, -300,  0,    1,  -600,  0,     17, -850,  0,     33, -600,  0,    1,  0,     0,    33, 0,     0,
    1,  -700,  0,    17, -900,  0,     33, -700,  0,     1,  0,     0,    33, 0,     0,    1,  500,   0,
    17, 600,   0,    25, 550,   -262,  33, 500,   0,     1,  -450,  0,    17, -300,  0,    25, -350,  -385,
    33, -450,  0,    1,  250,   0,     9,  -325,  -2779, 17, -750,  0,    25, -150,  2666, 33, 250,   0,
    1,  0,     0,    33, 0,     0,     1,  -300,  0,     17, 0,     0,    33, -300,  0,    1,  0,     0,
    33, 0,     0,    1,  0,     0,     33, 0,     0,     1,  0,     0,    33, 0,     0,    1,  0,     0,
    33, 0,     0,    1,  -550,  0,     6,  -600,  0,     25, -600,  0,    33, -550,  0,    1,  50,    0,
    17, 300,   0,    33, 50,    0,     1,  -50,   0,     6,  -225,  0,    12, -200,  -493, 17, -300,  -599,
    25, -300,  751,  33, -50,   0,     1,  0,     0,     33, 0,     0,    1,  0,     0,    5,  -145,  0,
    8,  -250,  0,    11, -200,  0,     14, -250,  0,     17, -140,  0,    25, 0,     0,    33, 0,     0,
    1,  0,     0,    33, 0,     0
};

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

u8 npc_1_tunahiki_furi11_tex_index[] = { 2, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 1,
                                         2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 2, 2 };

aNPC_Animation_c cKF_ba_r_npc_1_tunahiki_furi1 = {
    { cKF_ckcb_r_npc_1_tunahiki_furi1_tbl, cKF_ds_npc_1_tunahiki_furi1_tbl, cKF_kn_npc_1_tunahiki_furi1_tbl,
      cKF_c_npc_1_tunahiki_furi1_tbl, -1, 33 },
    1.0f,
    33.0f,
    cKF_FRAMECONTROL_REPEAT,
    -5.0f,
    npc_1_tunahiki_furi11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_tunahiki_furi10_tex_index,
    aNPC_MOUTH_TEX0,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
