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

s16 cKF_c_npc_1_turi_wait1_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_turi_wait1_tbl[] = {
    1,  0,    0,   33, 0,    0,   1,  1000, 0,    17, 950,  0,    33, 1000, 0,   1,  0,    0,   33, 0,    0,
    1,  0,    0,   33, 0,    0,   1,  0,    0,    17, 25,   0,    33, 0,    0,   1,  0,    0,   33, 0,    0,
    1,  -175, 0,   17, -170, 0,   33, -175, 0,    1,  -100, 0,    17, -165, 0,   33, -100, 0,   1,  25,   0,
    17, 48,   0,   33, 25,   0,   1,  0,    0,    17, 0,    0,    33, 0,    0,   1,  200,  0,   17, 430,  0,
    33, 200,  0,   1,  0,    0,   17, 0,    0,    33, 0,    0,    1,  0,    0,   17, 0,    0,   33, 0,    0,
    1,  -100, 0,   17, -235, 0,   33, -100, 0,    1,  0,    0,    17, 10,   0,   33, 0,    0,   1,  175,  0,
    17, 170,  0,   33, 175,  0,   1,  -100, 0,    17, -165, 0,    33, -100, 0,   1,  -25,  0,   17, -48,  0,
    33, -25,  0,   1,  0,    0,   17, 0,    0,    33, 0,    0,    1,  200,  0,   17, 430,  0,   33, 200,  0,
    1,  0,    0,   17, 0,    0,   33, 0,    0,    1,  0,    0,    17, 0,    0,   33, 0,    0,   1,  -100, 0,
    17, -235, 0,   33, -100, 0,   1,  0,    0,    17, -10,  0,    33, 0,    0,   1,  0,    0,   33, 0,    0,
    1,  43,   407, 2,  60,   619, 10, 120,  0,    18, 60,   -595, 26, 0,    0,   33, 43,   407, 1,  0,    0,
    33, 0,    0,   1,  0,    0,   33, 0,    0,    1,  38,   332,  4,  80,   792, 12, 160,  0,   20, 100,  -600,
    28, 20,   0,   33, 38,   332, 1,  0,    0,    33, 0,    0,    1,  150,  0,   33, 150,  0,   1,  -50,  -113,
    3,  -54,  0,   19, 0,    0,   33, -50,  -116, 1,  0,    0,    33, 0,    0,   1,  0,    0,   17, 200,  0,
    33, 0,    0,   1,  0,    0,   17, -150, 0,    33, 0,    0,    1,  -500, 0,   17, -525, 0,   33, -500, 0,
    1,  0,    0,   17, 0,    0,   33, 0,    0,    1,  -350, 500,  9,  -250, 0,   25, -450, 0,   33, -350, 508,
    1,  0,    0,   17, 0,    0,   33, 0,    0,    1,  23,   50,   4,  25,   0,   19, 0,    0,   33, 23,   50,
    1,  -490, -81, 4,  -494, 0,   19, -450, 0,    33, -490, -81,  1,  526,  0,   33, 526,  0,   1,  0,    0,
    33, 0,    0,   1,  0,    0,   33, 0,    0,    1,  0,    0,    33, 0,    0,   1,  195,  0,   33, 195,  0,
    1,  415,  0,   33, 415,  0,   1,  -77,  0,    33, -77,  0,    1,  -150, 0,   33, -150, 0,   1,  -30,  101,
    5,  -20,  0,   20, -70,  0,   33, -30,  101,  1,  0,    -53,  9,  -10,  0,   25, 10,   0,   33, 0,    -52,
    1,  0,    0,   33, 0,    0,   1,  0,    0,    33, 0,    0,    1,  0,    0,   33, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_turi_wait1 = {
    { cKF_ckcb_r_npc_1_turi_wait1_tbl, cKF_ds_npc_1_turi_wait1_tbl, cKF_kn_npc_1_turi_wait1_tbl,
      cKF_c_npc_1_turi_wait1_tbl, -1, 33 },
    1.0f,
    33.0f,
    cKF_FRAMECONTROL_REPEAT,
    -5.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX1,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
