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

s16 cKF_c_npc_1_omairi1_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_omairi1_tbl[] = {
    1,  0,    0,   31, 0,    0, 1,  1000, 0,  31, 1000, 0,    1,  0,    0,   31, 0,    0,    1,  0,    0,
    46, 0,    0,   1,  0,    0, 6,  -5,   0,  16, -100, 22,   38, -100, -22, 46, 0,    0,    1,  0,    0,
    46, 0,    0,   1,  -175, 0, 6,  -175, 0,  16, -180, 0,    38, -180, 0,   46, -175, 0,    1,  -100, 0,
    6,  -105, 0,   16, -203, 0, 38, -203, 0,  46, -100, 0,    1,  25,   0,   46, 25,   0,    1,  0,    0,
    46, 0,    0,   1,  200,  0, 46, 200,  0,  1,  0,    0,    46, 0,    0,   1,  0,    0,    46, 0,    0,
    1,  -100, 0,   46, -100, 0, 1,  0,    0,  46, 0,    0,    1,  175,  0,   6,  175,  0,    16, 180,  0,
    38, 180,  0,   46, 175,  0, 1,  -100, 0,  6,  -105, 0,    16, -203, 0,   38, -203, 0,    46, -100, 0,
    1,  -25,  0,   46, -25,  0, 1,  0,    0,  46, 0,    0,    1,  200,  0,   46, 200,  0,    1,  0,    0,
    46, 0,    0,   1,  0,    0, 46, 0,    0,  1,  -100, 0,    46, -100, 0,   1,  0,    0,    46, 0,    0,
    1,  0,    0,   46, 0,    0, 1,  60,   0,  9,  -120, 300,  17, 30,   0,   27, -120, 300,  35, 30,   0,
    46, 60,   0,   1,  0,    0, 12, 50,   0,  21, 0,    -128, 30, 50,   0,   39, 0,    -128, 46, 0,    0,
    1,  0,    0,   46, 0,    0, 1,  82,   0,  7,  -120, -298, 12, -120, 317, 20, 60,   0,    26, -120, -298,
    31, -120, 317, 39, 60,   0, 46, 60,   0,  1,  0,    0,    23, 100,  0,   46, 0,    0,    1,  0,    0,
    46, 0,    0,   1,  2,    0, 7,  25,   0,  17, -100, 95,   39, -100, -91, 46, 2,    0,    1,  0,    0,
    46, 0,    0,   1,  0,    0, 12, 50,   0,  40, 50,   0,    46, 0,    0,   1,  58,   0,    12, -700, 0,
    40, -700, 0,   46, 58,   0, 1,  -565, 0,  12, -500, 0,    40, -500, 0,   46, -565, 0,    1,  0,    0,
    46, 0,    0,   1,  -57,  0, 12, -500, 0,  40, -500, 0,    46, -57,  0,   1,  0,    0,    46, 0,    0,
    1,  0,    0,   12, -50,  0, 40, -50,  0,  46, 0,    0,    1,  58,   0,   12, -700, 0,    40, -700, 0,
    46, 58,   0,   1,  565,  0, 12, 500,  0,  40, 500,  0,    46, 565,  0,   1,  0,    0,    46, 0,    0,
    1,  -56,  0,   12, -500, 0, 40, -500, 0,  46, -56,  0,    1,  0,    0,   46, 0,    0,    1,  630,  0,
    46, 630,  0,   1,  -495, 0, 46, -495, 0,  1,  348,  0,    46, 348,  0,   1,  0,    0,    46, 0,    0,
    1,  0,    0,   8,  0,    0, 18, -125, 58, 40, -125, -58,  46, 0,    0,   1,  0,    0,    46, 0,    0,
    1,  0,    0,   46, 0,    0, 1,  0,    0,  46, 0,    0,    1,  0,    0,   46, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_omairi1 = {
    { cKF_ckcb_r_npc_1_omairi1_tbl, cKF_ds_npc_1_omairi1_tbl, cKF_kn_npc_1_omairi1_tbl, cKF_c_npc_1_omairi1_tbl, -1,
      46 },
    1.0f,
    46.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX0,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
