#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_get_pull_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_get_pull_wait1_tbl[] = { 2, 3, 2, 2, 2, 2, 3, 3, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3,
                                          2, 3, 2, 2, 3, 3, 2, 4, 2, 2, 4, 2, 2, 4, 4, 2, 2, 2,
                                          2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2 };

s16 cKF_c_npc_1_get_pull_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_get_pull_wait1_tbl[] = {
    1,  0,    0,   17, 0,    0,   1,  975,  0,   9,  950,  0,    17, 975,  0,   1,  0,    0,   17, 0,    0,
    1,  0,    0,   17, 0,    0,   1,  60,   0,   17, 60,   0,    1,  90,   0,   17, 90,   0,   1,  -185, 0,
    9,  -188, 0,   17, -185, 0,   1,  40,   0,   9,  -71,  0,    17, 40,   0,   1,  -85,  0,   9,  -48,  0,
    17, -85,  0,   1,  0,    0,   17, 0,    0,   1,  40,   0,    9,  290,  0,   17, 40,   0,   1,  0,    0,
    17, 0,    0,   1,  0,    0,   9,  0,    0,   17, 0,    0,    1,  -15,  0,   9,  -146, 0,   17, -15,  0,
    1,  0,    0,   9,  3,    0,   17, 0,    0,   1,  180,  0,    9,  193,  0,   17, 180,  0,   1,  -260, 0,
    9,  -290, 0,   17, -260, 0,   1,  -145, 0,   9,  -159, 0,    17, -145, 0,   1,  0,    0,   17, 0,    0,
    1,  560,  0,   9,  626,  0,   17, 560,  0,   1,  0,    0,    17, 0,    0,   1,  0,    0,   17, 0,    0,
    1,  -240, 0,   9,  -274, 0,   17, -240, 0,   1,  -40,  0,    9,  -49,  0,   17, -40,  0,   1,  0,    0,
    17, 0,    0,   1,  60,   436, 5,  100,  0,   12, 20,   0,    17, 60,   436, 1,  0,    0,   17, 0,    0,
    1,  0,    0,   17, 0,    0,   1,  82,   466, 6,  140,  0,    13, 50,   0,   17, 82,   466, 1,  0,    0,
    17, 0,    0,   1,  0,    0,   17, 0,    0,   1,  100,  148,  5,  110,  0,   13, 90,   0,   17, 100,  148,
    1,  -90,  149, 5,  -80,  0,   13, -100, 0,   17, -90,  149,  1,  0,    0,   17, 0,    0,   1,  -300, 0,
    17, -300, 0,   1,  -500, 0,   17, -500, 0,   1,  0,    0,    17, 0,    0,   1,  -600, 0,   17, -600, 0,
    1,  0,    0,   17, 0,    0,   1,  0,    0,   17, 0,    0,    1,  -300, 0,   17, -300, 0,   1,  503,  0,
    17, 500,  0,   1,  0,    0,   17, 0,    0,   1,  -600, 0,    17, -600, 0,   1,  0,    0,   17, 0,    0,
    1,  0,    0,   17, 0,    0,   1,  0,    0,   17, 0,    0,    1,  0,    0,   17, 0,    0,   1,  0,    0,
    17, 0,    0,   1,  -200, 0,   17, -200, 0,   1,  -10,  -149, 5,  -20,  0,   13, 0,    0,   17, -10,  -149,
    1,  0,    0,   17, 0,    0,   1,  0,    0,   17, 0,    0,    1,  0,    0,   17, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_get_pull_wait1 = {
    { cKF_ckcb_r_npc_1_get_pull_wait1_tbl, cKF_ds_npc_1_get_pull_wait1_tbl, cKF_kn_npc_1_get_pull_wait1_tbl,
      cKF_c_npc_1_get_pull_wait1_tbl, -1, 17 },
    1.0f,
    17.0f,
    cKF_FRAMECONTROL_REPEAT,
    -5.0f,
    NULL,
    aNPC_EYE_TEX1,
    -1,
    NULL,
    aNPC_MOUTH_TEX1,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
