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

s16 cKF_c_npc_1_sanbasi1_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_sanbasi1_tbl[] = {
    1,  0,    0,     31, 0,    0,     1,  300,  0,     31, 300,  0,     1,  0,    0,    31, 0,    0,    1,  0,    0,
    31, 0,    0,     1,  300,  0,     16, 325,  0,     31, 300,  0,     1,  0,    0,    31, 0,    0,    1,  -190, -898,
    5,  -280, 0,     11, -280, 0,     21, -100, 0,     27, -100, 0,     31, -190, -898, 1,  -600, 495,  5,  -550, 0,
    11, -550, 0,     21, -650, 0,     27, -650, 0,     31, -600, 495,   1,  163,  650,  5,  225,  0,    11, 225,  0,
    21, 100,  0,     27, 100,  0,     31, 163,  650,   1,  0,    0,     31, 0,    0,    1,  475,  2154, 4,  800,  1005,
    12, 800,  -1012, 20, 300,  -1026, 28, 300,  1006,  31, 475,  2154,  1,  0,    0,    31, 0,    0,    1,  0,    0,
    31, 0,    0,     1,  18,   456,   8,  100,  0,     24, -50,  0,     31, 18,   456,  1,  18,   456,  8,  100,  0,
    24, -50,  0,     31, 18,   456,   1,  190,  -983,  5,  100,  0,     11, 100,  0,    21, 280,  0,    27, 280,  0,
    31, 190,  -983,  1,  -580, -356,  5,  -650, 0,     11, -650, 0,     21, -550, 0,    27, -550, 0,    31, -580, -356,
    1,  -164, 659,   5,  -100, 0,     11, -100, 0,     21, -228, 0,     27, -228, 0,    31, -164, 659,  1,  0,    0,
    31, 0,    0,     1,  625,  -2140, 4,  300,  -1008, 12, 300,  1011,  20, 800,  1028, 28, 800,  -997, 31, 625,  -2140,
    1,  0,    0,     31, 0,    0,     1,  0,    0,     31, 0,    0,     1,  33,   -451, 8,  -50,  0,    24, 100,  0,
    31, 33,   -451,  1,  -33,  460,   8,  50,   0,     24, -100, 0,     31, -33,  460,  1,  0,    0,    31, 0,    0,
    1,  -301, 82,    2,  -300, 0,     18, -375, 0,     31, -301, 82,    1,  15,   -360, 2,  0,    -382, 10, -50,  0,
    18, 0,    491,   25, 50,   0,     31, 15,   -360,  1,  0,    0,     31, 0,    0,    1,  -110, 206,  4,  -100, 0,
    20, -200, 0,     31, -110, 206,   1,  110,  -665,  4,  0,    -1502, 12, -150, 0,    20, 0,    1508, 27, 150,  0,
    31, 110,  -665,  1,  0,    0,     31, 0,    0,     1,  -255, -67,   5,  -260, 0,    20, -233, 0,    31, -255, -65,
    1,  0,    0,     31, 0,    0,     1,  0,    0,     31, 0,    0,     1,  -100, 0,    31, -100, 0,    1,  -650, 0,
    16, -620, 0,     31, -650, 0,     1,  0,    0,     31, 0,    0,     1,  -250, 0,    16, -200, 0,    31, -250, 0,
    1,  0,    0,     31, 0,    0,     1,  0,    0,     31, 0,    0,     1,  -100, 0,    31, -100, 0,    1,  650,  0,
    16, 620,  0,     31, 650,  0,     1,  0,    0,     31, 0,    0,     1,  -250, 0,    16, -200, 0,    31, -250, 0,
    1,  0,    0,     31, 0,    0,     1,  233,  0,     16, 233,  0,     31, 233,  0,    1,  -505, 0,    16, -515, 0,
    31, -505, 0,     1,  23,   0,     16, 55,   0,     31, 23,   0,     1,  0,    0,    31, 0,    0,    1,  -100, -152,
    11, -130, 0,     19, -110, 151,   26, -90,  0,     31, -100, -147,  1,  0,    0,    31, 0,    0,    1,  0,    0,
    31, 0,    0,     1,  0,    0,     31, 0,    0,     1,  0,    0,     31, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_sanbasi1 = {
    { cKF_ckcb_r_npc_1_sanbasi1_tbl, cKF_ds_npc_1_sanbasi1_tbl, cKF_kn_npc_1_sanbasi1_tbl, cKF_c_npc_1_sanbasi1_tbl, -1,
      31 },
    1.0f,
    31.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX1,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
