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

s16 cKF_c_npc_1_get_putaway_f1_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_putaway_f1_tbl[] = {
    1,  0,    0, 31, 0,    0, 1,  975,  0, 10, 975,   0, 13, 950,   0, 16, 975,  0,    19, 950,  0,   31, 1000, 0,
    1,  0,    0, 19, 0,    0, 31, 0,    0, 1,  0,     0, 31, 0,     0, 1,  60,   0,    10, 50,   0,   13, 30,   0,
    16, 50,   0, 19, 30,   0, 31, 0,    0, 1,  90,    0, 10, 50,    0, 13, 125,  0,    16, 50,   0,   19, 125,  0,
    31, 0,    0, 1,  -185, 0, 10, -190, 0, 13, -200,  0, 16, -190,  0, 19, -200, 0,    31, -175, 0,   1,  40,   0,
    10, 0,    0, 13, 38,   0, 16, 0,    0, 19, 38,    0, 31, -100,  0, 1,  -85,  0,    10, 15,   0,   13, -77,  0,
    16, 15,   0, 19, -78,  0, 31, 25,   0, 1,  0,     0, 31, 0,     0, 1,  40,   0,    10, 135,  0,   13, 0,    0,
    16, 135,  0, 19, 0,    0, 31, 200,  0, 1,  0,     0, 31, 0,     0, 1,  0,    0,    31, 0,    0,   1,  -15,  0,
    10, -65,  0, 13, 23,   0, 16, -65,  0, 19, 23,    0, 31, -100,  0, 1,  0,    0,    10, -45,  0,   13, -43,  0,
    16, -45,  0, 19, -43,  0, 31, 0,    0, 1,  180,   0, 10, 180,   0, 13, 188,  0,    16, 180,  0,   19, 188,  0,
    31, 175,  0, 1,  -260, 0, 10, -158, 0, 13, -265,  0, 16, -158,  0, 19, -265, 0,    31, -100, 0,   1,  -145, 0,
    10, -113, 0, 13, -223, 0, 16, -113, 0, 19, -223,  0, 31, -25,   0, 1,  0,    0,    31, 0,    0,   1,  560,  0,
    10, 450,  0, 13, 650,  0, 16, 450,  0, 19, 650,   0, 31, 200,   0, 1,  0,    0,    31, 0,    0,   1,  0,    0,
    10, 0,    0, 13, 0,    0, 16, 0,    0, 19, 0,     0, 31, 0,     0, 1,  -240, 0,    10, -235, 0,   13, -345, 0,
    16, -235, 0, 19, -345, 0, 31, -100, 0, 1,  -40,   0, 10, -5,    0, 13, 0,    0,    16, -5,   0,   19, 0,    0,
    31, 0,    0, 1,  0,    0, 31, 0,    0, 1,  60,    0, 13, -160,  0, 23, 80,   0,    31, 60,   0,   1,  0,    0,
    31, 0,    0, 1,  0,    0, 31, 0,    0, 1,  82,    0, 8,  150,   0, 17, -80,  0,    21, -30,  985, 25, 150,  0,
    31, 82,   0, 1,  0,    0, 31, 0,    0, 1,  0,     0, 13, 450,   0, 16, 400,  0,    19, 450,  0,   31, 0,    0,
    1,  100,  0, 13, 0,    0, 19, 2,    0, 31, 2,     0, 1,  -50,   0, 13, -100, 0,    16, 0,    0,   19, -100, 0,
    31, 0,    0, 1,  -120, 0, 13, 370,  0, 16, 320,   0, 19, 370,   0, 31, 0,    0,    1,  -700, 0,   13, 200,  0,
    16, 150,  0, 19, 200,  0, 31, 58,   0, 1,  -450,  0, 13, -160,  0, 19, -160, 0,    31, -564, 0,   1,  0,    0,
    13, 600,  0, 19, 600,  0, 31, 0,    0, 1,  -50,   0, 13, -900,  0, 16, -850, 0,    19, -900, 0,   31, -57,  468,
    1,  0,    0, 31, 0,    0, 1,  0,    0, 13, -1000, 0, 19, -1000, 0, 31, 0,    0,    1,  50,   0,   13, -600, 0,
    19, -600, 0, 31, 58,   0, 1,  300,  0, 13, 800,   0, 19, 800,   0, 31, 564,  0,    1,  0,    0,   31, 0,    0,
    1,  -57,  0, 6,  -600, 0, 13, -500, 0, 16, -450,  0, 19, -500,  0, 31, -57,  468,  1,  0,    0,   31, 0,    0,
    1,  0,    0, 10, 200,  0, 20, 130,  0, 31, 0,     0, 1,  0,     0, 6,  300,  1437, 20, 500,  0,   31, 0,    0,
    1,  0,    0, 31, 0,    0, 1,  0,    0, 13, 300,   0, 19, 300,   0, 31, 0,    0,    1,  -200, 0,   10, -300, 0,
    13, -350, 0, 16, -325, 0, 19, -350, 0, 31, 0,     0, 1,  -10,   0, 10, -50,  0,    13, -100, 0,   16, -75,  0,
    19, -100, 0, 31, 0,    0, 1,  0,    0, 31, 0,     0, 1,  0,     0, 31, 0,    0,    1,  0,    0,   31, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_get_putaway_f1 = {
    { cKF_ckcb_r_npc_1_get_putaway_f1_tbl, cKF_ds_npc_1_get_putaway_f1_tbl, cKF_kn_npc_1_get_putaway_f1_tbl,
      cKF_c_npc_1_get_putaway_f1_tbl, -1, 31 },
    1.0f,
    31.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    NULL,
    aNPC_EYE_TEX1,
    -1,
    NULL,
    aNPC_MOUTH_TEX1,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
