#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_smile2_tbl[] = { 0, 2, 0, 2, 0, 0, 0, 2, 0, 0, 0, 3, 3, 6, 0, 3, 0, 0, 3, 0, 0, 6, 0, 2, 0, 0 };

s16 cKF_kn_npc_1_smile2_tbl[] = { 7, 8, 8, 7, 11, 8, 9, 4, 8, 12, 9, 12, 7, 5, 10, 9 };

s16 cKF_c_npc_1_smile2_tbl[] = { 0,    1000, 0, 0, 0,    900, 0,   0,    0,   0, 1800, -175, 40, 0,   200,  0, 0,
                                 -100, 0,    0, 0, 1800, 175, -25, 0,    200, 0, 0,    -100, 0,  0,   900,  0, 0,
                                 0,    0,    0, 0, -900, 0,   0,   -400, 0,   0, 0,    900,  0,  0,   -400, 0, 0,
                                 0,    0,    0, 0, -900, 0,   0,   0,    0,   0, 0,    0,    0,  -900 };

s16 cKF_ds_npc_1_smile2_tbl[] = {
    1,  -40,  233,   2,  -32,  333,   4,  -10,  39,    7,  -30,  -39,   10, -20,  -39,   12, -35,  -222,
    13, -40,  -156,  1,  -140, 311,   2,  -130, 444,   3,  -110, 444,   4,  -100, 39,    7,  -130, -39,
    10, -110, -39,   12, -132, -333,  13, -140, -233,  1,  -140, 311,   2,  -130, 444,   3,  -110, 444,
    4,  -100, 39,    7,  -130, -39,   10, -110, -39,   12, -132, -333,  13, -140, -233,  1,  -100, -333,
    2,  -111, -583,  6,  -239, -583,  7,  -250, 0,     11, -139, 958,   12, -111, 583,   13, -100, 333,
    1,  0,    -4198, 2,  -140, -3799, 3,  -253, -2401, 4,  -300, -34,   5,  -256, 2333,  7,  0,    4333,
    9,  256,  2333,  10, 300,  -34,   11, 253,  -2401, 12, 140,  -3799, 13, 0,    -4198, 1,  30,   1458,
    2,  79,   1050,  3,  100,  43,    8,  -131, -972,  9,  -150, -6,    11, -87,  1556,  12, -28,  1750,
    13, 30,   1743,  1,  253,  -3589, 2,  134,  -3969, 4,  -152, -3700, 6,  -300, 36,    7,  -256, 2333,
    9,  0,    4333,  11, 256,  2333,  12, 300,  -34,   13, 253,  -1401, 1,  23,   -710,  5,  -50,  3,
    11, 50,   -13,   13, 23,   -577,  1,  148,  -233,  2,  140,  39,    3,  150,  444,   4,  170,  444,
    5,  180,  39,    8,  150,  -39,   11, 170,  -32,   13, 148,  -448,  1,  108,  953,   2,  139,  1361,
    3,  198,  1361,  4,  230,  0,     5,  198,  -1361, 6,  139,  -1361, 7,  108,  -233,  9,  154,  694,
    10, 170,  0,     11, 154,  -694,  12, 124,  -694,  13, 108,  -486,  1,  -565, -272,  2,  -574, -389,
    3,  -591, -389,  4,  -600, -39,   7,  -575, 0,     10, -600, 39,    11, -591, 389,   12, -574, 389,
    13, -565, 272,   1,  108,  486,   2,  124,  694,   3,  154,  694,   4,  170,  0,     5,  154,  -694,
    7,  108,  233,   8,  139,  1361,  9,  198,  1361,  10, 230,  0,     11, 198,  -1361, 12, 139,  -1361,
    13, 108,  -953,  1,  565,  272,   2,  574,  389,   4,  600,  0,     7,  565,  0,     10, 600,  0,
    12, 574,  -389,  13, 565,  -272,  1,  -25,  687,   3,  22,   662,   5,  50,   9,     11, -50,  2,
    13, -25,  524,   1,  53,   -819,  3,  10,   44,    4,  28,   778,   5,  62,   778,   6,  80,   0,
    7,  62,   -778,  8,  28,   -778,  9,  10,   -39,   12, 70,   -29,   13, 53,   -525,  1,  -350, -389,
    2,  -363, -556,  4,  -400, 0,     6,  -363, 556,   7,  -350, 78,    9,  -372, -333,  10, -380, 0,
    12, -358, 333,   13, -350, 233
};

aNPC_Animation_c cKF_ba_r_npc_1_smile2 = {
    { cKF_ckcb_r_npc_1_smile2_tbl, cKF_ds_npc_1_smile2_tbl, cKF_kn_npc_1_smile2_tbl, cKF_c_npc_1_smile2_tbl, -1, 13 },
    1.0f,
    13.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    5,
    NULL,
    aNPC_MOUTH_TEX1,
    2,
    -1,
    eEC_EFFECT_WARAU,
    NULL,
    NULL,
};
