#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_intro1_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_intro1_a_tbl[] = { 2, 13, 13, 2, 13, 2,  2, 13, 13, 2, 13, 2, 2, 13, 13, 2, 13, 13,
                                    2, 13, 2,  2, 13, 13, 2, 13, 4,  2, 13, 4, 2, 13, 7,  9, 13, 9,
                                    2, 10, 2,  9, 13, 9,  2, 10, 2,  2, 2,  2, 2, 13, 7,  2, 2,  2 };

s16 cKF_c_npc_1_intro1_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_intro1_a_tbl[] = {
    1,    0,    0,    161,  0,    0,    1,    1000, 0,    16,   1100, 0,    31,   1000, 0,    41,   1000, 0,    56,
    1100, 0,    71,   1000, 0,    81,   1000, 0,    96,   1100, 0,    111,  1000, 0,    121,  1000, 0,    136,  1100,
    0,    151,  1000, 0,    161,  1000, 0,    1,    0,    0,    16,   100,  0,    31,   0,    0,    41,   0,    0,
    56,   100,  0,    71,   0,    0,    81,   0,    0,    96,   100,  0,    111,  0,    0,    121,  0,    0,    136,
    100,  0,    151,  0,    0,    161,  0,    0,    1,    0,    0,    161,  0,    0,    1,    0,    0,    16,   -50,
    0,    31,   0,    0,    41,   0,    0,    56,   -50,  0,    71,   0,    0,    81,   0,    0,    96,   -50,  0,
    111,  0,    0,    121,  0,    0,    136,  -50,  0,    151,  0,    0,    161,  0,    0,    1,    0,    0,    161,
    0,    0,    1,    -175, 0,    161,  -175, 0,    1,    -100, 0,    16,   -10,  0,    31,   -100, 0,    41,   -100,
    0,    56,   -10,  0,    71,   -100, 0,    81,   -100, 0,    96,   -10,  0,    111,  -100, 0,    121,  -100, 0,
    136,  -10,  0,    151,  -100, 0,    161,  -100, 0,    1,    25,   0,    16,   0,    0,    31,   25,   0,    41,
    25,   0,    56,   0,    0,    71,   25,   0,    81,   25,   0,    96,   0,    0,    111,  25,   0,    121,  25,
    0,    136,  0,    0,    151,  25,   0,    161,  25,   0,    1,    0,    0,    161,  0,    0,    1,    200,  0,
    16,   0,    0,    31,   200,  0,    41,   200,  0,    56,   0,    0,    71,   200,  0,    81,   200,  0,    96,
    0,    0,    111,  200,  0,    121,  200,  0,    136,  0,    0,    151,  200,  0,    161,  200,  0,    1,    0,
    0,    161,  0,    0,    1,    0,    0,    161,  0,    0,    1,    -100, 0,    16,   50,   0,    31,   -100, 0,
    41,   -100, 0,    56,   50,   0,    71,   -100, 0,    81,   -100, 0,    96,   50,   0,    111,  -100, 0,    121,
    -100, 0,    136,  50,   0,    151,  -100, 0,    161,  -100, 0,    1,    0,    0,    16,   -10,  0,    31,   0,
    0,    41,   0,    0,    56,   -10,  0,    71,   0,    0,    81,   0,    0,    96,   -10,  0,    111,  0,    0,
    121,  0,    0,    136,  -10,  0,    151,  0,    0,    161,  0,    0,    1,    175,  0,    161,  175,  0,    1,
    -100, 0,    16,   -10,  0,    31,   -100, 0,    41,   -100, 0,    56,   -10,  0,    71,   -100, 0,    81,   -100,
    0,    96,   -10,  0,    111,  -100, 0,    121,  -100, 0,    136,  -10,  0,    151,  -100, 0,    161,  -100, 0,
    1,    -25,  0,    16,   0,    0,    31,   -25,  0,    41,   -25,  0,    56,   0,    0,    71,   -25,  0,    81,
    -25,  0,    96,   0,    0,    111,  -25,  0,    121,  -25,  0,    136,  0,    0,    151,  -25,  0,    161,  -25,
    0,    1,    0,    0,    161,  0,    0,    1,    200,  0,    16,   0,    0,    31,   200,  0,    41,   200,  0,
    56,   0,    0,    71,   200,  0,    81,   200,  0,    96,   0,    0,    111,  200,  0,    121,  200,  0,    136,
    0,    0,    151,  200,  0,    161,  200,  0,    1,    0,    0,    161,  0,    0,    1,    0,    0,    161,  0,
    0,    1,    -100, 0,    16,   50,   0,    31,   -100, 0,    41,   -100, 0,    56,   50,   0,    71,   -100, 0,
    81,   -100, 0,    96,   50,   0,    111,  -100, 0,    121,  -100, 0,    136,  50,   0,    151,  -100, 0,    161,
    -100, 0,    1,    0,    0,    16,   10,   0,    31,   0,    0,    41,   0,    0,    56,   10,   0,    71,   0,
    0,    81,   0,    0,    96,   10,   0,    111,  0,    0,    121,  0,    0,    136,  10,   0,    151,  0,    0,
    161,  0,    0,    1,    0,    0,    161,  0,    0,    1,    60,   0,    18,   -80,  0,    33,   110,  153,  43,
    110,  -149, 58,   -80,  0,    73,   110,  153,  83,   110,  -149, 98,   -80,  0,    113,  110,  153,  123,  110,
    -149, 138,  -80,  0,    153,  110,  153,  161,  118,  -93,  1,    0,    0,    38,   -50,  0,    118,  50,   0,
    161,  -6,   -56,  1,    0,    0,    161,  0,    0,    1,    82,   0,    21,   -125, 0,    36,   125,  133,  46,
    125,  -132, 61,   -125, 0,    76,   125,  133,  86,   125,  -132, 101,  -125, 0,    116,  125,  133,  126,  125,
    -132, 141,  -125, 0,    156,  125,  133,  161,  136,  0,    1,    0,    0,    41,   -50,  0,    121,  50,   0,
    161,  0,    -56,  1,    0,    0,    161,  0,    0,    1,    2,    0,    17,   100,  0,    32,   -80,  -197, 42,
    -80,  195,  57,   100,  0,    72,   -80,  -197, 82,   -80,  195,  97,   100,  0,    112,  -80,  -197, 122,  -80,
    195,  137,  100,  0,    152,  -80,  -197, 161,  -86,  159,  1,    0,    0,    12,   20,   0,    37,   -40,  0,
    77,   40,   0,    117,  -40,  0,    157,  40,   0,    161,  38,   -32,  1,    0,    0,    23,   100,  0,    43,
    -20,  0,    63,   100,  0,    83,   -20,  0,    103,  100,  0,    123,  -20,  0,    143,  100,  0,    161,  -17,
    -96,  1,    58,   0,    18,   -150, 0,    33,   150,  514,  43,   150,  -503, 58,   -150, 0,    73,   150,  514,
    83,   150,  -503, 98,   -150, 0,    113,  150,  514,  123,  150,  -503, 138,  -150, 0,    153,  150,  514,  161,
    177,  -304, 1,    -565, 0,    23,   -500, 0,    43,   -555, 0,    63,   -500, 0,    83,   -555, 0,    103,  -500,
    0,    123,  -555, 0,    143,  -500, 0,    161,  -553, -45,  1,    0,    0,    161,  0,    0,    1,    -57,  0,
    19,   0,    0,    39,   -300, 0,    59,   0,    0,    79,   -300, 0,    99,   0,    0,    119,  -300, 0,    139,
    0,    0,    159,  -300, 0,    161,  -292, 241,  1,    0,    0,    161,  0,    0,    1,    0,    0,    23,   -100,
    0,    43,   15,   0,    63,   -100, 0,    83,   15,   0,    103,  -100, 0,    123,  15,   0,    143,  -100, 0,
    161,  17,   98,   1,    58,   0,    18,   -150, 0,    33,   150,  510,  43,   150,  -501, 58,   -150, 0,    73,
    150,  510,  83,   150,  -501, 98,   -150, 0,    113,  150,  510,  123,  150,  -501, 138,  -150, 0,    153,  150,
    510,  161,  177,  -306, 1,    565,  0,    23,   500,  0,    43,   555,  0,    63,   500,  0,    83,   555,  0,
    103,  500,  0,    123,  555,  0,    143,  500,  0,    161,  553,  45,   1,    0,    0,    161,  0,    0,    1,
    -56,  0,    19,   0,    0,    39,   -300, 0,    59,   0,    0,    79,   -300, 0,    99,   0,    0,    119,  -300,
    0,    139,  0,    0,    159,  -300, 0,    161,  -292, 243,  1,    0,    0,    161,  0,    0,    1,    0,    0,
    161,  0,    0,    1,    0,    0,    161,  0,    0,    1,    0,    0,    161,  0,    0,    1,    0,    0,    161,
    0,    0,    1,    0,    0,    18,   100,  0,    33,   -80,  -196, 43,   -80,  191,  58,   100,  0,    73,   -80,
    -196, 83,   -80,  191,  98,   100,  0,    113,  -80,  -196, 123,  -80,  191,  138,  100,  0,    153,  -80,  -196,
    161,  -90,  116,  1,    0,    0,    13,   20,   0,    38,   -40,  0,    78,   40,   0,    118,  -40,  0,    158,
    40,   0,    161,  39,   -25,  1,    0,    0,    161,  0,    0,    1,    0,    0,    161,  0,    0,    1,    0,
    0,    161,  0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_intro1_a = {
    { cKF_ckcb_r_npc_1_intro1_a_tbl, cKF_ds_npc_1_intro1_a_tbl, cKF_kn_npc_1_intro1_a_tbl, cKF_c_npc_1_intro1_a_tbl, -1,
      161 },
    1.0f,
    161.0f,
    cKF_FRAMECONTROL_STOP,
    -8.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX0,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
