#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_aisatu2_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_aisatu2_tbl[] = { 2, 2, 6, 2, 5, 2, 2, 5, 5, 2, 4, 2, 2, 4, 2, 2, 5, 5, 2, 4, 2, 2, 4, 2, 2, 5, 2,
                                   2, 5, 2, 2, 5, 2, 4, 5, 6, 2, 4, 4, 4, 5, 6, 2, 4, 4, 2, 2, 2, 2, 4, 2, 2, 7, 2 };

s16 cKF_c_npc_1_aisatu2_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_aisatu2_tbl[] = {
    1,  0,    0,     31, 0,    0,     1,  1000, 0,     31, 1000, 0,    1,  0,    0,     7,  0,    0,    12, -25,  -359,
    16, -75,  0,     23, -25,  204,   31, 0,    0,     1,  0,    0,    31, 0,    0,     1,  0,    0,    6,  0,    0,
    12, -50,  -74,   20, -50,  76,    31, 0,    0,     1,  0,    0,    31, 0,    0,     1,  -175, 0,    31, -175, 0,
    1,  -100, 0,     6,  -100, 0,     12, -125, -89,   20, -125, 89,   31, -100, 0,     1,  25,   0,    6,  25,   0,
    12, 8,    -55,   20, 8,    57,    31, 25,   0,     1,  0,    0,    31, 0,    0,     1,  200,  0,    6,  200,  0,
    16, 50,   0,     31, 200,  0,     1,  0,    0,     31, 0,    0,    1,  0,    0,     31, 0,    0,    1,  -100, 0,
    6,  -100, 0,     16, 25,   0,     31, -100, 0,     1,  0,    0,    31, 0,    0,     1,  175,  0,    31, 175,  0,
    1,  -100, 0,     6,  -100, 0,     12, -125, -91,   20, -125, 91,   31, -100, 0,     1,  -25,  0,    6,  -25,  0,
    12, -8,   58,    20, -8,   -58,   31, -25,  0,     1,  0,    0,    31, 0,    0,     1,  200,  0,    6,  200,  0,
    16, 50,   0,     31, 200,  0,     1,  0,    0,     31, 0,    0,    1,  0,    0,     31, 0,    0,    1,  -100, 0,
    6,  -100, 0,     16, 25,   0,     31, -100, 0,     1,  0,    0,    31, 0,    0,     1,  0,    0,    31, 0,    0,
    1,  60,   0,     9,  0,    -1129, 15, -225, -1128, 21, -200, 774,  31, 60,   0,     1,  0,    0,    31, 0,    0,
    1,  0,    0,     31, 0,    0,     1,  82,   0,     7,  120,  -268, 15, -200, -1496, 23, -250, 1063, 31, 82,   0,
    1,  0,    0,     31, 0,    0,     1,  0,    0,     31, 0,    0,    1,  2,    0,     8,  -30,  -504, 16, -220, 0,
    20, -203, 318,   31, 2,    0,     1,  0,    0,     31, 0,    0,    1,  0,    0,     5,  -100, 0,    16, 300,  0,
    31, 0,    0,     1,  58,   0,     7,  -250, -2026, 16, -405, 0,    24, -343, 1495,  31, 58,   0,    1,  -564, 0,
    7,  -550, -1131, 14, -950, 0,     18, -950, 0,     25, -700, 1506, 31, -564, 0,     1,  0,    0,    31, 0,    0,
    1,  -57,  0,     11, -200, 0,     20, -200, 0,     31, -57,  0,    1,  0,    0,     11, -150, 0,    20, -150, 0,
    31, 0,    0,     1,  0,    0,     5,  100,  0,     16, -300, 0,    31, 0,    0,     1,  58,   0,    7,  -250, -2046,
    16, -405, 0,     24, -343, 1495,  31, 58,   0,     1,  564,  0,    7,  550,  1126,  14, 950,  0,    18, 950,  0,
    25, 700,  -1511, 31, 564,  0,     1,  0,    0,     31, 0,    0,    1,  -57,  0,     11, -200, 0,    20, -200, 0,
    31, -57,  0,     1,  0,    0,     11, 150,  0,     20, 150,  0,    31, 0,    0,     1,  0,    0,    31, 0,    0,
    1,  0,    0,     31, 0,    0,     1,  0,    0,     31, 0,    0,    1,  0,    0,     31, 0,    0,    1,  0,    0,
    7,  70,   211,   15, 70,   -134,  31, 0,    0,     1,  0,    0,    31, 0,    0,     1,  0,    0,    31, 0,    0,
    1,  0,    0,     10, 0,    0,     13, -200, 0,     15, -200, 0,    17, -180, 618,   20, 0,    0,    31, 0,    0,
    1,  0,    0,     31, 0,    0
};

u8 npc_1_aisatu20_tex_index[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2,
                                  2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };

u8 npc_1_aisatu21_tex_index[] = { 0, 1, 2, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
                                  5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 2, 2, 1, 0 };

aNPC_Animation_c cKF_ba_r_npc_1_aisatu2 = {
    { cKF_ckcb_r_npc_1_aisatu2_tbl, cKF_ds_npc_1_aisatu2_tbl, cKF_kn_npc_1_aisatu2_tbl, cKF_c_npc_1_aisatu2_tbl, -1,
      31 },
    1.0f,
    31.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_aisatu21_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_aisatu20_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    -1,
    -1,
    NULL,
    NULL,
};
