#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_b_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_b_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, 8,
                                     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_b_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_b_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,    -675,  11, -150, 0,     21, -25,  0,
    31, -150, 0,    51, 150,  0,    61, 100,  0,    71, 150,  0,    81, 0,    -678,  1,  0,    0,     81, 0,    0,
    1,  -119, -277, 11, -180, 0,    21, -140, 0,    31, -180, 0,    51, -58,  0,     61, -110, 0,     71, -58,  0,
    81, -168, -497, 1,  -61,  -856, 11, -253, 0,    21, -63,  0,    31, -253, 0,     51, 130,  0,     61, 55,   0,
    71, 130,  0,    81, -33,  -671, 1,  148,  -99,  11, 125,  0,    21, 130,  0,     31, 125,  0,     51, 171,  0,
    61, 160,  0,    71, 171,  0,    81, 165,  -22,  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,  -14,  752,  11, 155,  0,    21, 73,   0,     31, 155,  0,     51, -183, 0,
    61, -100, 0,    71, -183, 0,    81, -39,  649,  1,  -126, 153,  11, -93,  0,     21, -118, 0,     31, -93,  0,
    51, -160, 0,    61, -140, 0,    71, -160, 0,    81, -133, 124,  1,  168,  495,   11, 278,  0,     21, 230,  0,
    31, 278,  0,    51, 58,   0,    61, 110,  0,    71, 58,   0,    81, 130,  300,   1,  -33,  -729,  11, -195, 0,
    21, -10,  0,    31, -195, 0,    51, 130,  0,    61, 55,   0,    71, 130,  0,     81, -58,  -822,  1,  -165, 24,
    11, -160, 0,    21, -135, 0,    31, -160, 0,    51, -171, 0,    61, -160, 0,     71, -171, 0,     81, -150, 102,
    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,  -39,  649,
    11, 105,  0,    21, 45,   0,    31, 105,  0,    51, -183, 0,    61, -100, 0,     71, -183, 0,     81, -40,  695,
    1,  132,  -124, 11, 105,  0,    21, 130,  0,    31, 105,  0,    51, 160,  0,     61, 140,  0,     71, 160,  0,
    81, 130,  -149, 1,  0,    0,    81, 0,    0,    1,  100,  -466, 13, -200, 0,     23, 60,   0,     33, -200, 0,
    43, -100, 743,  53, 150,  0,    63, 0,    0,    73, 150,  0,    81, 100,  -377,  1,  35,   213,   13, 100,  0,
    23, 50,   0,    33, 100,  0,    53, 0,    0,    63, 0,    0,    73, 0,    0,     81, -38,  -192,  1,  0,    0,
    81, 0,    0,    1,  61,   -201, 16, -125, 0,    26, 128,  0,    36, -125, 0,     46, -50,  536,   56, 75,   0,
    66, -75,  0,    76, 75,   0,    81, 55,   -210, 1,  -38,  -340, 6,  -75,  0,     16, 75,   0,     26, -73,  0,
    36, 75,   0,    46, 0,    0,    76, 0,    0,    81, 40,   305,  1,  50,   225,   11, 100,  0,     21, 0,    0,
    31, 100,  0,    51, 0,    0,    71, 0,    0,    81, -50,  -225, 1,  -200, -1495, 11, -400, 0,     21, -269, 0,
    31, -400, 0,    41, -125, 1423, 51, 250,  0,    61, 125,  0,    71, 250,  0,     81, -200, -1486, 1,  -50,  -226,
    11, -100, 0,    21, 0,    0,    31, -100, 0,    51, 0,    0,    71, 0,    0,     81, 50,   226,   1,  -250, 446,
    11, 150,  0,    21, -140, 0,    31, 150,  0,    41, -250, -448, 51, -300, 0,     61, -130, 0,     71, -300, 0,
    81, -250, 444,  1,  -500, -882, 11, -600, 0,    21, -520, 0,    31, -600, 0,     41, -500, 892,   51, 200,  0,
    61, -69,  0,    71, 200,  0,    81, -500, -891, 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,  -443, 11, -150, 0,    21, 140,  0,     31, -150, 0,     41, 250,  446,
    51, 300,  0,    61, 137,  0,    71, 300,  0,    81, 250,  -451, 1,  -500, -882,  11, -600, 0,     21, -520, 0,
    31, -600, 0,    41, -500, 892,  51, 200,  0,    61, -69,  0,    71, 200,  0,     81, -500, -891,  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,  -75,
    11, -200, 0,    21, -60,  0,    31, -200, 0,    41, 25,   0,    51, -50,  0,     61, -75,  0,     71, -50,  0,
    81, -60,  -74,  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_b = {
    { cKF_ckcb_r_npc_1_taisou6_b_tbl, cKF_ds_npc_1_taisou6_b_tbl, cKF_kn_npc_1_taisou6_b_tbl, cKF_c_npc_1_taisou6_b_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,
};
