#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_gekido_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_gekido_r1_tbl[] = { 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, 2,
                                     2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 2, 3, 2, 2, 2, 2 };

s16 cKF_c_npc_1_gekido_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_gekido_r1_tbl[] = {
    1, 0,    0, 6, 0,    0,    1, 0,    0,     6, 0,    0, 1, 0,    0,    6, 0,    0,    1, 0,    0, 6, 0,    670,
    1, 50,   0, 6, -25,  -349, 1, 0,    0,     6, 10,   0, 1, 0,    0,    6, 0,    0,    1, 0,    0, 6, 0,    0,
    1, 0,    0, 6, 0,    0,    1, 0,    0,     6, 0,    0, 1, 0,    0,    6, 0,    0,    1, 0,    0, 6, 0,    0,
    1, 0,    0, 6, 0,    0,    1, 0,    0,     6, 0,    0, 1, 0,    0,    6, 0,    0,    1, 0,    0, 6, 0,    0,
    1, 0,    0, 6, 0,    0,    1, 0,    0,     6, 0,    0, 1, 0,    0,    6, 0,    0,    1, 0,    0, 6, 0,    0,
    1, 0,    0, 6, 0,    0,    1, 0,    0,     6, 0,    0, 1, 0,    0,    6, 0,    0,    1, 0,    0, 6, 0,    0,
    1, 0,    0, 6, 0,    0,    1, 0,    0,     6, 0,    0, 1, 0,    0,    6, 0,    0,    1, 0,    0, 6, 0,    0,
    1, 0,    0, 6, 0,    0,    1, 0,    0,     6, 0,    0, 1, 0,    0,    6, 50,   1491, 1, -50,  0, 3, -100, 0,
    6, 200,  0, 1, 0,    0,    6, 20,   1094,  1, 0,    0, 6, -750, 0,    1, -53,  0,    6, -600, 0, 1, -270, 0,
    6, 450,  0, 1, 140,  0,    6, 0,    0,     1, -693, 0, 6, 0,    0,    1, -115, 0,    6, 0,    0, 1, 403,  0,
    6, 0,    0, 1, -548, 0,    6, -100, 4680,  1, 98,   0, 6, -650, 0,    1, 0,    0,    6, 0,    0, 1, -793, 0,
    6, 0,    0, 1, 0,    0,    6, 0,    0,     1, -545, 0, 3, -200, 7439, 6, 145,  0,    1, 293,  0, 3, 400,  0,
    6, -500, 0, 1, -500, 0,    3, -200, 8130,  6, 400,  0, 1, 0,    0,    6, 50,   1479, 1, -51,  0, 3, -100, 0,
    6, 150,  0, 1, 0,    0,    6, -20,  -1108, 1, 0,    0, 6, 0,    0,    1, 0,    0,    6, 6,    0, 1, 0,    0,
    6, 0,    0
};

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

u8 npc_1_gekido_r11_tex_index[] = { 0, 0, 0, 6, 6, 5 };

aNPC_Animation_c cKF_ba_r_npc_1_gekido_r1 = {
    { cKF_ckcb_r_npc_1_gekido_r1_tbl, cKF_ds_npc_1_gekido_r1_tbl, cKF_kn_npc_1_gekido_r1_tbl, cKF_c_npc_1_gekido_r1_tbl,
      -1, 6 },
    1.0f,
    6.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_gekido_r11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_gekido_r10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    -1,
    -1,
    NULL,
    NULL,
};
