#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_youi1_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_youi1_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, 3, 2,
                                 2, 3, 2, 3, 3, 3, 2, 3, 3, 2, 2, 2, 2, 3, 3, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2 };

s16 cKF_c_npc_1_youi1_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_youi1_tbl[] = {
    1,  0,    0,    23, 0,    0,   1,  975,  0,    12, 925,  0, 23, 975,  0,   1,  0,    0,    23, 0,    0,
    1,  0,    0,    23, 0,    0,   1,  75,   0,    12, 50,   0, 23, 75,   0,   1,  -50,  0,    23, -50,  0,
    1,  -173, 0,    12, -187, 0,   23, -173, 0,    1,  -133, 0, 12, -227, 0,   23, -133, 0,    1,  108,  0,
    12, 133,  0,    23, 108,  0,   1,  0,    0,    12, 0,    0, 23, 0,    0,   1,  435,  0,    12, 593,  0,
    23, 435,  0,    1,  0,    0,   12, 0,    0,    23, 0,    0, 1,  0,    0,   12, 0,    0,    23, 0,    0,
    1,  -225, 0,    12, -305, 0,   23, -225, 0,    1,  8,    0, 12, 8,    0,   23, 8,    0,    1,  175,  0,
    12, 187,  0,    23, 175,  0,   1,  -25,  0,    12, -163, 0, 23, -25,  0,   1,  25,   0,    12, -13,  0,
    23, 25,   0,    1,  0,    0,   12, 0,    0,    23, 0,    0, 1,  200,  0,   12, 453,  0,    23, 200,  0,
    1,  0,    0,    12, 0,    0,   23, 0,    0,    1,  0,    0, 12, 0,    0,   23, 0,    0,    1,  -105, 0,
    12, -237, 0,    23, -105, 0,   1,  -5,   0,    12, -5,   0, 23, -5,   0,   1,  0,    0,    23, 0,    0,
    1,  -250, 0,    12, -200, 0,   23, -250, 0,    1,  0,    0, 23, 0,    0,   1,  0,    0,    23, 0,    0,
    1,  0,    -514, 12, 0,    509, 23, 0,    -513, 1,  0,    0, 23, 0,    0,   1,  100,  -101, 12, 100,  101,
    23, 100,  -101, 1,  100,  0,   12, 75,   0,    23, 100,  0, 1,  -50,  -99, 12, -50,  99,   23, -50,  -149,
    1,  250,  0,    23, 250,  0,   1,  -150, 0,    12, -100, 0, 23, -150, 0,   1,  -550, 0,    12, -525, 0,
    23, -550, 0,    1,  0,    0,   23, 0,    0,    1,  -500, 0, 23, -500, 0,   1,  0,    0,    23, 0,    0,
    1,  250,  0,    23, 250,  0,   1,  -275, 0,    12, -225, 0, 23, -275, 0,   1,  -300, -188, 12, -300, 189,
    23, -300, -192, 1,  0,    0,   23, 0,    0,    1,  0,    0, 23, 0,    0,   1,  0,    0,    23, 0,    0,
    1,  750,  0,    23, 750,  0,   1,  0,    0,    23, 0,    0, 1,  0,    0,   23, 0,    0,    1,  0,    0,
    23, 0,    0,    1,  -175, 0,   12, -125, 0,    23, -175, 0, 1,  -150, 0,   23, -150, 0,    1,  0,    0,
    23, 0,    0,    1,  0,    0,   23, 0,    0,    1,  0,    0, 23, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_youi1 = {
    { cKF_ckcb_r_npc_1_youi1_tbl, cKF_ds_npc_1_youi1_tbl, cKF_kn_npc_1_youi1_tbl, cKF_c_npc_1_youi1_tbl, -1, 23 },
    1.0f,
    23.0f,
    cKF_FRAMECONTROL_REPEAT,
    12.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX0,
    3,
    -1,
    -1,
    NULL,
    NULL,
};
