#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_gstwait1_tbl[] = { 56, 2, 0, 3, 2, 2, 0, 3, 2, 2, 0, 2, 2, 2, 0, 3, 2, 0, 3, 2, 0, 3, 0, 2, 0, 0 };

s16 cKF_kn_npc_1_gstwait1_tbl[] = { 5, 7, 5, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 4, 4, 4, 4, 4, 4, 4, 5, 4, 2 };

s16 cKF_c_npc_1_gstwait1_tbl[] = { 0,   0, 900, 0,   0, 0, 0, 1800, -175, 0,    0, 0, 0, 0,    0, 1800, 175, 0, 0,
                                   0,   0, 0,   900, 0, 0, 0, 0,    0,    0,    0, 0, 0, -900, 0, 0,    0,   0, 0,
                                   900, 0, 0,   0,   0, 0, 0, 0,    0,    -900, 0, 0, 0, 0,    0, 0,    0,   0, -900 };

s16 cKF_ds_npc_1_gstwait1_tbl[] = {
    1,  0,    404,  17, 200,  2,   33, 0,    -374, 49, -200, 0,    65, 0,    438, 1,  1000, 0,   6,  1013, 160,
    17, 1142, 0,    33, 900,  0,   49, 1142, 0,    61, 1011, -148, 65, 1000, 0,   1,  0,    0,   17, 32,   0,
    33, 12,   0,    49, 32,   0,   65, 0,    0,    1,  0,    0,    33, -40,  0,   65, 0,    0,   1,  -100, 0,
    17, 0,    0,    33, -135, 0,   49, 0,    0,    65, -100, 0,    1,  25,   0,   17, 0,    0,   33, 25,   0,
    49, 0,    0,    65, 25,   0,   1,  200,  0,    17, 0,    0,    33, 245,  0,   49, 0,    0,   65, 200,  0,
    1,  -100, 0,    17, 50,   0,   33, -145, 0,    49, 50,   0,    65, -100, 0,   1,  -100, 0,   17, 0,    0,
    33, -135, 0,    49, 0,    0,   65, -100, 0,    1,  -25,  0,    17, 0,    0,   33, -25,  0,   49, 0,    0,
    65, -25,  0,    1,  200,  0,   17, 0,    0,    33, 245,  0,    49, 0,    0,   65, 200,  0,   1,  -100, 0,
    17, 50,   0,    33, -145, 0,   49, 50,   0,    65, -100, 0,    1,  60,   0,   17, -60,  0,   33, 60,   0,
    49, -60,  0,    65, 60,   0,   1,  82,   1348, 7,  170,  0,    21, -170, 0,   37, 170,  0,   53, -170, 0,
    65, 82,   1348, 1,  2,    -29, 3,  0,    0,    35, 58,   0,    65, 2,    -36, 1,  58,   316, 9,  80,   0,
    41, -80,  0,    65, 58,   294, 1,  -564, 240,  9,  -550, 0,    41, -650, 0,   65, -564, 252, 1,  -57,  468,
    13, 0,    0,    45, -180, 0,   65, -57,  468,  1,  58,   317,  9,  80,   0,   41, -80,  0,   65, 58,   293,
    1,  564,  -272, 9,  550,  0,   41, 650,  0,    65, 564,  -266, 1,  -57,  468, 13, 0,    0,   45, -180, 0,
    65, -57,  468,  1,  0,    0,   17, 24,   0,    33, 0,    0,    49, 24,   0,   65, 0,    0,   1,  0,    -43,
    17, -16,  0,    49, 16,   0,   65, 0,    -41,  1,  0,    0,    65, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_gstwait1 = {
    { cKF_ckcb_r_npc_1_gstwait1_tbl, cKF_ds_npc_1_gstwait1_tbl, cKF_kn_npc_1_gstwait1_tbl, cKF_c_npc_1_gstwait1_tbl, -1,
      65 },
    1.0f,
    65.0f,
    cKF_FRAMECONTROL_REPEAT,
    -5.0f,
    NULL,
    aNPC_EYE_TEX1,
    -1,
    NULL,
    aNPC_MOUTH_TEX0,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
