#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_taisou5_a_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_taisou5_a_tbl[] = { 9, 10, 2, 9, 6,  6, 12, 9,  12, 2, 9,  2, 2, 12, 12, 9, 13, 9,
                                     2, 11, 2, 2, 11, 9, 2,  14, 9,  2, 14, 9, 9, 13, 6,  9, 9,  9,
                                     2, 12, 2, 9, 9,  9, 2,  10, 2,  2, 2,  2, 9, 9,  9,  2, 2,  2 };

s16 cKF_c_npc_1_taisou5_a_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_taisou5_a_tbl[] = {
    1,  250,  0,    11, 150,  0,    21, 250,  0,     31, 150,  0,    41, 350,  0,    51, 0,    0,    61, 350,  0,
    71, 0,    0,    81, 150,  0,    1,  950,  0,     31, 950,  0,    36, 938,  -187, 41, 900,  0,    46, 938,  187,
    56, 938,  -188, 61, 900,  0,    66, 938,  190,   71, 950,  0,    81, 950,  0,    1,  0,    0,    81, 0,    0,
    1,  50,   0,    11, -50,  0,    21, 50,   0,     31, -50,  0,    41, 75,   0,    51, -100, 0,    61, 75,   0,
    71, -100, 0,    81, -50,  0,    1,  -30,  0,     41, -30,  0,    51, 0,    0,    61, -30,  0,    71, 0,    0,
    81, -30,  0,    1,  0,    0,    41, 0,    0,     51, 50,   0,    61, 0,    0,    71, 50,   0,    81, 0,    0,
    1,  -110, 0,    11, -193, 0,    21, -110, 0,     31, -193, 0,    41, -110, 0,    46, -158, -704, 51, -280, 0,
    56, -158, 702,  61, -110, 0,    66, -158, -705,  71, -280, 0,    81, -193, 0,    1,  -245, 0,    11, -140, 0,
    21, -245, 0,    31, -140, 0,    41, -338, 0,     51, 48,   0,    61, -338, 0,    71, 48,   0,    81, -140, 0,
    1,  135,  0,    11, 221,  0,    21, 135,  0,     31, 221,  0,    41, 75,   0,    46, 173,  778,  51, 225,  0,
    56, 173,  -773, 61, 75,   0,    66, 173,  777,   71, 225,  0,    81, 220,  0,    1,  0,    0,    81, 0,    0,
    1,  390,  0,    11, 293,  0,    21, 390,  0,     31, 293,  0,    41, 580,  0,    51, 0,    0,    61, 580,  0,
    71, 0,    0,    81, 293,  0,    1,  0,    0,     81, 0,    0,    1,  0,    0,    81, 0,    0,    1,  -155, 0,
    11, -115, 0,    21, -155, 0,    31, -115, 0,     41, -270, 0,    46, -128, 1532, 51, 135,  0,    56, -128, -1548,
    61, -270, 0,    66, -128, 1548, 71, 135,  0,     81, -115, 0,    1,  -98,  0,    11, -175, 0,    21, -98,  0,
    31, -175, 0,    41, -23,  0,    46, -155, -1147, 51, -250, 0,    56, -155, 1158, 61, -23,  0,    66, -155, -1160,
    71, -250, 0,    81, -175, 0,    1,  193,  0,     11, 110,  0,    21, 193,  0,    31, 110,  0,    41, 185,  0,
    51, 88,   0,    61, 185,  0,    71, 88,   0,     81, 110,  0,    1,  -140, 0,    11, -243, 0,    21, -140, 0,
    31, -243, 0,    36, -195, 473,  41, -135, 0,     46, -243, -636, 51, -285, 0,    56, -243, 642,  61, -135, 0,
    66, -243, -641, 71, -285, 0,    81, -245, 0,     1,  -220, 0,    11, -135, 0,    21, -220, 0,    31, -135, 0,
    41, -303, 0,    51, -77,  0,    61, -303, 0,     71, -77,  0,    81, -135, 0,    1,  0,    0,    81, 0,    0,
    1,  293,  0,    11, 385,  0,    21, 293,  0,     31, 385,  0,    41, 343,  0,    46, 455,  672,  56, 455,  -676,
    61, 343,  0,    66, 455,  673,  71, 505,  0,     81, 390,  0,    1,  0,    0,    81, 0,    0,    1,  0,    0,
    81, 0,    0,    1,  -115, 0,    11, -155, 0,     21, -115, 0,    31, -155, 0,    41, -135, 0,    46, -198, -393,
    56, -198, 401,  61, -135, 0,    66, -198, -390,  71, -233, 0,    81, -155, 0,    1,  175,  0,    11, 100,  0,
    21, 175,  0,    31, 100,  0,    41, 260,  0,     51, -10,  0,    61, 260,  0,    71, -10,  0,    81, 98,   0,
    1,  0,    0,    81, 0,    0,    1,  30,   353,   8,  100,  0,    13, 50,   0,    18, 100,  0,    23, 50,   0,
    28, 100,  0,    33, 50,   0,    38, 100,  0,     43, 50,   0,    48, 125,  0,    53, -50,  0,    63, 125,  0,
    73, -50,  0,    81, 33,   444,  1,  30,   -246,  13, -50,  0,    23, 50,   0,    33, -50,  0,    43, 50,   0,
    53, -75,  0,    63, 25,   0,    73, -75,  0,     81, -31,  280,  1,  0,    0,    81, 0,    0,    1,  -80,  591,
    11, 125,  0,    16, 25,   0,    21, 125,  0,     26, 25,   0,    31, 125,  0,    36, 25,   0,    41, 125,  0,
    46, 25,   0,    51, 200,  0,    56, -150, 0,     66, 200,  0,    76, -150, 0,    81, -80,  591,  1,  100,  -466,
    16, -100, 0,    26, 100,  0,    36, -100, 0,     46, 100,  0,    56, -150, 0,    66, 50,   0,    76, -150, 0,
    81, -110, 408,  1,  0,    0,    11, -200, 0,     21, 150,  0,    31, -150, 0,    41, 200,  0,    51, -250, 0,
    61, 200,  0,    71, -250, 0,    81, 0,    0,     1,  100,  0,    6,  150,  0,    11, 25,   0,    16, 150,  0,
    21, 50,   0,    26, 150,  0,    31, 50,   0,     36, 125,  0,    41, 25,   0,    51, 250,  0,    61, -50,  0,
    71, 250,  0,    81, 100,  0,    1,  0,    0,     41, 0,    0,    51, -200, 0,    61, 0,    0,    71, -200, 0,
    81, 0,    0,    1,  0,    0,    11, 650,  0,     21, -150, 0,    31, 650,  0,    41, -300, 0,    51, 450,  0,
    61, -300, 0,    71, 450,  0,    81, 0,    0,     1,  0,    0,    11, -450, 0,    21, 50,   0,    31, -450, 0,
    41, 200,  0,    51, -600, 0,    61, 200,  0,     71, -600, 0,    81, 0,    0,    1,  -600, 0,    11, -650, 0,
    21, -350, 0,    31, -650, 0,    41, -200, 0,     51, -650, 0,    61, -200, 0,    71, -650, 0,    81, -600, 0,
    1,  0,    0,    81, 0,    0,    1,  -200, 0,     14, -350, 0,    21, 0,    0,    26, 0,    0,    34, -350, 0,
    41, 0,    0,    46, 0,    0,    54, -550, 0,     61, 0,    0,    66, 0,    0,    73, -550, 0,    81, -200, 0,
    1,  0,    0,    81, 0,    0,    1,  0,    0,     11, 150,  0,    21, -650, 0,    31, 150,  0,    41, -800, 0,
    51, 200,  0,    61, -800, 0,    71, 200,  0,     81, 0,    0,    1,  0,    0,    11, 50,   0,    21, -450, 0,
    31, 50,   0,    41, -600, 0,    51, 50,   0,     61, -600, 0,    71, 50,   0,    81, 0,    0,    1,  600,  0,
    11, 350,  0,    21, 650,  0,    31, 350,  0,     41, 800,  0,    51, -200, 0,    61, 800,  0,    71, -200, 0,
    81, 600,  0,    1,  0,    0,    81, 0,    0,     1,  -200, 0,    11, 0,    0,    16, 0,    0,    24, -350, 0,
    31, 0,    0,    36, 0,    0,    44, -450, 0,     51, 0,    0,    71, 0,    0,    81, -200, 0,    1,  0,    0,
    81, 0,    0,    1,  0,    0,    81, 0,    0,     1,  0,    0,    81, 0,    0,    1,  0,    0,    81, 0,    0,
    1,  -100, 0,    11, 175,  0,    21, -150, 0,     31, 150,  0,    41, -200, 0,    51, -250, 0,    61, -200, 0,
    71, -250, 0,    81, 50,   0,    1,  -100, 0,     11, -150, 0,    21, -100, 0,    31, -100, 0,    41, -150, 0,
    51, -100, 0,    61, -200, 0,    71, -100, 0,     81, -100, 0,    1,  0,    0,    11, -50,  0,    21, 50,   0,
    31, -50,  0,    41, 100,  0,    51, -50,  0,     61, 200,  0,    71, -50,  0,    81, 0,    0,    1,  0,    0,
    81, 0,    0,    1,  0,    0,    81, 0,    0,     1,  0,    0,    81, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_taisou5_a = {
    { cKF_ckcb_r_npc_1_taisou5_a_tbl, cKF_ds_npc_1_taisou5_a_tbl, cKF_kn_npc_1_taisou5_a_tbl, cKF_c_npc_1_taisou5_a_tbl,
      -1, 81 },
    1.0f,
    81.0f,
    cKF_FRAMECONTROL_STOP,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX0,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
