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

s16 cKF_c_npc_1_akireru_r1_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_akireru_r1_tbl[] = {
    1,  0,    0,   22, 0,    0,    1,  0,    0,     22, 0,    0, 1,  0,    0, 22, 0,    0, 1,  0,    0,     22, 0,    0,
    1,  50,   0,   4,  25,   -562, 7,  -50,  0,     22, -50,  0, 1,  0,    0, 22, 0,    0, 1,  0,    0,     22, 0,    0,
    1,  0,    0,   22, 0,    0,    1,  0,    0,     22, 0,    0, 1,  0,    0, 22, 0,    0, 1,  0,    0,     22, 0,    0,
    1,  0,    0,   22, 0,    0,    1,  0,    0,     22, 0,    0, 1,  0,    0, 22, 0,    0, 1,  0,    0,     22, 0,    0,
    1,  0,    0,   22, 0,    0,    1,  0,    0,     22, 0,    0, 1,  0,    0, 22, 0,    0, 1,  0,    0,     22, 0,    0,
    1,  0,    0,   22, 0,    0,    1,  0,    0,     22, 0,    0, 1,  0,    0, 22, 0,    0, 1,  0,    0,     22, 0,    0,
    1,  0,    0,   22, 0,    0,    1,  0,    0,     22, 0,    0, 1,  0,    0, 22, 0,    0, 1,  0,    0,     22, 0,    0,
    1,  0,    0,   22, 0,    0,    1,  0,    0,     22, 0,    0, 1,  0,    0, 22, 0,    0, 1,  0,    0,     22, 0,    0,
    1,  -50,  0,   4,  -63,  -228, 7,  -100, -438,  9,  -120, 0, 11, -100, 0, 22, -100, 0, 1,  0,    0,     22, 0,    0,
    1,  0,    0,   22, 0,    0,    1,  -53,  0,     22, -53,  0, 1,  -270, 0, 22, -270, 0, 1,  140,  0,     22, 140,  0,
    1,  -693, 0,   22, -693, 0,    1,  -115, 0,     22, -115, 0, 1,  403,  0, 22, 403,  0, 1,  -548, 0,     22, -548, 0,
    1,  98,   0,   22, 98,   0,    1,  0,    0,     22, 0,    0, 1,  -793, 0, 22, -793, 0, 1,  0,    0,     22, 0,    0,
    1,  -545, 0,   13, -545, 0,    19, -421, 1074,  22, -420, 0, 1,  293,  0, 13, 293,  0, 19, 145,  -1321, 22, 145,  0,
    1,  -500, 0,   13, -500, 0,    19, -617, -1030, 22, -618, 0, 1,  -10,  0, 7,  0,    0, 22, 0,    0,     1,  -51,  0,
    4,  -25,  572, 7,  50,   0,    9,  25,   0,     11, 50,   0, 22, 50,   0, 1,  0,    0, 22, 0,    0,     1,  0,    0,
    22, 0,    0,   1,  0,    0,    4,  100,  0,     9,  -25,  0, 11, 0,    0, 22, 0,    0, 1,  0,    0,     22, 0,    0
};

u8 npc_1_akireru_r10_tex_index[] = { 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5 };

u8 npc_1_akireru_r11_tex_index[] = { 0, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 };

aNPC_Animation_c cKF_ba_r_npc_1_akireru_r1 = {
    { cKF_ckcb_r_npc_1_akireru_r1_tbl, cKF_ds_npc_1_akireru_r1_tbl, cKF_kn_npc_1_akireru_r1_tbl,
      cKF_c_npc_1_akireru_r1_tbl, -1, 22 },
    1.0f,
    22.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_akireru_r11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_akireru_r10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    -1,
    -1,
    NULL,
    NULL,
};
