#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_hirameki2_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_hirameki2_tbl[] = { 2, 3, 2, 2, 3, 2, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3, 3, 3,
                                     2, 5, 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_hirameki2_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_hirameki2_tbl[] = {
    1,  0,    0,     31, 0,    0,    1,  1025, 0,   16, 1050, 0,    31, 1025, 0, 1,  0,    0,    31, 0,    0,
    1,  0,    0,     31, 0,    0,    1,  30,   0,   16, 55,   0,    31, 30,   0, 1,  0,    0,    31, 0,    0,
    1,  -175, 0,     16, -175, 0,    31, -175, 0,   1,  30,   0,    16, 55,   0, 31, 30,   0,    1,  5,    0,
    16, 5,    0,     31, 5,    0,    1,  0,    0,   31, 0,    0,    1,  0,    0, 31, 0,    0,    1,  0,    0,
    31, 0,    0,     1,  0,    0,    16, 0,    0,   31, 0,    0,    1,  0,    0, 16, 25,   0,    31, 0,    0,
    1,  0,    0,     16, 0,    0,    31, 0,    0,   1,  175,  0,    16, 175,  0, 31, 175,  0,    1,  30,   0,
    16, 55,   0,     31, 30,   0,    1,  -5,   0,   16, -5,   0,    31, -5,   0, 1,  0,    0,    31, 0,    0,
    1,  0,    0,     31, 0,    0,    1,  0,    0,   31, 0,    0,    1,  0,    0, 16, 0,    0,    31, 0,    0,
    1,  0,    0,     16, 25,   0,    31, 0,    0,   1,  0,    0,    16, 0,    0, 31, 0,    0,    1,  0,    0,
    16, 0,    0,     31, 0,    0,    1,  -200, 0,   16, -100, 0,    31, -200, 0, 1,  0,    0,    16, 0,    0,
    31, 0,    0,     1,  0,    0,    31, 0,    0,   1,  0,    -942, 9,  -100, 0, 16, 0,    964,  24, 100,  0,
    31, 0,    -1012, 1,  0,    0,    31, 0,    0,   1,  0,    0,    31, 0,    0, 1,  30,   227,  7,  50,   0,
    16, 25,   -149,  25, 5,    36,   31, 30,   227, 1,  0,    0,    31, 0,    0, 1,  100,  0,    15, 0,    0,
    31, 100,  0,     1,  -700, 0,    15, -660, 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, -660, 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,  1450, 0,     31, 1450, 0,    1,  350,  0,   31, 350,  0,    1,  0,    0, 31, 0,    0,    1,  0,    0,
    31, 0,    0,     1,  50,   -119, 9,  35,   0,   17, 50,   113,  24, 65,   0, 31, 50,   -119, 1,  0,    0,
    31, 0,    0,     1,  0,    0,    31, 0,    0,   1,  -150, 0,    31, -150, 0, 1,  0,    0,    31, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_hirameki2 = {
    { cKF_ckcb_r_npc_1_hirameki2_tbl, cKF_ds_npc_1_hirameki2_tbl, cKF_kn_npc_1_hirameki2_tbl, cKF_c_npc_1_hirameki2_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,
};
