#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_taisou6_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_taisou6_a_tbl[] = { 2, 2, 8, 6, 8, 2, 8, 8, 8, 2, 7, 2, 2, 8, 8, 8, 8, 8, 2, 7, 2, 2, 8, 8, 2, 9, 9,
                                     2, 9, 8, 7, 9, 7, 9, 9, 7, 2, 9, 2, 9, 9, 7, 2, 9, 2, 2, 2, 2, 2, 9, 2, 2, 2, 2 };

s16 cKF_c_npc_1_taisou6_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_taisou6_a_tbl[] = {
    1,  200,  0,    81, 200,  0,    1,  1000, 0,    81, 1000, 0,    1,  50,   -678, 11, -100, 0,     21, 0,    0,
    31, -100, 0,    51, 200,  0,    61, 100,  0,    71, 200,  0,    81, 50,   -678, 1,  -25,  -112,  11, -50,  0,
    31, -50,  0,    51, 0,    0,    71, 0,    0,    81, 25,   112,  1,  0,    -678, 11, -150, 0,     21, -25,  0,
    31, -150, 0,    51, 150,  0,    61, 100,  0,    71, 150,  0,    81, 0,    -675, 1,  0,    0,     81, 0,    0,
    1,  -168, -497, 11, -278, 0,    21, -230, 0,    31, -278, 0,    51, -58,  0,    61, -110, 0,     71, -58,  0,
    81, -119, -277, 1,  -33,  -671, 11, -195, 0,    21, -10,  0,    31, -195, 0,    51, 130,  0,     61, 55,   0,
    71, 130,  0,    81, -61,  -856, 1,  165,  -22,  11, 160,  0,    21, 135,  0,    31, 160,  0,     51, 171,  0,
    61, 160,  0,    71, 171,  0,    81, 148,  -99,  1,  0,    0,    81, 0,    0,    1,  144,  -646,  11, 0,    0,
    31, 0,    0,    51, 288,  0,    61, 205,  0,    71, 288,  0,    81, 144,  -646, 1,  0,    0,     81, 0,    0,
    1,  0,    0,    81, 0,    0,    1,  -39,  649,  11, 105,  0,    21, 45,   0,    31, 105,  0,     51, -183, 0,
    61, -100, 0,    71, -183, 0,    81, -14,  752,  1,  -133, 124,  11, -105, 0,    21, -130, 0,     31, -105, 0,
    51, -160, 0,    61, -140, 0,    71, -160, 0,    81, -126, 153,  1,  130,  300,  11, 180,  0,     21, 140,  0,
    31, 180,  0,    51, 58,   0,    61, 110,  0,    71, 58,   0,    81, 168,  495,  1,  -58,  -822,  11, -253, 0,
    21, -63,  0,    31, -253, 0,    51, 130,  0,    61, 55,   0,    71, 130,  0,    81, -33,  -729,  1,  -150, 102,
    11, -125, 0,    21, -130, 0,    31, -125, 0,    51, -171, 0,    61, -160, 0,    71, -171, 0,     81, -165, 24,
    1,  0,    0,    81, 0,    0,    1,  148,  -664, 11, 0,    0,    31, 0,    0,    51, 288,  0,     61, 205,  0,
    71, 288,  0,    81, 148,  -664, 1,  0,    0,    81, 0,    0,    1,  0,    0,    81, 0,    0,     1,  -40,  695,
    11, 155,  0,    21, 73,   0,    31, 155,  0,    51, -183, 0,    61, -100, 0,    71, -183, 0,     81, -39,  649,
    1,  130,  -149, 11, 93,   0,    21, 118,  0,    31, 93,   0,    51, 160,  0,    61, 140,  0,     71, 160,  0,
    81, 132,  -124, 1,  0,    0,    81, 0,    0,    1,  100,  -377, 13, -200, 0,    23, 60,   0,     33, -200, 0,
    43, -100, 743,  53, 150,  0,    63, 0,    0,    73, 150,  0,    81, 100,  -466, 1,  -38,  -192,  3,  -50,  -173,
    13, -100, 0,    23, -50,  0,    33, -100, 0,    53, 0,    0,    63, 0,    0,    73, 0,    0,     81, 35,   213,
    1,  0,    0,    81, 0,    0,    1,  55,   -210, 16, -125, 0,    26, 128,  0,    36, -125, 0,     46, -50,  536,
    56, 75,   0,    66, -75,  0,    76, 75,   0,    81, 61,   -201, 1,  40,   305,  6,  75,   0,     16, -75,  0,
    26, 75,   0,    36, -73,  0,    46, 0,    0,    76, 0,    0,    81, -38,  -340, 1,  -50,  -225,  11, -100, 0,
    21, 0,    0,    31, -100, 0,    51, 0,    0,    71, 0,    0,    81, 50,   225,  1,  -200, -1486, 11, -400, 0,
    21, -269, 0,    31, -400, 0,    41, -125, 1417, 51, 250,  0,    61, 125,  0,    71, 250,  0,     81, -200, -1495,
    1,  50,   226,  11, 100,  0,    21, 0,    0,    31, 100,  0,    51, 0,    0,    71, 0,    0,     81, -50,  -226,
    1,  -250, 444,  11, 150,  0,    21, -140, 0,    31, 150,  0,    41, -250, -458, 51, -300, 0,     61, -130, 0,
    71, -300, 0,    81, -250, 446,  1,  -500, -891, 11, -600, 0,    21, -520, 0,    31, -600, 0,     41, -500, 892,
    51, 200,  0,    61, -69,  0,    71, 200,  0,    81, -500, -882, 1,  -150, 0,    11, -550, 0,     21, -250, 0,
    31, -550, 0,    41, -150, 0,    61, -120, 0,    81, -150, 0,    1,  0,    0,    81, 0,    0,     1,  -375, 0,
    11, -175, 0,    21, -450, 0,    31, -175, 0,    41, -364, 0,    51, -75,  0,    61, -450, 0,     71, -75,  0,
    81, -375, 0,    1,  0,    0,    81, 0,    0,    1,  250,  -451, 11, -150, 0,    21, 140,  0,     31, -150, 0,
    41, 250,  449,  51, 300,  0,    61, 137,  0,    71, 300,  0,    81, 250,  -443, 1,  -500, -891,  11, -600, 0,
    21, -520, 0,    31, -600, 0,    41, -500, 892,  51, 200,  0,    61, -69,  0,    71, 200,  0,     81, -500, -882,
    1,  150,  0,    11, 550,  0,    21, 250,  0,    31, 550,  0,    41, 150,  0,    61, 129,  0,     81, 150,  0,
    1,  0,    0,    81, 0,    0,    1,  -375, 0,    11, -175, 0,    21, -450, 0,    31, -175, 0,     41, -375, 0,
    51, -75,  0,    61, -450, 0,    71, -75,  0,    81, -375, 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,  0,    0,     81, 0,    0,
    1,  -60,  -74,  11, -200, 0,    21, -60,  0,    31, -200, 0,    41, 25,   0,    51, -50,  0,     61, -75,  0,
    71, -50,  0,    81, -60,  -75,  1,  0,    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_taisou6_a = {
    { cKF_ckcb_r_npc_1_taisou6_a_tbl, cKF_ds_npc_1_taisou6_a_tbl, cKF_kn_npc_1_taisou6_a_tbl, cKF_c_npc_1_taisou6_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,
};
