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

s16 cKF_c_npc_1_tired1_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_tired1_tbl[] = {
    1,  0,    0,    21, 0,    0,    1,  950,  0,    11, 850,  0,     21, 950,  0,    1,  0,    0,    11, -100, 0,
    21, 0,    0,    1,  0,    0,    21, 0,    0,    1,  -50,  0,     11, -100, 0,    21, -50,  0,    1,  0,    0,
    21, 0,    0,    1,  -175, 0,    6,  -220, -456, 11, -280, 0,     16, -220, 457,  21, -175, 0,    1,  -275, 0,
    11, -520, 0,    21, -275, 0,    1,  80,   0,    6,  115,  349,   11, 175,  0,    16, 115,  -350, 21, 80,   0,
    1,  0,    0,    21, 0,    0,    1,  425,  0,    11, 690,  0,     21, 425,  0,    1,  0,    0,    21, 0,    0,
    1,  0,    0,    21, 0,    0,    1,  -190, 0,    11, -245, 0,     21, -190, 0,    1,  -10,  0,    11, 18,   0,
    21, -10,  0,    1,  175,  0,    6,  220,  443,  11, 280,  0,     16, 220,  -441, 21, 175,  0,    1,  -275, 0,
    11, -520, 0,    21, -275, 0,    1,  -80,  0,    6,  -115, -350,  11, -175, 0,    16, -115, 351,  21, -80,  0,
    1,  0,    0,    21, 0,    0,    1,  425,  0,    11, 690,  0,     21, 425,  0,    1,  0,    0,    21, 0,    0,
    1,  0,    0,    21, 0,    0,    1,  -190, 0,    11, -245, 0,     21, -190, 0,    1,  10,   0,    11, -18,  0,
    21, 10,   0,    1,  0,    0,    21, 0,    0,    1,  149,  -676,  6,  75,   0,    16, 225,  0,    21, 149,  -676,
    1,  0,    0,    21, 0,    0,    1,  0,    0,    21, 0,    0,     1,  180,  -593, 9,  0,    0,    19, 200,  0,
    21, 180,  -593, 1,  0,    0,    21, 0,    0,    1,  0,    0,     21, 0,    0,    1,  -183, 574,  4,  -150, 0,
    14, -300, 0,    21, -183, 574,  1,  0,    0,    21, 0,    0,     1,  429,  360,  4,  450,  0,    14, 350,  0,
    21, 429,  360,  1,  -194, 742,  4,  -150, 0,    14, -350, 0,     21, -194, 742,  1,  -516, 276,  4,  -500, 0,
    14, -575, 0,    21, -516, 276,  1,  0,    0,    21, 0,    0,     1,  -395, -323, 2,  -400, 0,    12, -200, 0,
    21, -395, -323, 1,  0,    0,    21, 0,    0,    1,  -429, -381,  4,  -450, 0,    14, -350, 0,    21, -429, -381,
    1,  -194, 742,  4,  -150, 0,    14, -350, 0,    21, -194, 742,   1,  516,  -281, 4,  500,  0,    14, 575,  0,
    21, 516,  -281, 1,  0,    0,    21, 0,    0,    1,  -395, -323,  2,  -400, 0,    12, -200, 0,    21, -395, -323,
    1,  0,    0,    21, 0,    0,    1,  0,    0,    21, 0,    0,     1,  0,    0,    21, 0,    0,    1,  0,    0,
    21, 0,    0,    1,  14,   -46,  10, -15,  0,    20, 15,   0,     21, 14,   -46,  1,  -84,  -465, 2,  -90,  0,
    12, 135,  0,    21, -84,  -465, 1,  14,   -46,  10, -15,  0,     20, 15,   0,    21, 14,   -46,  1,  0,    0,
    21, 0,    0,    1,  -200, 1006, 6,  -100, 0,    11, -200, -1003, 16, -300, 0,    21, -200, 1002, 1,  0,    0,
    21, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_tired1 = {
    { cKF_ckcb_r_npc_1_tired1_tbl, cKF_ds_npc_1_tired1_tbl, cKF_kn_npc_1_tired1_tbl, cKF_c_npc_1_tired1_tbl, -1, 21 },
    1.0f,
    21.0f,
    cKF_FRAMECONTROL_REPEAT,
    -8.0f,
    NULL,
    aNPC_EYE_TEX0,
    3,
    NULL,
    aNPC_MOUTH_TEX0,
    4,
    11,
    eEC_EFFECT_IKIGIRE,
    NULL,
    NULL,
};
