#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_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_intro1_b_tbl[] = { 2, 11, 10, 2,  11, 2,  4, 11, 11, 2, 11, 2, 2, 11, 11, 3,  11, 11,
                                    2, 11, 2,  2,  11, 11, 2, 12, 5,  2, 12, 5, 2, 12, 5,  10, 12, 10,
                                    2, 9,  2,  10, 12, 10, 2, 9,  2,  2, 2,  2, 2, 12, 5,  2,  2,  2 };

s16 cKF_c_npc_1_intro1_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_intro1_b_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,    141,  1000, 0,    161,  900,
    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,    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,    141,  0,    0,    161,  -80,  0,    1,    0,    0,    161,  0,    0,
    1,    -175, 0,    96,   -175, 0,    111,  -215, 0,    161,  -215, 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,    141,  -100, 0,    161,  -355, 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,    141,  25,   0,    161,
    95,   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,    141,  200,  0,
    161,  595,  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,    141,  -100, 0,    161,  -310, 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,    141,
    0,    0,    161,  8,    0,    1,    175,  0,    141,  175,  0,    161,  215,  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,    141,  -100, 0,    161,  -355, 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,    141,  -25,
    0,    161,  -95,  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,    141,
    200,  0,    161,  595,  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,    141,  -100, 0,    161,  -310, 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,    141,  0,    0,    161,  -8,   0,    1,    0,    0,    161,  0,    0,    1,    118,  -93,  3,    110,  -149,
    18,   -80,  0,    33,   110,  153,  43,   110,  -149, 58,   -80,  0,    73,   110,  153,  83,   110,  -149, 98,
    -80,  0,    113,  110,  153,  141,  160,  0,    161,  60,   0,    1,    -6,   -56,  38,   -50,  0,    98,   25,
    0,    128,  0,    0,    161,  0,    0,    1,    0,    0,    161,  0,    0,    1,    136,  0,    6,    125,  -132,
    21,   -125, 0,    36,   125,  133,  46,   125,  -132, 61,   -125, 0,    76,   125,  133,  86,   125,  -132, 101,
    -125, 0,    116,  125,  133,  141,  170,  0,    161,  82,   0,    1,    0,    -56,  41,   -50,  0,    101,  25,
    0,    131,  0,    0,    161,  0,    0,    1,    0,    0,    161,  0,    0,    1,    -86,  159,  2,    -80,  201,
    17,   100,  0,    32,   -80,  -197, 42,   -80,  195,  57,   100,  0,    72,   -80,  -197, 82,   -80,  195,  97,
    100,  0,    112,  -80,  -197, 141,  -150, 0,    161,  -150, 0,    1,    38,   -32,  37,   -40,  0,    77,   40,
    0,    97,   0,    0,    161,  0,    0,    1,    -17,  -96,  3,    -20,  0,    23,   100,  0,    43,   -20,  0,
    63,   100,  0,    83,   -25,  0,    103,  100,  0,    123,  -25,  0,    141,  -25,  0,    161,  0,    0,    1,
    177,  -304, 3,    150,  -503, 18,   -150, 0,    33,   150,  514,  43,   150,  -503, 58,   -150, 0,    73,   150,
    514,  83,   150,  -503, 98,   -150, 0,    113,  150,  514,  141,  300,  0,    161,  250,  0,    1,    -553, -45,
    3,    -555, 0,    23,   -500, 0,    43,   -555, 0,    63,   -500, 0,    83,   -560, 0,    103,  -500, 0,    123,
    -560, 0,    141,  -560, 0,    161,  -500, 0,    1,    0,    0,    161,  0,    0,    1,    -292, 241,  19,   0,
    0,    39,   -300, 0,    59,   0,    0,    79,   -300, 0,    99,   0,    0,    126,  -300, 0,    141,  -150, 0,
    161,  0,    0,    1,    0,    0,    161,  0,    0,    1,    17,   98,   3,    20,   0,    23,   -100, 0,    43,
    20,   0,    63,   -100, 0,    83,   25,   0,    103,  -100, 0,    123,  25,   0,    141,  25,   0,    161,  0,
    0,    1,    177,  -306, 3,    150,  -501, 18,   -150, 0,    33,   150,  510,  43,   150,  -501, 58,   -150, 0,
    73,   150,  510,  83,   150,  -501, 98,   -150, 0,    113,  150,  510,  141,  310,  0,    161,  250,  0,    1,
    553,  45,   3,    555,  0,    23,   500,  0,    43,   555,  0,    63,   500,  0,    83,   555,  0,    103,  500,
    0,    123,  560,  0,    141,  560,  0,    161,  500,  0,    1,    0,    0,    161,  0,    0,    1,    -292, 243,
    19,   0,    0,    39,   -300, 0,    59,   0,    0,    79,   -300, 0,    99,   0,    0,    126,  -300, 0,    141,
    -150, 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,    161,  0,    0,    1,    -90,  116,
    3,    -80,  191,  18,   100,  0,    33,   -80,  -196, 43,   -80,  191,  58,   100,  0,    73,   -80,  -196, 83,
    -80,  191,  98,   100,  0,    113,  -80,  -196, 141,  -140, 0,    161,  -100, 0,    1,    39,   -25,  38,   -40,
    0,    78,   40,   0,    98,   0,    0,    161,  0,    0,    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_b = {
    { cKF_ckcb_r_npc_1_intro1_b_tbl, cKF_ds_npc_1_intro1_b_tbl, cKF_kn_npc_1_intro1_b_tbl, cKF_c_npc_1_intro1_b_tbl, -1,
      161 },
    1.0f,
    161.0f,
    cKF_FRAMECONTROL_STOP,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX0,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
