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

s16 cKF_c_npc_1_hirameki_d2_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_hirameki_d2_tbl[] = {
    1,  0,    0,    31, 0,    0,    1,  2400, 0,    31, 2400, 0,    1,  0,    0,    31, 0,    0,    1,  0,    0,
    31, 0,    0,    1,  80,   0,    16, 105,  0,    31, 80,   0,    1,  0,    0,    31, 0,    0,    1,  -750, 146,
    7,  -730, 0,    23, -770, 0,    31, -750, 146,  1,  -500, -149, 5,  -510, 0,    21, -450, 0,    31, -500, -149,
    1,  300,  148,  7,  320,  0,    23, 270,  0,    31, 300,  148,  1,  0,    0,    31, 0,    0,    1,  350,  296,
    7,  400,  0,    23, 300,  0,    31, 350,  296,  1,  0,    0,    31, 0,    0,    1,  0,    0,    31, 0,    0,
    1,  -100, 0,    31, -100, 0,    1,  0,    0,    31, 0,    0,    1,  750,  -149, 7,  730,  0,    23, 770,  0,
    31, 750,  -149, 1,  -500, -148, 5,  -510, 0,    21, -450, 0,    31, -500, -148, 1,  -300, -150, 7,  -320, 0,
    23, -270, 0,    31, -300, -150, 1,  0,    0,    31, 0,    0,    1,  350,  297,  7,  400,  0,    23, 300,  0,
    31, 350,  297,  1,  0,    0,    31, 0,    0,    1,  0,    0,    31, 0,    0,    1,  -100, 0,    31, -100, 0,
    1,  0,    0,    31, 0,    0,    1,  0,    0,    31, 0,    0,    1,  -250, 0,    31, -250, 0,    1,  0,    0,
    31, 0,    0,    1,  0,    0,    31, 0,    0,    1,  -100, 0,    31, -100, 0,    1,  0,    0,    31, 0,    0,
    1,  0,    0,    31, 0,    0,    1,  -50,  231,  7,  -30,  0,    16, -55,  -149, 25, -75,  36,   31, -50,  227,
    1,  0,    0,    31, 0,    0,    1,  100,  0,    15, 0,    0,    31, 100,  0,    1,  -700, 0,    15, -750, 0,
    31, -700, 0,    1,  -700, 0,    15, -610, 0,    31, -700, 0,    1,  0,    0,    31, 0,    0,    1,  -550, 0,
    31, -550, 0,    1,  0,    0,    31, 0,    0,    1,  -100, 0,    15, 0,    0,    31, -100, 0,    1,  -700, 0,
    15, -750, 0,    31, -700, 0,    1,  700,  0,    15, 610,  0,    31, 700,  0,    1,  0,    0,    31, 0,    0,
    1,  -550, 0,    31, -550, 0,    1,  0,    0,    31, 0,    0,    1,  0,    0,    31, 0,    0,    1,  0,    0,
    31, 0,    0,    1,  0,    0,    31, 0,    0,    1,  0,    0,    31, 0,    0,    1,  0,    -102, 9,  -20,  0,
    17, -5,   113,  24, 10,   0,    31, 0,    -102, 1,  0,    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_hirameki_d2 = {
    { cKF_ckcb_r_npc_1_hirameki_d2_tbl, cKF_ds_npc_1_hirameki_d2_tbl, cKF_kn_npc_1_hirameki_d2_tbl,
      cKF_c_npc_1_hirameki_d2_tbl, -1, 31 },
    1.0f,
    31.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    6,
    NULL,
    aNPC_MOUTH_TEX1,
    1,
    -1,
    -1,
    NULL,
    NULL,
};
