#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_logo_us_sing_tbl[] = { 56, 0, 7, 7, 0, 0, 7, 7, 0, 7, 7, 0, 7, 7 };

s16 cKF_kn_logo_us_sing_tbl[] = { 13, 10, 4,  3,  15, 6,  13, 15, 6,  3,  12, 9,  13, 12,
                                  9,  3,  12, 13, 13, 12, 13, 3,  15, 13, 13, 15, 13 };

s16 cKF_c_logo_us_sing_tbl[] = { 0, 0, 0, 0, -900, 0, 0, 0, 0, 0, -900, 0, 0, -900, 0, 0, -900, 0 };

s16 cKF_ds_logo_us_sing_tbl[] = {
    1,   32000, 0,     51,  32000, 0,    52,  32000, 20057, 61,  -3000, 18500, 62,  -4750, -17578, 70,  -6750, 35,
    74,  1000,  0,     78,  -500,  0,    81,  250,   0,     83,  -125,  0,     84,  0,     0,      105, 0,     0,
    112, 0,     0,     1,   0,     0,    46,  0,     0,     90,  0,     0,     90,  0,     -24000, 92,  -600,  -2000,
    102, -300,  3000,  106, 200,   0,    108, 0,     -4500, 109, 0,     0,     121, 0,     0,      1,   0,     0,
    46,  0,     0,     105, 0,     0,    112, 0,     0,     1,   0,     0,     110, 0,     0,      121, 0,     0,
    1,   320,   0,     58,  320,   0,    58,  320,   -6000, 64,  -485,  -800,  69,  -540,  0,      74,  35,    0,
    78,  -18,   0,     81,  9,     0,    83,  -4,    0,     84,  0,     0,     103, 0,     0,      106, -10,   0,
    109, -8,    50,    110, -8,    0,    121, -8,    0,     1,   0,     0,     103, 0,     0,      106, 105,   0,
    109, 90,    -250,  110, 90,    0,    121, 90,    0,     1,   0,     0,     58,  0,     0,      64,  25,    0,
    69,  25,    0,     74,  0,     0,    89,  0,     0,     90,  0,     1413,  93,  225,   0,      103, 225,   0,
    106, 90,    0,     109, 130,   675,  110, 130,   0,     121, 130,   0,     1,   -320,  0,      58,  -320,  0,
    58,  -320,  6000,  64,  485,   800,  69,  540,   0,     74,  -35,   0,     78,  18,    0,      81,  -9,    0,
    83,  4,     0,     84,  0,     0,    103, 0,     0,     106, 10,    0,     109, 8,     -50,    110, 8,     0,
    121, 8,     0,     1,   0,     0,    103, 0,     0,     106, -105,  0,     109, -90,   250,    110, -90,   0,
    121, -90,   0,     1,   0,     0,    110, 0,     0,     121, 0,     0,     1,   145,   0,      58,  145,   0,
    58,  145,   -2171, 64,  -148,  -450, 69,  -175,  0,     74,  25,    0,     78,  -13,   0,      81,  6,     0,
    83,  -3,    0,     84,  0,     0,    110, 0,     0,     121, 0,     0,     1,   0,     0,      89,  0,     0,
    90,  0,     -360,  93,  -340,  0,    103, -340,  0,     106, 120,   0,     109, 98,    -325,   110, 98,    0,
    121, 98,    0,     1,   0,     0,    58,  0,     0,     64,  50,    0,     69,  50,    0,      74,  0,     0,
    89,  0,     0,     90,  0,     231,  93,  34,    113,   103, 38,    0,     106, -10,   0,      109, 13,    325,
    110, 13,    0,     121, 13,    0,    1,   -145,  0,     58,  -145,  0,     58,  -145,  2171,   64,  148,   450,
    69,  175,   0,     74,  -25,   0,    78,  13,    0,     81,  -6,    0,     83,  3,     0,      84,  0,     0,
    110, 0,     0,     121, 0,     0,    1,   0,     0,     89,  0,     0,     90,  0,     360,    93,  340,   0,
    103, 340,   0,     106, -120,  0,    109, -98,   325,   110, -98,   0,     121, -98,   0,      1,   0,     0,
    110, 0,     0,     121, 0,     0,    1,   225,   0,     58,  225,   0,     58,  225,   -3200,  64,  -290,  -500,
    69,  -325,  0,     74,  30,    0,    78,  -15,   0,     81,  7,     0,     83,  -4,    0,      84,  0,     0,
    110, 0,     0,     121, 0,     0,    1,   0,     0,     58,  0,     0,     64,  -50,   0,      69,  -50,   0,
    74,  0,     0,     89,  0,     0,    90,  0,     -268,  93,  -250,  0,     103, -250,  0,      106, -50,   0,
    109, -65,   -250,  110, -65,   0,    121, -65,   0,     1,   0,     0,     58,  0,     0,      64,  -25,   0,
    69,  -25,   0,     74,  0,     0,    89,  0,     0,     90,  0,     672,   93,  113,   0,      103, 113,   0,
    106, -85,   0,     109, -55,   438,  110, -55,   0,     121, -55,   0,     1,   -225,  0,      58,  -225,  0,
    58,  -225,  3200,  64,  290,   500,  69,  325,   0,     74,  -30,   0,     78,  15,    0,      81,  -8,    0,
    83,  4,     0,     84,  0,     0,    110, 0,     0,     121, 0,     0,     1,   0,     0,      58,  0,     0,
    64,  50,    0,     69,  50,    0,    74,  0,     0,     89,  0,     0,     90,  0,     268,    93,  250,   0,
    103, 250,   0,     106, 50,    0,    109, 65,    250,   110, 65,    0,     121, 65,    0,      1,   0,     0,
    110, 0,     0,     121, 0,     0,    1,   60,    0,     58,  60,    0,     58,  60,    -507,   64,  5,     -78,
    69,  0,     0,     74,  20,    0,    78,  -10,   0,     81,  5,     0,     83,  -3,    0,      84,  0,     0,
    90,  0,     0,     93,  -38,   0,    109, -25,   50,    110, -25,   0,     121, -25,   0,      1,   0,     0,
    58,  0,     0,     64,  -160,  0,    69,  -160,  0,     74,  0,     0,     89,  0,     0,      90,  0,     -451,
    93,  -450,  0,     103, -450,  0,    106, -50,   0,     109, -78,   -425,  110, -78,   0,      121, -77,   0,
    1,   0,     0,     58,  0,     0,    64,  -50,   0,     69,  -50,   0,     74,  0,     0,      89,  0,     0,
    90,  0,     677,   93,  113,   0,    103, 113,   0,     106, -25,   0,     109, 0,     386,    110, 0,     0,
    121, 0,     0,     1,   -60,   0,    58,  -60,   0,     58,  -60,   507,   64,  -5,    78,     69,  0,     0,
    74,  -20,   0,     78,  10,    0,    81,  -5,    0,     83,  2,     0,     84,  0,     0,      90,  0,     0,
    93,  38,    0,     109, 25,    -50,  110, 25,    0,     121, 25,    0,     1,   0,     0,      58,  0,     0,
    64,  160,   0,     69,  160,   0,    74,  0,     0,     89,  0,     0,     90,  0,     451,    93,  450,   0,
    103, 450,   0,     106, 50,    0,    109, 78,    425,   110, 78,    0,     121, 77,    0
};

cKF_Animation_R_c cKF_ba_r_logo_us_sing = {
    cKF_ckcb_r_logo_us_sing_tbl, cKF_ds_logo_us_sing_tbl, cKF_kn_logo_us_sing_tbl, cKF_c_logo_us_sing_tbl, -1, 121
};
