Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

Snow Rider 3D: its walls, ramps, snowballs and crash camera, closer to the game

randomperson123441b81b823c740
diff --git a/games/snowrider/Makefile b/games/snowrider/Makefile
index 236e597d..e8fcfd8e 100644
--- a/games/snowrider/Makefile
+++ b/games/snowrider/Makefile
@@ -2,7 +2,8 @@
# make output/snowrider.nwa
# make check link it like the calculator does (output/snowrider.bin)
# make host build/play: the game on a computer, scripted keys and pictures (tests/play.c)
-# make test the slope made far ahead, two minutes down it, the walls, a jump, saves (kept, from the copy,
+# make test the slope made far ahead, two minutes down it, the walls (and their colliders whole), the
+# snowballs' colliders, a jump, saves (kept, from the copy,
# damaged), buying a sled, 300 sessions of random keys (with the sanitizers)
# make data UNITY=DIR src/data.c and src/data.h again, from Snow Rider 3D's Unity project's Assets folder in DIR
# (tools/gen.py: Python 3 with PyYAML, NumPy and Pillow; the project is only read)
diff --git a/games/snowrider/README.md b/games/snowrider/README.md
index bd7ded75..74e6d9b8 100644
--- a/games/snowrider/README.md
+++ b/games/snowrider/README.md
@@ -24,7 +24,7 @@
* **The game's own slope:** made as Snow Rider 3D makes it, 10 metres at a time from its forest and plains, with the same structures, chunks, trees, rocks, snowmen, stumps and fences, turned at random as in the game.
* **Tunnels, cracks and floating islands:** past 10 points the slope throws in tunnels, ramps over a crack and islands floating over the void, and rows of giant snowballs roll across it.
-* **The game's sled:** its speed, which grows with your score, its turning, its jump and its gravity, and the four rays that tell when it hits something, all with Snow Rider 3D's numbers.
+* **The game's sled:** its speed, which grows with your score, its turning, its jump and its gravity, and the three rays that tell when it hits something (the game has a fourth, switched off), all with Snow Rider 3D's numbers.
* **Its camera and look:** the view from just behind the sled, leaning with the turns and the slopes, the world bending away over a near horizon, the low-poly colours, the sun and the falling snow.
* **Gifts and 11 sleds:** pick up the gifts on the slope and spend them on the Metal Sleigh, the Santa Sleigh and the rest, each with its own model.
* **Crashes:** the sled breaks into its pieces, time slows down and the camera turns around the wreck.
@@ -70,7 +70,7 @@ In the menus, the arrows choose, **OK** picks and **Back** goes back. 8, 4, 6, 2
* **On its own:** Snow Rider 3D is too big to fit next to NumPlay. Installing it from the NumWorks website swaps out NumPlay and the other apps, and installing NumPlay again swaps it back out. Your progress in each one is kept.
* **Quit game** in the pause menu asks first.
-* The meshes have fewer triangles than the game's, each with a simpler version for far away, so that it runs at about 37 frames a second on the N0110. Only the sled casts a shadow.
+* The meshes have fewer triangles than the game's, each with a simpler version for far away, so that it runs at about 38 frames a second on the N0110 (31 on the crash). The walls, ramps and rocks the sled meets keep all their triangles. Only the sled casts a shadow.
* There is no music or sound: the calculator has no speaker.
## Credits
diff --git a/games/snowrider/src/data.c b/games/snowrider/src/data.c
index e7fb4455..e9c8aa5a 100644
--- a/games/snowrider/src/data.c
+++ b/games/snowrider/src/data.c
@@ -269,14 +269,14 @@ static const int16_t rv66[] = {6802,-20049,-29820,-24948,-15354,-20905,-26578,40
static const uint16_t rt66[] = {1,2,0,0,4,3,4,0,2,9,7,4,1,5,10,10,8,2,2,1,10,9,4,2,6,0,3,7,13,3,7,9,11,13,12,5,13,7,11,10,12,8,12,10,5,13,6,3,8,11,9,7,3,4,9,2,8,8,12,11,5,6,13,5,0,6,5,1,0,11,12,13};
static const uint8_t rc66[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
static const int8_t rn66[] = {-37,-23,-119,43,10,-119,-11,15,-126,69,106,8,-118,-42,23,-58,106,-40,-126,-12,-11,-67,101,-38,77,-94,-38,115,-36,39,70,97,43,-19,-85,92,95,33,77,-96,42,71,-118,-42,19,120,-4,42,-19,104,70,101,51,-58,-69,100,-35,-40,54,108,5,-101,77,22,-124,-19,-32,-110,-55,-6,10,126};
-static const int16_t rv67[] = {-11665,2842,8778,-32567,471,6488,-11554,5931,14533,-14435,4985,14465,-30901,-486,3136,-18603,5609,14570,-21345,6923,14420,779,3872,13250,560,7423,13644,-31176,3872,13279,-31395,7423,13644,-9042,7032,14161,1054,-486,3136,-612,471,6488,-9382,2912,2130,302,20,9436,-32299,394,11672,-31257,-4778,787,-32767,-12740,-352,-21645,2311,109,-812,-12740,-352,699,-4778,787,-31955,-15978,-115,-27719,9987,3293,0,-15978,-115,-13666,-1554,15347,-32299,-792,12459,-21922,5603,8372,-5648,11909,14567,-5456,13282,7013,-20145,12225,15985,-8344,16240,12919};
-static const uint16_t rt67[] = {25,26,27,16,1,27,4,19,1,25,7,8,6,26,5,6,9,26,9,6,10,25,11,2,25,8,11,13,21,12,14,21,13,19,27,1,14,13,15,27,0,25,27,26,16,0,15,25,3,5,25,25,2,3,14,15,0,5,26,25,18,19,17,24,18,22,24,19,18,20,21,14,14,24,20,27,19,23,24,14,19,19,4,17,25,15,7,0,30,28,0,28,29,14,29,23,23,31,30,30,31,28,0,29,14,0,27,30,14,23,19,27,23,30,29,31,23,28,31,29};
-static const uint8_t rc67[] = {55,55,55,0,0,0,0,0,0,55,55,55,55,55,55,55,0,0,55,0,0,0,0,0,0,55,0,55,0,55,55,0,0,55,55,55,0,55,0,55};
-static const int8_t rn67[] = {12,-81,-97,56,-114,-5,49,-104,54,23,-12,124,-13,-13,126,-8,-20,125,-10,-14,126,14,10,126,6,14,126,102,-43,63,-59,-89,69,45,-110,45,-29,-123,-10,-24,-100,-74,2,-70,-106,-20,-101,-74,6,18,126,-8,16,126,-28,-123,-11,-19,0,126,25,-22,122,0,9,127,-1,-3,127,3,-18,126,76,26,98,90,84,-30,-19,-24,123,51,-59,100,44,-86,82,-9,72,-104,-108,66,9,-12,-50,116,40,-120,-3,-12,-52,-115,-107,58,-36,28,90,-85,-16,-59,112,96,50,-66,7,-112,59,-104,-71,-16};
-static const int16_t rv68[] = {-32567,471,6488,-14435,4985,14465,-21345,6923,14420,779,3872,13250,560,7423,13644,-31395,7423,13644,-9042,7032,14161,-612,471,6488,-9382,2912,2130,-31257,-4778,787,-32767,-12740,-352,699,-4778,787,-31955,-15978,-115,-27719,9987,3293,0,-15978,-115,-32299,-792,12459,-21922,5603,8372,-8344,16240,12919};
-static const uint16_t rt68[] = {1,15,16,15,0,16,1,3,4,2,5,15,1,4,6,8,11,7,13,16,0,16,8,1,8,7,1,2,15,1,10,13,9,14,10,12,14,13,10,14,11,8,14,8,13,13,0,9,1,7,3,8,16,17,8,17,13,13,17,16};
-static const uint8_t rc68[] = {0,55,0,0,0,55,55,55,55,0,0,0,0,0,0,55,55,55,0,0};
-static const int8_t rn68[] = {40,-104,-60,58,-110,-26,9,-13,126,-11,-17,125,7,1,127,-59,-89,69,46,-58,-103,-21,-125,13,-37,-122,5,-7,-22,125,-60,-5,112,0,9,127,-3,-19,125,9,-11,126,3,-14,126,108,-36,57,-4,-113,58,-30,79,-95,-24,-77,98,63,-36,-104};
+static const int16_t rv67[] = {-5582,1252,8939,-5556,1893,8368,-19969,935,9227,-24975,960,8103,-24974,1889,8128,-19663,1885,8098,-15813,974,8150,-15577,1819,8112,-5564,959,8062,-5563,1888,8087,-25003,930,9223,-24983,951,8422,-16017,1034,9159,-5532,930,9137,-25003,1858,9248,-24982,1880,8447,-6582,-6579,-16,-6556,-5938,-587,-5547,-6581,28,-5521,-5940,-543,-6576,1278,8923,-25397,2011,302,-25400,1261,302,-24430,1257,243,-24427,2007,243,-24498,1260,8133,-24819,1261,8161,-23889,1257,8081,-23886,2007,8080,-24433,2009,8128,-5532,1859,9163,-23808,1882,8378,-23808,953,8353,-6471,1789,8207,-24816,2011,8161,-24546,2009,7208,-5877,1897,7879,-5874,1126,7893,-5599,1912,-211,-5567,1142,-209,-6714,1154,5451,-6802,1121,7839,-6805,1892,7824,-6458,1105,-237,-6490,1875,-239,-6538,1122,7854,-6541,1893,7840,-6612,-1118,6234,-6563,-112,6019,-25138,1261,3847,-5559,-3995,1664,-6562,-3994,1699,-24058,2007,5585,-6560,-2919,4354,-6529,-4621,2265,-6793,-2198,3690,-5648,-1834,3689,-5618,-543,5383,-15780,1878,9121,-24178,1257,3896,-24996,2011,5725,-5415,-2552,4351,-23912,807,8159,-23777,1433,7623,-26761,-5720,-387,-26580,-5089,-932,-25766,-5986,-363,-25584,-5353,-909,-24852,1029,8183,-25297,-685,6055,-24667,1512,7495,-25289,-560,4881,-24725,-2050,3338,-25311,-4145,1923,-21356,1353,8547,-21515,2001,8679,-21854,1879,8956,-24718,1334,5479,-24877,1982,5611,-24105,1571,5052,-24265,2220,5185,-21874,1143,8970,-22032,1780,9102,-22745,1168,7952,-22542,1816,8590,-21921,2060,8140,-6230,1582,5050,-6096,2236,5265,-9079,1190,8611,-8957,1840,8817,-9578,1475,8022,-9443,2131,8237,-5747,1334,5544,-5780,1989,5833,-6790,1245,6583,-6109,1954,6301,-7262,2231,6282,-6719,1936,6849,-6620,2250,5711,-5473,-3104,14964,-5651,-577,16367,-7741,-1379,16298,-6104,-2399,13215,-7471,-2429,13370,-7174,709,9947,-13193,-37,16481,-11950,495,16278,-14099,703,16401,-9066,1664,15430,-9976,-1707,15169,-9643,443,10429,-11077,-725,13742,-10992,970,10080,-13945,-767,16286,-15910,-1214,12931,-18247,-594,13160,-16896,2149,8529,-11665,2842,8778,-13666,-500,14560,-14552,-109,10589,-23371,-607,14702,-26173,1003,14731,-25198,-837,14398,-22062,-1388,14490,-20740,115,14647,-22373,172,14521,-29233,2023,8025,-26235,1664,9381,-32031,835,11718,-31653,20,9436,-32567,471,6488,-10795,2867,15223,-12770,2527,15480,-11554,5931,14533,-12890,6078,14471,-8935,5592,7913,-7900,6556,7170,-28422,1886,5558,-26430,1754,4721,-26641,2647,6476,-30183,2160,6256,-29283,1283,4555,-27482,753,3452,-14435,4985,14465,-15190,2103,15629,-29651,-611,2553,-27956,-579,2395,-26124,409,1753,-28191,-1438,1774,-30901,-486,3136,-18603,5609,14570,-21350,3340,14222,-18195,3253,14619,-21345,6923,14420,-24196,7252,14306,-16280,5682,14423,-19161,936,15331,-16411,969,16002,-3199,126,14703,-2871,3012,15244,-2534,6372,13860,-4869,3271,14630,779,3872,13250,560,7423,13644,-24020,2364,14454,-27353,7334,13909,-24504,5863,14389,-29205,920,13841,-31176,3872,13279,-29400,-479,14060,-26757,-38,12392,-24170,-666,12669,-29346,4006,13835,-27911,-166,13848,-28835,7540,13385,-31395,7423,13644,-2315,309,12415,-2296,634,10539,-1135,626,11736,-3841,129,11136,-5500,837,9581,-3662,-1370,13311,-2311,-41,14517,-6851,2382,15020,-7045,7273,14010,-9042,7032,14161,-9393,3998,14712,-4367,7140,14371,-3231,858,3628,-1404,-1233,2098,1054,-486,3136,232,-842,2235,-1126,939,4721,-612,471,6488,-6067,2253,1780,-6941,-1081,1127,-4541,-690,1662,-9382,2912,2130,-11020,277,1181,-8767,1609,1077,-7315,-1656,95,-26194,456,3469,-24975,1972,6125,-25716,988,3692,-2430,2328,6093,-5645,1989,5040,-3828,1769,7572,302,20,9436,-6724,4567,7519,-8014,6614,5113,-18764,-904,15178,-14504,2608,8609,-23571,1880,8217,-23765,2245,6889,-22096,4986,8503,-20941,1911,8876,-19437,3308,8753,-24954,2693,7760,-316,175,13184,-7556,-3200,15335,-11118,-1121,15600,-9137,-1599,13243,-16118,-1754,15089,-19951,551,10618,-18806,-15,10745,-20882,142,11260,-20401,1574,9518,-20129,142,11553,-21165,-241,12103,-22589,-345,10998,-21822,1326,9121,-20538,-672,13962,-32299,394,11672,-31723,-842,2235,-32271,175,13202,-8147,2441,1629,-7616,4220,4772,-8142,3775,3426,-24187,3513,4762,-24226,2317,2414,-24253,3860,3406,-23537,2436,1176,-25564,1242,2708,-23128,4080,6311,-24608,1970,3885,-7089,3054,5642,-6494,3374,7091,-24573,1800,6206,-2172,-2768,1700,-3834,-3194,1388,-21986,-5926,117,-22686,-7774,242,-20124,-9151,-21,-26816,-3354,67,-28289,-11317,-409,-24259,-11880,96,-32515,-9686,-264,-31520,-6342,382,-5291,-6607,-226,-7649,-10092,-137,-4923,-11225,-348,-12818,-8262,370,-8959,-4997,-183,-12820,-4300,173,-9233,-8314,-90,-11244,-10884,241,-9573,-13029,444,-10129,-2530,16,-6603,-2388,134,-7533,-15977,125,-3573,-3882,617,-6065,-2269,1032,-11652,-15977,87,-9265,-15976,188,-28397,-1513,997,-31723,-935,1384,-31257,-4778,787,-25184,-14254,-24,-32767,-12740,-352,-24746,-1108,556,-25155,-845,1314,-21645,2311,109,-21760,-3564,823,-26655,-2415,997,-26381,-1352,914,-22374,-15978,-133,-29283,-15976,208,-21632,-14041,-26,-19174,-2321,290,-16905,-2465,542,-19713,-11298,-3,-17770,-13612,128,-16995,4229,1023,-17194,6399,1272,-19610,5066,517,-16578,-15977,130,-16848,-9729,361,-14824,-1700,848,-13314,-2178,1123,-13870,-12615,242,-2449,-6397,213,-560,-9686,-264,435,-6342,382,-12161,-1543,983,-11212,-13616,443,-3241,-15978,-432,-1586,-3298,1007,-812,-12740,-352,699,-4778,787,-31955,-15978,-115,-19163,7208,9791,-17136,4989,9277,-19087,2924,477,-14704,-15978,-190,-24724,5608,3618,-23264,4505,1573,-27719,9987,3293,-14726,5492,11856,-12132,5565,11778,232,-935,1384,-1259,-1574,1074,0,-15978,-115,-9823,7690,9880,-23874,5360,5643,-8776,6585,3494,-8024,8491,5304,-8907,4238,3234,-10398,5035,1706,-10476,7238,2113,-12128,6459,1744,-8251,8783,7492,-13404,4239,1592,-12009,4278,1444,-23342,5849,6347,-8301,8421,3742,-14914,4327,1299,-13549,6403,1928,-1135,-706,12523,-344,-792,12459,-31487,-520,12639,-7471,-3533,14157,-6104,-3517,14001,-13666,-1554,15347,-11077,-1802,14528,-9137,-2714,14030,-20151,-1205,12568,-18276,-1722,14248,-21165,-1506,12889,-3845,-1310,11920,-2315,-905,13202,-26757,-1256,13179,-24170,-1845,13455,-22589,-1811,11785,-15933,-2360,13947,-32299,-792,12459,-344,394,11672,-21922,5603,8372,-15059,6493,1601,-18210,11813,3135,-22649,10079,2052,-21526,9774,14387,-17641,8953,12817,-5648,11909,14567,-5433,12117,11084,-12479,9878,13280,-27406,9915,5257,-22757,15901,11417,-5406,12645,7742,-9763,9814,13500,-7457,11579,4674,-9539,11016,3892,-24462,11033,13199,-5456,13282,7013,-27437,10066,5753,-11603,11376,4128,-26557,10290,7466,-14308,11789,3356,-9366,16274,12314,-10587,16345,12226,-21758,13476,15418,-20145,12225,15985,-8344,16240,12919,-14366,16714,16700,-23079,15177,12448,-11991,16637,12386,-6740,13581,15729,-5178,14533,14652,-13954,17363,12436,-16816,17060,11766,-7204,15488,13464,-20035,16404,11260,-23638,14201,13802,-10315,12244,15865,-16839,11652,15600,-23079,14751,12975,-7456,3145,3449,-13442,938,8286,-13408,773,8286,-16520,127,8869,-16554,292,8869,-13256,805,9233,-13290,970,9233,-16364,159,9776,-13446,938,8257,-16564,290,8804,-16529,125,8804,-13587,908,7412,-13552,743,7412,-16666,96,7922,-16701,262,7922,-15010,357,8393,-14873,386,8381,-14720,417,8451,-15096,339,8513,-15269,303,8564,-15322,292,8699,-14894,381,9424,-15324,292,9126,-15150,328,9344,-14577,447,9281,-14479,467,9034,-14604,441,8526,-14495,464,8644,-14527,457,8755,-15401,285,8195,-15247,317,8175,-15146,338,8301,-14562,459,8087,-14426,487,8041,-14517,469,8021,-14638,444,7968,-14619,448,7864,-15312,304,8310,-15319,302,8477,-15239,319,8484,-15360,268,8156,-15412,259,8093,-15171,324,8097,-14588,468,8236,-15294,301,7981,-15157,342,7935,-15278,318,7837,-14615,448,8374,-14488,476,8441,-14609,440,8483,-14437,510,8220};
+static const uint16_t rt67[] = {20,0,1,20,1,33,10,2,14,4,5,3,5,6,3,5,7,6,7,9,8,7,8,6,10,11,32,32,2,10,12,2,32,12,32,6,13,12,6,8,13,6,11,10,14,11,14,15,22,60,21,22,49,60,24,52,23,25,27,28,25,28,29,13,8,9,13,9,30,6,32,3,31,4,32,3,32,4,32,11,15,32,15,31,18,16,17,18,17,19,0,20,47,26,25,34,23,22,21,23,21,24,25,29,35,25,35,34,37,39,38,37,38,36,41,42,40,42,44,40,44,43,40,45,37,36,45,36,46,39,43,44,39,44,38,39,40,43,39,37,40,37,45,40,46,42,45,41,45,42,49,25,26,17,50,19,17,51,50,5,4,31,9,58,30,9,7,58,15,14,31,29,28,35,28,60,35,28,52,60,36,38,44,36,44,46,46,44,42,52,24,21,52,21,60,51,55,56,51,56,50,55,48,57,55,57,56,1,57,48,33,1,48,2,12,58,2,58,14,12,30,58,12,13,30,47,61,0,58,5,14,5,31,14,47,20,33,47,33,48,45,41,40,52,59,23,52,28,27,52,27,59,60,34,35,16,54,51,16,51,17,54,53,55,54,55,51,53,47,48,53,48,55,19,50,18,50,56,61,50,61,18,56,57,61,57,1,0,57,0,61,47,53,61,53,54,18,53,18,61,54,16,18,7,5,58,25,59,27,25,49,59,49,23,59,49,22,23,49,26,60,26,34,60,68,62,63,68,63,70,66,64,65,66,65,67,62,68,69,69,73,62,65,72,67,65,71,72,63,72,71,71,70,63,69,68,70,69,70,71,64,71,65,64,69,71,67,72,73,67,73,66,72,63,62,72,62,73,69,64,73,64,66,73,81,74,75,81,75,76,79,77,78,79,78,80,81,76,82,83,81,84,78,84,80,85,80,84,81,82,84,77,84,78,77,83,84,80,74,79,80,85,74,85,75,74,74,77,79,74,81,83,83,77,74,92,86,87,90,88,89,90,89,91,92,87,93,94,92,95,94,95,97,89,97,96,89,96,91,94,88,92,92,93,95,88,97,89,88,94,97,91,96,90,96,86,90,96,98,86,98,87,86,92,90,86,92,88,90,99,100,101,102,103,104,105,106,107,108,109,101,110,111,112,107,113,105,114,115,116,117,118,119,120,121,122,123,124,125,128,126,127,126,129,130,131,132,106,132,133,134,135,136,104,137,138,139,137,140,141,141,142,137,137,139,127,143,107,132,144,107,143,141,145,146,141,146,142,146,147,142,146,145,148,149,141,130,137,142,138,150,151,152,150,153,151,151,153,154,152,155,150,152,156,157,158,159,100,160,161,159,159,162,163,120,164,121,165,164,166,164,120,125,164,125,151,167,168,169,127,171,170,121,172,167,172,168,167,121,167,173,168,174,175,172,165,174,174,168,172,172,121,165,176,177,178,179,102,180,158,181,182,158,162,159,173,122,121,120,123,125,183,108,101,184,185,186,186,185,133,183,187,184,161,160,187,188,189,190,190,189,191,192,190,193,194,195,196,188,196,189,194,196,188,197,198,199,199,198,200,147,201,142,201,202,138,201,203,202,204,192,193,204,205,188,204,206,205,177,204,207,204,193,207,208,136,209,208,104,136,205,206,180,180,206,177,124,210,156,211,117,119,116,211,119,212,213,214,215,214,216,202,217,138,162,182,218,127,170,128,119,114,116,219,101,109,220,109,108,112,135,110,110,221,111,157,210,222,113,107,157,223,216,224,223,225,226,225,227,228,223,227,225,171,127,229,229,230,225,217,212,229,110,104,221,158,100,99,101,100,183,106,220,108,105,113,220,116,115,224,224,115,227,124,123,231,231,210,124,157,156,210,227,223,224,128,232,129,173,169,122,122,123,120,132,107,106,131,133,132,131,186,133,131,108,186,140,130,141,137,126,140,126,130,140,137,127,126,144,155,157,132,134,143,144,143,155,157,107,144,145,149,233,233,148,145,141,149,145,201,138,142,152,151,156,156,151,124,152,157,155,163,187,160,160,159,163,164,165,121,154,165,166,164,151,166,151,154,166,125,124,151,169,173,167,169,168,234,182,162,158,179,177,176,180,177,179,104,180,102,183,184,108,108,184,186,161,187,183,183,100,161,100,159,161,188,190,192,194,235,195,236,209,237,188,205,194,236,208,209,238,239,240,240,239,241,242,201,147,238,243,244,188,192,204,177,206,204,205,245,194,246,180,208,180,104,208,214,247,243,247,203,243,138,217,139,127,139,217,202,212,217,214,215,212,158,99,181,103,221,104,112,117,135,112,111,118,157,222,113,119,118,114,220,106,105,224,216,116,229,127,217,118,117,112,226,216,223,229,212,230,178,177,207,248,196,249,250,251,252,253,254,255,253,256,254,256,253,257,258,259,260,261,262,263,262,261,264,265,266,259,262,267,263,268,267,262,266,269,260,270,264,258,270,268,262,271,196,195,266,272,273,196,248,189,274,275,276,253,274,276,277,254,278,253,250,279,147,280,281,279,250,282,283,280,284,147,284,280,285,277,286,285,287,277,255,277,287,277,255,254,288,250,289,250,288,282,290,287,291,287,290,255,290,252,255,292,293,294,290,291,296,297,263,298,261,299,265,296,252,290,255,252,251,255,251,253,256,278,254,300,260,301,300,258,260,301,302,300,258,264,259,265,259,264,264,261,265,298,263,267,298,267,303,304,266,265,252,289,250,198,303,267,266,260,259,262,264,270,269,305,260,306,270,300,307,301,260,260,305,307,306,300,302,302,308,306,286,278,309,278,286,277,253,276,257,283,284,148,216,310,311,216,311,116,281,312,294,291,287,295,313,272,299,285,295,287,200,198,267,314,315,316,148,284,147,211,317,318,211,318,117,304,265,299,270,258,300,308,319,320,320,306,308,299,272,304,267,268,200,266,273,269,307,305,321,281,241,147,281,240,241,135,117,318,250,253,251,296,289,252,304,272,266,295,313,291,291,299,296,296,261,289,263,297,289,136,135,322,135,318,322,211,116,311,289,261,263,291,313,299,243,238,323,324,209,325,296,299,261,148,147,146,241,242,147,249,196,271,319,191,189,320,189,248,248,249,270,248,270,306,270,249,271,268,271,195,195,235,199,237,326,197,326,237,209,327,328,329,209,136,330,331,332,329,214,243,333,324,334,328,335,331,336,238,240,314,281,280,279,279,280,283,279,283,253,283,148,274,148,233,275,148,275,274,337,338,218,234,354,339,219,340,341,220,113,342,109,220,343,109,343,344,342,113,222,231,345,346,347,345,231,341,348,181,349,182,181,122,350,351,218,182,349,352,123,351,123,352,347,344,340,219,169,234,339,350,122,169,346,353,222,219,99,101,176,178,337,348,179,176,102,179,348,103,102,341,103,341,340,344,221,103,343,111,221,118,111,343,353,114,118,346,115,114,345,227,115,228,227,345,352,229,228,171,229,352,350,170,171,339,128,170,354,128,339,232,128,354,178,355,338,216,214,356,292,335,357,292,357,293,293,358,359,310,360,361,322,362,363,315,294,359,318,317,364,365,316,366,330,363,367,334,325,367,322,318,368,317,311,361,310,361,311,328,369,370,310,356,371,334,372,369,333,323,373,329,370,374,328,370,329,356,333,375,333,373,375,336,374,376,357,376,358,323,314,365,369,377,378,360,371,379,360,379,380,372,381,377,374,370,378,366,382,383,376,374,384,373,365,383,362,385,386,376,387,388,363,386,389,358,388,390,361,360,380,359,390,366,371,375,391,364,393,392,375,373,394,367,389,381,362,368,392,364,361,393,235,236,237,235,197,199,236,245,208,237,197,235,235,395,236,395,245,236,246,245,205,208,245,246,205,180,246,194,245,395,194,395,235,238,244,239,239,242,241,201,242,203,243,203,244,239,203,242,244,203,239,202,203,247,213,247,214,202,247,213,202,213,212,225,230,226,230,212,215,216,226,215,230,215,226,380,382,393,388,382,390,391,382,379,385,382,386,387,382,388,379,382,380,384,382,387,383,382,394,378,382,384,381,382,377,393,382,392,377,382,378,386,382,389,394,382,391,389,382,381,392,382,385,390,382,366,209,324,326,326,324,327,197,327,332,198,332,331,303,331,335,297,298,335,297,292,312,288,289,312,288,279,282,279,288,281,240,281,315,131,106,108,135,104,110,225,228,229,128,129,126,178,207,355,292,294,312,281,294,315,314,316,365,136,322,330,211,311,317,243,323,333,324,325,334,319,189,320,320,248,306,270,271,268,268,195,200,195,199,200,327,329,332,209,330,325,331,329,336,214,333,356,324,328,327,335,336,357,238,314,323,283,274,253,219,341,99,220,342,343,342,222,353,231,346,210,347,231,123,341,181,99,349,181,348,122,351,123,218,349,337,344,219,109,350,169,339,346,222,210,176,337,349,348,176,349,102,348,341,344,103,340,343,221,344,118,343,342,353,118,342,346,114,353,345,115,346,228,345,347,352,228,347,171,352,351,350,171,351,339,170,350,178,338,337,216,356,310,293,359,294,322,363,330,315,359,316,318,364,368,365,366,383,330,367,325,334,367,372,322,368,362,317,361,364,310,371,360,334,369,328,329,374,336,356,375,371,336,376,357,357,358,293,323,365,373,369,378,370,372,377,369,374,378,384,376,384,387,373,383,394,362,386,363,376,388,358,363,389,367,358,390,359,361,380,393,359,366,316,371,391,379,364,392,368,375,394,391,367,381,372,362,392,385,326,327,197,197,332,198,198,331,303,303,335,298,297,335,292,297,312,289,288,312,281,240,315,314,396,397,398,396,398,399,400,401,402,398,402,399,398,397,400,400,402,398,400,397,396,400,396,401,404,405,403,408,409,406,408,406,407,407,405,408,407,403,405,408,405,404,408,404,409,403,407,406,399,402,401,399,401,396,404,403,406,409,404,406,412,421,411,418,411,421,418,421,423,413,410,411,413,411,418,418,417,413,414,413,415,416,418,423,416,423,419,419,423,420,422,423,421,413,417,415,426,424,425,427,426,425,428,427,425,429,428,425,429,425,430,429,430,431,426,432,424,426,434,432,434,433,432,435,436,437,437,436,439,438,437,439,440,438,439,440,439,441,438,442,437,438,445,442,443,444,442};
+static const uint8_t rc67[] = {55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,0,55,0,0,55,0,55,55,0,0,55,55,0,0,55,55,55,55,55,0,0,55,55,55,55,55,55,0,0,0,0,0,0,0,0,0,0,0,0,0,55,0,0,0,0,0,0,0,55,55,0,0,0,0,0,0,0,0,0,55,55,55,55,55,55,0,0,55,55,55,55,55,55,55,55,55,55,55,55,0,55,55,55,55,55,0,55,55,0,0,55,55,0,0,55,55,55,55,55,55,55,55,0,0,0,0,55,55,0,0,0,55,55,0,0,0,0,0,0,55,55,55,55,0,0,0,0,55,55,55,55,0,0,0,0,0,0,0,0,0,0,0,0,0,55,55,55,0,0,0,0,0,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,0,55,55,55,0,55,0,55,55,55,55,55,55,55,0,0,0,0,0,0,0,0,0,0,0,0,0,55,0,55,0,0,0,0,55,0,55,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,55,55,0,0,0,0,0,55,55,55,55,0,0,0,0,0,0,0,0,55,55,55,0,0,0,0,0,0,0,55,55,55,0,0,55,0,0,55,55,55,55,55,55,55,55,55,55,55,55,0,55,0,55,0,0,55,55,55,55,55,55,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,0,0,0,55,55,0,55,55,55,0,55,55,55,0,55,0,55,0,0,55,55,0,0,55,0,55,55,0,0,55,0,55,55,0,55,0,55,0,55,55,55,0,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,0,55,55,0,55,0,55,0,0,55,0,55,55,0,55,0,0,0,0,0,0,0,0,0,0,0,55,0,55,55,55,55,0,0,55,55,55,55,0,55,55,55,55,55,0,55,0,55,0,0,55,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,0,55,0,55,55,55,0,55,55,55,0,0,55,0,0,55,0,0,0,0,55,55,0,55,0,55,0,55,55,55,0,55,0,0,0,0,0,0,0,55,55,55,55,55,0,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,0,0,57,0,57,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
+static const int8_t rn67[] = {1,84,95,-24,103,70,0,-3,127,-1,3,-127,1,-4,-127,0,-6,-127,0,3,-127,-1,-5,-127,0,-127,-3,0,-127,-3,3,-126,-15,1,-127,8,-1,-127,7,0,-127,-3,-127,0,-3,-127,0,-3,-127,1,9,-127,1,9,127,-1,-9,11,0,127,11,0,127,127,0,-4,127,0,-4,0,-127,-5,-27,-3,124,-27,-3,124,-7,3,-127,-7,3,-127,4,-85,-95,4,-85,-95,-4,-95,84,11,0,127,-8,0,-127,-8,0,-127,-126,11,16,114,47,32,127,5,5,127,1,4,-127,-1,-5,-127,0,-5,-127,-5,-6,-7,2,127,-7,2,127,4,0,-127,4,0,-127,5,-127,1,-3,-127,0,1,-127,-2,-7,2,127,-7,2,127,-1,-127,0,4,95,-84,-3,97,-82,0,127,3,0,127,3,-1,127,-8,0,127,3,1,127,0,1,127,0,1,127,0,-5,127,0,-1,127,0,-1,127,0,1,127,0,1,127,0,-29,90,-85,-3,87,-93,-13,95,-84,-31,98,-74,-9,98,-80,4,96,-83,2,5,127,2,7,127,0,6,127,0,-3,127,11,-97,81,0,127,2,0,127,4,-126,13,-10,-127,6,0,1,-127,-2,127,-1,-9,127,-1,-9,127,-1,-9,1,127,0,-127,-2,5,-127,3,-3,-124,-24,18,-126,-11,-5,-127,4,-8,-123,-16,26,127,-2,4,124,23,-19,126,7,-11,124,22,-19,127,-4,1,125,18,-10,29,-89,86,-14,-98,80,29,-91,84,-4,-96,83,2,127,-7,-1,-127,0,-1,-127,0,-1,-127,0,-1,-127,0,-127,1,9,-127,1,9,21,79,97,-1,104,73,-19,-79,-98,-19,-79,-98,-21,-95,81,-19,-96,81,27,95,-80,30,94,-80,24,94,-82,20,96,-81,-121,38,-6,-123,33,3,-122,35,0,-123,32,3,122,-37,4,123,-33,2,123,-29,-3,122,-34,-1,-24,-96,80,-27,-94,81,80,0,98,80,0,98,-73,3,-104,-73,3,-104,81,0,98,-90,-47,76,-27,121,28,-27,121,28,-87,-39,84,-96,-39,73,-95,-42,73,96,39,-73,97,34,-75,99,38,-70,27,-121,-29,27,-121,-26,29,-119,-32,93,9,-86,-98,-7,80,-99,-6,80,113,28,-51,85,-49,81,81,-42,88,27,119,36,27,119,37,-49,-102,-58,103,-26,70,80,-43,89,80,-42,89,-80,45,-87,-80,41,-89,-81,41,-89,-76,45,-91,-26,-119,-34,-27,-119,-35,19,-60,110,-8,-93,-86,10,25,124,-58,7,113,-30,-112,-52,-21,-12,125,-34,-101,-70,80,-95,-27,-16,-31,122,-10,-4,127,2,-121,-37,65,-103,-36,7,49,117,-2,35,122,-27,-56,-111,17,-111,59,7,-111,61,5,-111,62,65,-100,-43,8,53,115,-16,51,115,10,-93,86,31,-83,91,68,-80,71,11,-76,101,58,-98,57,21,-106,66,-16,0,126,-10,-7,126,-6,-7,127,8,4,127,-28,47,114,75,-27,99,-28,50,113,62,-8,110,8,12,126,-21,-1,125,13,13,126,8,10,126,-5,20,125,-19,-108,-64,-36,-1,122,-37,-1,122,-33,-39,116,13,-12,126,-39,21,119,-38,21,119,-24,12,124,21,-123,-21,33,-94,-78,3,-87,93,64,-27,106,-33,-39,116,21,2,125,10,39,121,7,22,125,9,22,125,-15,25,124,35,4,122,-15,-83,95,27,-122,23,-73,-104,-6,-25,-18,123,-27,-88,87,-80,-45,88,42,-63,102,22,-27,122,-29,-124,2,-60,-83,75,93,-86,7,-91,-89,3,-11,-107,67,21,-122,-26,-44,-112,-41,-92,-87,15,-110,-64,4,-62,-54,-97,29,-120,-31,7,-117,-49,-42,-19,119,12,-75,-102,18,-74,-102,112,-51,-30,3,-14,-126,-31,-112,50,71,-23,103,-10,-109,-64,-37,-100,-69,-44,-59,104,36,-19,120,7,-56,-114,-58,-96,-59,-9,-41,120,-23,-12,124,-22,-67,-105,-15,-95,-83,18,-117,-47,19,-116,-47,-36,-109,-55,39,-98,-71,-37,-101,-68,-3,-103,-74,75,-46,92,-21,45,117,45,-26,116,21,-52,114,67,-100,-40,-28,-122,-23,61,-64,91,-62,-81,75,-30,-17,122,-46,-105,-55,101,-66,40,-2,76,101,-13,-52,115,12,50,116,11,30,123,18,32,122,13,39,120,64,-80,75,-19,-126,1,66,-99,-43,-16,-126,2,-1,40,120,-24,33,120,14,44,118,-14,53,115,7,-120,41,-4,-90,89,29,-92,82,-22,-89,88,-14,42,119,-53,5,115,-38,39,114,20,-33,121,-8,49,117,5,17,126,-15,11,126,10,4,127,11,5,126,-9,15,126,14,18,125,-35,8,122,29,17,123,32,-121,-21,12,-110,-63,-11,-94,-85,14,26,123,-13,35,121,22,5,125,-1,52,116,-27,56,111,-27,-108,60,-11,-22,125,-113,-26,53,-55,-114,-2,-117,-25,41,127,5,-5,108,-35,57,102,-76,6,102,15,-75,-33,-100,71,0,-119,-45,-75,-102,1,-122,-30,18,-18,-65,-107,106,-66,-23,105,-66,-27,-36,-110,52,36,-114,-44,-71,-96,43,31,-3,-123,100,-67,39,-37,-88,-84,30,-63,-106,-26,-112,-53,-43,-42,112,53,-113,-23,33,-32,118,-40,-67,-100,-20,-98,-78,-75,-75,-69,57,-71,-89,11,-97,-81,-21,-124,20,-19,-19,124,15,3,126,-16,-5,126,1,-8,127,28,-31,120,9,-3,127,13,6,126,16,2,126,9,19,125,11,-5,126,-4,-12,126,21,1,125,26,-51,113,-19,2,126,-23,-27,122,-5,-12,126,-21,-22,123,11,-18,125,30,-34,119,-3,14,126,-11,-18,125,46,-6,118,-37,-32,117,-47,21,116,-16,-52,115,6,2,127,1,-7,127,0,-7,127,-16,0,126,-14,5,126,42,-38,114,-5,3,127,3,-3,127,3,2,127,-29,-17,122,-14,-4,126,-38,-57,107,3,-4,127,-15,-2,126,9,-8,126,-7,-2,127,3,-4,127,3,-16,126,-19,-5,125,-7,-22,125,4,0,127,12,7,126,16,4,126,35,-43,114,36,-39,115,-3,9,127,-5,-8,127,38,-36,116,16,14,125,-20,5,125,16,4,126,-16,-27,123,-1,-4,127,-1,-3,127,-7,-30,123,-8,-31,123,-15,5,126,-1,20,125,31,-36,118,55,-5,115,4,32,-123,4,33,-123,-17,-6,126,-5,-2,127,-11,-13,126,-6,-5,127,11,-46,118,100,71,33,51,-56,102,-5,95,-84,-3,94,-86,-6,9,127,-17,-27,123,-17,-21,124,8,-6,127,-15,-16,125,-4,3,127,5,-11,126,-12,6,126,57,-42,105,35,-97,74,-85,63,-70,3,8,127,-15,-3,126,7,-20,125,21,11,125,-2,-7,127,1,-3,127,-5,-35,122,-91,36,-80,-95,33,-78,-2,32,-123,14,6,126,0,-16,126,100,19,-76,-115,-6,54,1,-4,127,67,-75,78,80,-93,34,-28,-21,122,28,-123,14,105,-62,35,8,-93,86,12,-95,83,-50,-95,68,-87,-69,61,-53,-34,110,-59,-58,96,-58,-56,98,-17,-23,124,-125,-21,6,14,-16,125,112,15,-59,-78,7,100,-25,-21,123,123,33,2,84,-67,68,71,-81,67,71,-80,69,-57,-110,26,-19,-125,14,-20,-124,17,0,-76,102,4,-77,101,5,-122,35,8,-96,83,-29,-105,66,-31,-103,68,-1,-97,81,-55,-111,27,48,-105,53,81,-97,-15,40,-101,66,-30,-99,73,53,-97,63,19,-125,16,14,-125,17,-56,-111,27,-42,-100,65,-14,-113,57,-23,-112,56,22,-57,111,-43,-61,-103,79,-48,-87,-33,-59,-108,-10,-73,-104,-11,-73,-103,-28,-71,-101,-54,-68,-93,-37,-72,-98,76,-68,-75,-31,-85,-89,51,-70,-92,-25,-75,-100,74,-49,-91,-81,-46,-86,-5,-69,-107,2,-71,-105,42,-55,-106,92,-48,-73,-28,-68,-103,-4,-25,-124,-16,-18,125,-18,-16,125,-12,-43,119,-2,110,-63,-90,89,0,37,-14,121,-5,41,-120,108,-64,-20,-102,75,11,-111,60,17,-98,71,-40,66,77,-77,65,77,-77,-30,-46,114,0,84,-95,-97,2,82,70,55,-91,3,-56,114,0,-54,115,87,76,-52,86,76,-54,-38,-36,116,-7,-39,121,98,74,-32,-11,-109,64,58,34,-108,63,33,-105,-30,-116,43,-11,-107,67,46,-103,-58,-34,-104,65,66,-103,35,-78,17,-98,-4,-108,67,-75,-82,61,12,-109,64,-23,77,-98,23,-106,66,118,-23,-40,-5,96,-83,113,-19,-55,-77,-98,25,-20,85,-92,-9,92,-87,-82,-78,58,12,-76,101,-118,-23,41,-8,-102,76,-72,-85,60,-119,-40,18,-57,-104,46,-108,-40,53,-114,-55,-10,-63,-110,6,-14,-116,50,118,-44,20,81,-91,36,96,-83,-7,78,-94,35,77,-100,-14,84,-95,-1,-54,-100,57,78,11,-100,-48,-65,98,49,-111,-38,37,-99,-71,25,-78,-97,59,-71,-87,38,-91,-80,-9,31,-123,28,-122,-23,49,-75,-90,-38,-59,-106,17,-125,-17,29,-18,-122,-44,-117,-22,52,-90,-73,-27,-123,-13,-7,-127,5,3,26,-124,-8,-127,4,-35,-117,-34,44,-111,-44,-43,-106,-56,-10,14,-126,22,-124,-16,-115,0,54,-92,-5,87,-26,12,124,14,-5,126,-25,-18,123,-26,-10,124,-25,-13,124,-14,-4,126,12,28,123,8,9,126,103,32,67,17,44,118,-17,-53,-114,39,-115,-39,90,-79,43,-35,-122,10,-27,-9,124,39,-46,112,105,71,-14,-105,-6,-72,59,86,-72,96,13,-82,-122,29,20,39,-113,43,88,-20,90,-58,-102,48,-78,-73,69,-90,-60,66,-12,-18,125,-126,1,-13,17,-18,125,96,-42,-72,-84,-20,93,-28,-19,122,117,3,-49,-42,-81,89,13,-119,42,11,-107,68,3,-112,60,-53,-99,59,63,-102,43,82,-97,-12,40,-120,-10,-19,-96,81,53,-97,63,-65,-101,41,-23,-119,37,-30,-100,72,-46,-64,-99,82,-53,-81,-24,-72,-102,-28,-72,-101,-55,-66,-94,-38,-73,-97,73,-62,-83,-34,-81,-92,52,-81,-83,-14,-67,-107,78,-53,-85,-83,-53,-80,-5,-70,-106,1,-69,-107,-16,-64,-108,44,28,-116,-13,-44,118,-87,91,-16,30,-14,123,11,42,-119,106,-68,-14,-100,75,-20,-114,39,41,-38,105,-61,4,37,-121,59,108,-30,-72,-12,104,17,-56,113,89,80,-43,-28,-35,119,-16,-44,118,100,76,-17,3,-107,69,11,-107,68,-15,-107,67,-36,-103,65,112,-46,-37,-125,23,-6,-4,-108,66,-115,-54,-9,25,-106,65,5,90,-89,18,-107,67,82,-3,-97,9,89,-90,95,-84,8,-114,-46,-33,-26,59,-109,-96,-30,78,-40,-18,119,0,-13,126,15,0,126,-16,-10,126,-17,-5,126,-17,-4,126,107,21,65,-22,-5,-125,-22,-5,-125,21,4,125,-122,-25,22,26,-124,0,26,-124,0,123,25,-21,123,25,-21,21,4,125,-20,-4,-125,-20,-4,-125,26,-124,0,36,-120,23,-123,-26,20,-123,-26,20,123,25,-21,-28,122,24,-26,124,0,-26,124,0,-26,124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,26,-124,0,33,-122,-11,33,-122,-11,33,-122,-11,33,-122,-11,33,-122,-11,33,-122,-11,33,-122,-11,33,-122,-11};
+static const int16_t rv68[] = {-5582,1252,8939,-5556,1893,8368,-5564,959,8062,-5563,1888,8087,-25003,930,9223,-24983,951,8422,-5532,930,9137,-25003,1858,9248,-6556,-5938,-587,-5547,-6581,28,-5521,-5940,-543,-25397,2011,302,-24427,2007,243,-24819,1261,8161,-23889,1257,8081,-5532,1859,9163,-6471,1789,8207,-5877,1897,7879,-5567,1142,-209,-6802,1121,7839,-6490,1875,-239,-6612,-1118,6234,-23777,1433,7623,-26761,-5720,-387,-26580,-5089,-932,-25766,-5986,-363,-25584,-5353,-909,-24852,1029,8183,-24265,2220,5185,-21874,1143,8970,-22542,1816,8590,-6096,2236,5265,-9578,1475,8022,-5747,1334,5544,-7262,2231,6282,-5473,-3104,14964,-5651,-577,16367,-7741,-1379,16298,-9066,1664,15430,-9976,-1707,15169,-10992,970,10080,-13945,-767,16286,-18247,-594,13160,-16896,2149,8529,-11665,2842,8778,-13666,-500,14560,-14552,-109,10589,-26173,1003,14731,-22062,-1388,14490,-20740,115,14647,-29233,2023,8025,-26235,1664,9381,-31653,20,9436,-32567,471,6488,-11554,5931,14533,-12890,6078,14471,-7900,6556,7170,-28422,1886,5558,-26641,2647,6476,-30183,2160,6256,-14435,4985,14465,-26124,409,1753,-28191,-1438,1774,-30901,-486,3136,-18603,5609,14570,-21350,3340,14222,-21345,6923,14420,-24196,7252,14306,-16280,5682,14423,-16411,969,16002,-3199,126,14703,779,3872,13250,560,7423,13644,-27353,7334,13909,-29205,920,13841,-31176,3872,13279,-24170,-666,12669,-28835,7540,13385,-31395,7423,13644,-2315,309,12415,-2296,634,10539,-5500,837,9581,-3662,-1370,13311,-6851,2382,15020,-7045,7273,14010,-9042,7032,14161,-4367,7140,14371,-3231,858,3628,1054,-486,3136,232,-842,2235,-612,471,6488,-6067,2253,1780,-4541,-690,1662,-9382,2912,2130,-11020,277,1181,-7315,-1656,95,-2430,2328,6093,-5645,1989,5040,302,20,9436,-6724,4567,7519,-8014,6614,5113,-14504,2608,8609,-23571,1880,8217,-20941,1911,8876,-19437,3308,8753,-316,175,13184,-9137,-1599,13243,-18806,-15,10745,-21165,-241,12103,-22589,-345,10998,-32299,394,11672,-31723,-842,2235,-32271,175,13202,-8147,2441,1629,-8142,3775,3426,-24608,1970,3885,-24573,1800,6206,-2172,-2768,1700,-21986,-5926,117,-26816,-3354,67,-28289,-11317,-409,-32515,-9686,-264,-31520,-6342,382,-5291,-6607,-226,-4923,-11225,-348,-12820,-4300,173,-9233,-8314,-90,-11244,-10884,241,-9573,-13029,444,-3573,-3882,617,-6065,-2269,1032,-11652,-15977,87,-31723,-935,1384,-31257,-4778,787,-25184,-14254,-24,-32767,-12740,-352,-24746,-1108,556,-21645,2311,109,-21760,-3564,823,-22374,-15978,-133,-19174,-2321,290,-19610,5066,517,-16578,-15977,130,-13314,-2178,1123,-560,-9686,-264,435,-6342,382,-3241,-15978,-432,-1586,-3298,1007,-812,-12740,-352,699,-4778,787,-31955,-15978,-115,-19163,7208,9791,-14704,-15978,-190,-24724,5608,3618,-23264,4505,1573,-27719,9987,3293,-14726,5492,11856,-12132,5565,11778,232,-935,1384,0,-15978,-115,-9823,7690,9880,-23874,5360,5643,-10476,7238,2113,-8251,8783,7492,-8301,8421,3742,-7471,-3533,14157,-6104,-3517,14001,-13666,-1554,15347,-20151,-1205,12568,-18276,-1722,14248,-3845,-1310,11920,-24170,-1845,13455,-22589,-1811,11785,-15933,-2360,13947,-32299,-792,12459,-344,394,11672,-21922,5603,8372,-15059,6493,1601,-18210,11813,3135,-22649,10079,2052,-21526,9774,14387,-17641,8953,12817,-5648,11909,14567,-5433,12117,11084,-22757,15901,11417,-9763,9814,13500,-7457,11579,4674,-24462,11033,13199,-5456,13282,7013,-27437,10066,5753,-11603,11376,4128,-14308,11789,3356,-9366,16274,12314,-21758,13476,15418,-20145,12225,15985,-8344,16240,12919,-14366,16714,16700,-6740,13581,15729,-5178,14533,14652,-13954,17363,12436,-23638,14201,13802,-10315,12244,15865,-23079,14751,12975,-14873,386,8381,-15269,303,8564,-14894,381,9424,-15324,292,9126,-14577,447,9281,-15247,317,8175,-15146,338,8301,-14638,444,7968,-15171,324,8097,-14588,468,8236,-15157,342,7935};
+static const uint16_t rt68[] = {0,1,16,3,2,5,4,5,2,6,4,2,5,4,7,6,2,3,6,3,15,5,7,3,9,8,10,18,19,20,18,17,19,14,11,13,14,12,11,17,18,20,17,20,19,8,1,10,8,16,1,4,15,7,4,6,15,15,3,7,21,0,16,9,21,8,21,16,8,10,1,0,10,0,9,21,9,0,13,11,14,11,12,14,25,23,24,25,24,26,27,25,22,22,26,24,24,27,22,23,27,24,26,22,25,27,23,25,28,29,30,28,30,29,33,31,34,32,33,34,34,31,32,33,32,31,35,36,37,41,38,69,38,39,37,173,42,43,44,45,46,110,50,51,50,52,53,60,54,55,57,58,51,59,63,62,59,62,57,62,61,57,63,59,53,64,65,68,64,66,65,65,66,67,72,83,36,36,71,72,73,47,67,47,48,65,74,75,112,47,75,74,75,77,78,75,73,77,75,47,73,79,80,175,80,166,81,70,71,36,74,48,47,83,38,37,84,85,38,38,85,54,83,86,84,83,72,86,87,89,88,96,88,90,91,130,92,87,92,89,91,92,87,93,94,113,113,94,95,61,116,58,96,97,87,80,96,98,96,90,98,99,56,100,99,81,56,97,96,81,81,96,80,101,44,46,43,101,46,102,116,176,103,176,104,116,102,58,71,70,105,51,76,110,46,173,43,165,37,39,40,106,45,69,49,169,107,108,103,76,51,109,109,103,108,40,81,106,70,36,35,37,36,83,43,42,107,107,42,108,74,112,48,60,69,38,38,54,60,57,50,59,50,53,59,57,51,50,69,60,68,111,62,63,61,58,57,68,65,69,69,65,49,47,65,67,48,49,65,83,84,38,87,88,96,91,113,130,87,97,91,114,99,100,161,115,153,153,115,137,161,176,115,97,114,91,116,61,176,51,58,102,176,103,102,70,35,82,166,106,81,40,44,56,69,169,41,46,45,173,39,38,41,107,104,43,109,51,102,45,44,40,103,104,107,109,102,103,175,80,98,119,120,134,119,121,120,121,119,122,127,126,125,127,128,124,95,125,126,128,146,124,129,126,123,129,95,126,92,117,89,119,132,133,134,120,135,119,118,136,61,136,137,136,118,138,61,119,136,139,134,150,118,140,138,118,139,142,139,118,134,134,118,119,121,135,120,145,124,144,145,123,124,123,126,124,127,124,126,143,125,94,147,129,145,148,144,124,124,146,148,145,149,147,135,150,134,119,133,122,104,151,43,95,94,125,153,154,155,62,119,61,101,156,157,101,157,44,128,127,131,129,123,145,149,158,147,128,131,146,148,146,159,56,44,157,142,140,118,142,127,140,125,143,140,56,157,160,101,43,151,140,127,125,142,152,131,142,131,127,117,92,130,147,89,117,117,129,147,129,117,130,93,114,100,100,56,163,119,62,132,62,111,132,39,41,167,39,167,165,167,41,169,49,168,169,166,170,82,105,70,82,172,48,171,48,172,168,171,48,112,165,35,37,170,80,79,166,80,170,165,106,166,167,45,106,169,42,173,168,108,42,172,109,108,76,109,172,174,110,76,177,178,179,151,180,181,160,182,183,154,141,179,157,156,185,189,155,184,163,183,188,160,157,185,156,151,181,162,186,190,151,176,187,164,188,186,176,161,189,177,190,191,177,191,178,161,153,189,180,187,193,180,193,194,188,195,192,184,196,202,191,190,199,182,197,198,183,198,195,178,199,184,181,180,194,187,189,200,182,185,201,185,181,201,114,93,113,99,114,97,97,81,99,91,114,113,115,61,137,176,61,115,194,196,201,199,196,184,200,196,193,197,196,198,193,196,194,192,196,199,195,196,192,198,196,195,202,196,200,201,196,197,100,164,93,93,164,162,94,162,177,143,177,141,140,136,138,136,140,137,153,137,154,56,81,40,110,52,50,137,141,154,153,155,189,56,160,163,101,151,156,158,89,147,129,130,95,130,113,95,100,163,164,165,166,35,167,169,173,168,49,48,166,82,35,105,82,175,171,112,174,79,175,82,170,79,82,167,106,165,173,45,167,168,42,169,172,108,168,76,172,171,174,76,171,104,176,151,177,179,141,160,183,163,154,179,155,189,184,202,163,188,164,160,185,182,156,181,185,151,187,180,164,186,162,162,190,177,176,189,187,186,192,190,188,192,186,190,192,199,182,198,183,191,199,178,183,195,188,178,184,179,181,194,201,179,184,155,187,200,193,189,202,200,182,201,197,93,162,94,94,177,143,143,141,140,140,141,137,205,203,207,204,203,205,205,206,204,210,209,208,212,211,213};
+static const uint8_t rc68[] = {55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,0,0,0,55,55,55,55,0,55,55,55,55,55,0,0,0,0,0,0,0,0,0,0,0,0,55,55,0,0,0,0,0,0,0,55,55,55,55,55,0,0,55,55,55,55,55,55,55,55,55,55,55,55,55,0,55,55,0,55,0,55,55,55,55,0,0,55,55,0,0,0,55,55,55,0,55,55,0,0,0,0,0,55,55,55,55,55,55,55,55,55,55,55,0,55,55,0,55,0,55,55,55,55,55,55,0,0,0,0,0,0,0,0,0,55,0,0,0,55,0,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,0,55,55,55,55,0,0,0,0,0,55,0,0,0,55,55,0,0,0,55,55,55,55,55,55,55,55,0,0,0,0,0,0,0,0,0,0,55,0,0,0,0,0,0,0,0,0,55,55,0,55,55,55,55,55,0,55,0,55,0,0,55,55,55,0,55,0,55,55,0,55,55,55,55,55,55,55,55,55,55,55,0,55,55,55,0,0,55,55,55,0,0,0,0,0,0,55,55,55,0,55,55,55,55,55,55,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,0,55,0,55,0,55,55,55,0,0,55,0,0,0,55,0,55,0,55,0,55,55,55,0,0,0,0,0,57,0,0,0};
+static const int8_t rn68[] = {-26,83,92,-2,3,-127,0,-127,-3,0,-127,-3,-127,0,-3,127,0,-4,127,0,-4,-6,85,-94,4,-85,-95,-78,-99,-12,81,-97,12,2,126,12,1,126,12,79,99,-6,-82,97,6,4,95,-84,4,95,-84,1,-3,127,1,-3,127,0,127,3,-91,-47,76,-83,-78,55,-126,13,-10,127,-3,3,127,-3,3,-1,-95,84,-2,-126,-12,-1,-126,-12,-19,-79,-98,-19,-79,-98,66,-87,64,27,94,-81,-64,96,-53,-122,35,0,122,-34,1,-27,-94,80,-96,-73,40,96,73,-40,75,56,86,68,30,103,-80,35,-92,-64,-54,-96,19,-60,110,7,30,123,-58,7,113,-48,-94,-70,80,-95,-27,7,-118,-47,65,-103,-36,-5,7,127,65,-100,-43,7,-97,81,19,-94,84,70,-77,72,69,-89,59,9,-29,123,-10,-7,126,-6,-7,127,-11,49,117,60,-9,112,-15,13,125,11,6,126,-27,5,124,-36,-1,122,13,-12,126,-39,21,119,-30,10,123,-3,-125,-22,20,-91,-87,75,-44,92,-30,-62,107,10,39,121,6,29,123,6,29,123,-15,25,124,18,8,125,-26,-106,65,-88,-90,-18,-29,-20,122,-13,-95,83,-80,-45,88,24,-55,112,13,-42,119,-39,-111,48,-11,-107,67,-44,-112,-41,-92,-87,15,-110,-64,4,-90,-64,-63,23,-121,-31,6,-118,-45,12,-75,-102,18,-74,-102,107,-45,-51,5,-16,-126,-44,-116,27,59,-19,111,-5,-105,-71,-27,-98,-77,-30,-89,86,-42,-104,-59,-24,-56,111,-30,-102,-70,-36,-109,-55,54,-97,-61,-9,-101,-76,75,-46,92,-21,45,117,67,-100,-40,-5,-124,-29,-19,-26,123,5,43,119,-10,21,125,-19,-126,1,66,-99,-43,-16,-126,2,12,40,120,-12,-114,56,19,-113,55,-23,40,118,-39,8,120,11,5,126,-27,11,124,14,26,123,-24,-103,70,-11,-21,125,-55,-114,-2,-117,-21,45,117,0,-49,99,9,79,102,16,-74,-74,-103,1,108,-65,-17,-8,-120,-40,31,-9,-123,100,-67,39,-32,-85,-88,20,-67,-106,-43,-43,112,83,-92,-28,30,-18,122,-40,-67,-100,-24,-101,-73,-75,-75,-69,43,-55,-106,22,-94,-83,-23,-124,14,-19,-4,125,1,-8,127,28,-31,120,15,5,126,13,22,124,4,-5,127,20,5,125,26,-51,113,-17,1,126,-16,-15,125,25,-16,123,-3,14,126,-11,-18,125,55,-36,109,-37,-32,117,34,-55,109,0,-8,127,42,-38,114,-6,-3,127,3,-3,127,-2,-1,127,3,-4,127,7,-26,124,-13,-4,126,6,-3,127,12,7,126,41,-41,113,-14,-34,122,-1,-4,127,-1,-3,127,-8,-31,123,-4,8,127,31,-36,118,4,32,-123,18,-34,121,100,71,33,50,-55,103,-5,95,-84,-3,94,-86,-18,-2,126,-12,-31,123,-1,-20,125,8,-21,125,-12,6,126,-89,60,-68,-5,-2,127,-1,-2,127,-15,-54,114,-94,31,-80,-2,30,-123,3,2,127,0,-127,0,1,-4,127,-24,-25,122,41,-77,93,12,-95,83,-27,-68,104,-63,-54,96,-125,-21,6,-22,-92,85,-19,-125,14,0,-97,82,3,-58,113,-15,-99,78,-67,-99,44,81,-97,-15,44,-88,80,19,-125,16,26,-123,14,-25,-87,89,-16,-90,88,94,-84,-14,-91,10,-88,-12,-62,-110,-45,-71,-95,-34,-84,-88,42,-14,-119,74,-49,-91,-81,-46,-86,4,-70,-106,-13,-42,119,-2,110,-63,-90,89,0,37,-14,121,-5,50,-117,103,-74,-9,-106,68,20,-98,71,-40,66,77,-77,-12,-58,112,0,84,-95,-97,2,82,85,66,-67,-38,-33,116,-7,-39,121,98,75,-32,58,34,-108,63,33,-105,-30,-116,43,49,-99,-63,-34,-104,65,-78,17,-98,-77,-81,60,11,-111,61,-23,77,-98,117,-22,-44,-20,85,-92,-2,88,-91,-8,-102,76,-87,-80,46,-119,-43,-7,-15,-101,75,59,-107,36,-51,-74,90,-2,22,-125,23,-124,-17,49,-75,-90,-38,-59,-106,29,-18,-122,-29,-122,-21,-7,-127,5,-37,-113,-44,44,-111,-44,-10,14,-126,-120,12,40,-69,-17,105,-11,-16,125,-26,-12,124,12,28,123,8,9,126,107,44,53,-12,-53,-115,90,-81,39,39,-46,112,105,71,-14,-105,-6,-72,65,84,-70,100,-78,9,-66,-107,18,-85,-48,82,-126,-17,3,7,-118,46,-16,-96,81,76,-74,69,82,-97,-12,52,-114,-17,-22,-76,99,-43,-28,-116,94,-84,-16,-43,-79,-90,73,-62,-83,52,-81,-83,42,-14,-119,-83,-53,-80,4,-70,-106,44,28,-116,-14,-45,118,-87,91,-16,30,-14,123,108,-63,-24,-108,67,-5,-38,105,-61,6,39,-121,59,108,-30,-72,-12,104,-4,-56,114,87,81,-45,-3,-109,66,11,-107,68,-23,-104,69,-125,23,-6,-4,-108,67,-106,-67,-19,25,-106,66,-1,88,-92,18,-107,67,82,-3,-97,91,-89,3,-26,59,-109,-49,-12,117,4,-6,127,-18,-5,126,-18,-5,126,26,-124,0,26,-124,0,26,-124,0,26,-124,0,33,-122,-11};
static const int16_t rv69[] = {-21151,-21355,-17091,-25789,13380,-16195,-7543,-3492,-31165,17060,0,-27603,5013,-15428,-26248,2552,23543,-21650,-32702,-9555,713,31927,-10374,0,22140,-16086,-16914,20982,26750,776,-21036,22734,5384,-8889,27358,-17779,-11613,-30969,13071,5226,32160,2960,-5068,-8092,32767,13351,9700,26702,27538,0,17020,-16739,0,27084,-6263,17234,23588,12225,-26330,15531,19039,-26205,0,6883,-29730,-11578};
static const uint16_t rt69[] = {0,1,2,2,3,4,2,5,3,0,6,1,3,7,8,5,9,3,1,10,11,0,12,6,3,9,7,5,13,9,9,15,16,6,17,10,17,14,18,17,18,10,18,14,15,18,15,13,13,15,9,15,14,19,15,19,16,19,14,12,14,17,12,12,17,6,9,16,7,7,16,19,20,19,21,21,19,12,10,18,13,10,13,11,11,13,5,7,19,20,7,20,8,8,20,21,21,12,0,6,10,1,2,1,11,2,11,5,3,8,4,4,8,21,4,21,0,4,0,2};
static const uint8_t rc69[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
@@ -701,8 +701,8 @@ const RMesh rmeshes[] = {
{rv64, rt64, rc64, rn64, 14, 24, 3.28262e-05f, {-0.0419697f,0.306757f,-0.0632945f}, 0.82171f}, /* snowman_head */
{rv65, rt65, rc65, rn65, 32, 60, 3.11782e-05f, {-0.00611544f,0.012353f,-0.065402f}, 1.14805f}, /* snowman_body */
{rv66, rt66, rc66, rn66, 14, 24, 3.05258e-05f, {0.00385737f,0.06378f,-0.0466896f}, 1.11845f}, /* snowman_body */
- {rv67, rt67, rc67, rn67, 32, 40, 0.000312937f, {-4.96206f,0.0410268f,2.44606f}, 7.54671f}, /* Ground_WW_RV1_snowball */
- {rv68, rt68, rc68, rn68, 18, 20, 0.000312937f, {-5.00514f,0.0410268f,2.20819f}, 7.44978f}, /* Ground_WW_RV1_snowball */
+ {rv67, rt67, rc67, rn67, 446, 754, 0.000312937f, {-4.96206f,0.216766f,2.46727f}, 7.67211f}, /* Ground_WW_RV1_snowball */
+ {rv68, rt68, rc68, rn68, 214, 335, 0.000312937f, {-4.96206f,0.216766f,2.46727f}, 7.67211f}, /* Ground_WW_RV1_snowball */
{rv69, rt69, rc69, rn69, 22, 40, 3.16981e-05f, {-0.0122738f,0.0188791f,0.0253843f}, 1.13092f}, /* snowballBig */
{rv70, rt70, rc70, rn70, 12, 20, 3.16981e-05f, {-0.0122738f,-0.0572278f,0.0253843f}, 1.13053f}, /* snowballBig */
{rv71, rt71, rc71, rn71, 199, 350, 2.05119e-05f, {1.49012e-07f,0.301068f,0.103928f}, 0.671481f}, /* sleds_classy_d2 */
@@ -811,8 +811,8 @@ static const int16_t cv7[] = {32767,1075,-2304,25537,-3851,12547,15902,-17316,89
static const uint16_t ct7[] = {0,1,2,3,4,5,6,7,8,6,8,9,10,2,8,0,3,11,4,12,13,4,13,5,14,7,6,0,2,10,6,4,14,3,5,11,4,6,15,4,15,12,10,8,7,0,11,1,10,16,17,10,17,0,14,18,19,14,19,7,4,20,18,4,18,14,7,19,16,7,16,10,0,17,21,0,21,3,3,21,20,3,20,4,6,9,22,6,22,15,9,8,22};
static const int16_t cv8[] = {5613,3927,30670,8777,1681,29867,11142,2198,27658,9482,3464,28084,15078,-23849,20320,13958,-20847,22761,9285,-25294,22391,10210,-28459,20189,16563,659,24230,16270,-750,24408,20147,-4599,22403,21721,-3941,21357,-494,-5732,32767,411,-8737,31277,7301,-10318,28622,5142,-4352,30494,9795,-2808,29044,7358,-547,30257,21178,-11309,23539,25121,-14944,21602,19735,-16872,23606,23002,-19638,23313,-5827,-7402,31892,-4128,-11474,30486,-11452,-9659,30158,-9705,-14602,28334,-11867,-14490,27696,1785,-27870,22004,2625,-20115,25289,-4361,-27388,22007,-5532,-21524,25124,-8516,-23260,23880,16822,-9730,25514,2047,-14424,28075,14732,-1859,25377};
static const uint16_t ct8[] = {0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,15,14,16,15,16,17,11,10,18,11,18,19,19,18,20,19,20,21,22,23,13,22,13,12,24,25,23,24,23,22,24,26,25,3,2,9,3,9,8,21,20,5,21,5,4,27,28,29,17,16,1,17,1,0,7,6,28,7,28,27,25,30,23,25,26,31,28,30,29,30,28,23,28,6,5,28,5,14,20,32,5,14,13,33,34,1,16,1,34,2,2,34,9,34,32,18,25,31,30,30,31,29,20,18,32,34,10,9,10,34,18,13,23,33,14,32,16,34,16,32,32,14,5,33,28,14,28,33,23};
-static const int16_t cv9[] = {-7873,13002,9119,-4762,12743,7706,-5408,15158,4262,-12619,18883,2968,-2143,13095,7212,-3609,11926,12161,497,12210,13145,-5798,10975,17948,-15965,7367,7635,-11360,10036,11314,-15870,13395,5712,-11751,7846,12114,-9523,7128,17481,-11289,5790,12527,-9321,-11812,10328,-8811,-14656,6903,-6612,-17084,13523,-14252,-5104,6970,-8341,-8187,19751,12610,5970,9445,8764,12883,9335,8800,9734,14686,-9935,11480,10201,-8727,10275,16143,15938,-15531,14488,17577,-15483,17349,11718,-18076,14330,17780,-11546,12067,15556,-1916,13639,16447,-2639,15970,-2713,-19486,11610,-3216,-20845,15779,-5961,-17900,15582,2907,-20450,10175,643,-21406,15505,17149,-6031,11202,15888,-9722,8148,19239,-11798,15652,7773,-21336,14109,6810,-19968,8879,11028,-17196,7311,3857,14509,7498,6196,12839,11694,6887,15226,7238,4735,12956,13606,-9788,1657,22052,-10756,156,27211,-10831,3342,26755,-9625,-1916,23699,-5615,11167,26026,-129,15113,25187,-2168,12788,20736,-6351,14265,30738,5657,9495,26004,5113,4360,26289,4928,5626,24005,6296,7267,28776,-9256,8174,24864,-8015,9577,23578,-10470,9991,31037,4835,1591,27026,4440,31,25357,6234,4478,27998,3241,-2325,27291,4979,811,27958,-8304,-4569,24058,-6826,-3143,25988,-5395,-3867,27765,-9032,-2833,26720,-3696,-4005,26992,-5580,-4167,25292,-10124,4552,23580,-9357,6605,23658,-9013,8455,18702,-10620,6424,29287,-2058,-4696,26115,247,-5794,26930,-670,-5672,29361,2119,-3855,25803,8739,14845,4723,6568,17358,3404,3524,10435,20187,6858,7381,20671,4542,11283,26185,6259,11216,29812,-1711,20142,1408,-373,17954,3213,4301,21180,-546,681,13474,6970,3947,12220,26341,1566,12192,22956,3448,13139,30196,14683,3387,-450,15938,-1147,2884,16448,-4431,-472,14550,3639,3520,13074,10126,1518,12084,-16817,-47,14723,-13024,-200,13950,-13527,4201,16835,-9180,-446,15960,-9637,2693,-16189,-10249,2149,-18137,-3719,3522,-17430,-4085,-87,-20659,1652,1481,-20649,2093,-355,-17549,18591,-459,-13016,19300,-479,-15667,18244,3036,9563,15928,-494,-20456,8337,1575,-20537,7918,-443,-19947,15529,1775,-19313,14391,-463,-6751,18299,-507,3458,12762,15593,7288,-20447,-285,16247,-3942,7715,-6607,-17399,1614,1960,-20575,-421,12881,-13373,8346,-11647,-12,12120,-12226,13516,6031,-12476,-13807,1165,11969,1138,18525,-8754,-6858,22741,-9575,-2896,21105,7182,3089,21267,-9291,4327,17207,11403,-18319,12692,6395,9082,29587,4039,3020,23082,3494,-3430,28564,-290,16039,27133,-548,15383,31190,3850,13384,31679,6707,11397,31311,5522,10805,32767,5709,8667,31726,6354,9038,30672,6403,1334,29256,6027,1571,30921,4716,-5138,29918,-7113,16014,31965,6145,6851,30907,6418,7313,29582,14827,101,9190,7369,4765,28809,6631,4852,30091,5505,7471,32113,5585,5066,31857,-6366,-18284,16919,-9375,-10273,20573,-5920,-4719,28758,-10248,-3985,28269};
-static const uint16_t ct9[] = {0,1,2,2,3,0,4,1,5,4,5,6,5,0,7,8,9,10,9,11,12,11,8,13,14,15,16,15,14,17,18,14,16,19,20,21,0,22,23,24,25,26,25,24,27,28,19,29,30,31,32,30,33,34,35,27,36,35,29,37,29,35,28,38,39,40,39,38,33,41,42,43,42,41,44,45,46,47,46,45,48,49,50,51,50,49,52,53,54,55,54,53,56,57,58,23,58,49,7,49,58,59,59,58,57,54,60,61,60,54,62,63,60,64,60,63,61,65,66,48,66,67,68,67,66,69,66,65,70,71,72,12,72,57,73,57,72,74,74,72,71,75,76,69,77,76,63,76,75,78,79,80,43,81,53,82,53,83,84,85,86,87,86,88,41,89,81,90,89,91,84,91,89,90,92,93,94,95,92,96,97,98,99,98,100,101,102,103,104,103,105,106,107,3,108,3,107,109,96,110,79,110,80,79,105,111,112,111,113,114,85,115,3,6,88,4,6,116,41,80,87,41,39,117,40,117,39,33,93,36,101,36,118,35,30,119,120,119,30,15,93,95,19,40,121,24,103,8,105,8,103,122,3,109,123,79,20,19,15,124,119,15,17,102,8,10,113,3,2,85,2,86,85,81,44,116,21,42,81,125,21,82,12,73,9,126,65,127,128,125,82,6,5,51,116,6,90,122,45,129,45,122,18,14,18,17,18,16,32,19,21,125,9,123,10,0,23,7,22,9,23,122,13,8,122,17,18,27,24,36,24,130,40,24,26,130,25,27,37,19,125,29,30,32,16,30,34,31,35,37,27,38,40,130,33,38,34,38,130,26,41,116,44,89,83,81,45,127,48,45,71,129,45,47,71,46,48,68,50,90,51,90,50,91,49,51,7,53,131,56,53,55,82,57,23,73,58,7,23,49,59,52,54,61,132,60,62,64,54,56,62,54,132,55,63,78,61,63,64,133,65,48,127,66,68,48,67,69,77,66,70,69,71,12,129,72,73,12,57,74,59,74,71,47,75,69,70,76,77,69,77,63,133,76,78,63,79,43,20,53,84,131,88,86,4,86,41,87,134,135,136,137,138,139,137,139,140,141,142,143,136,138,137,144,135,134,140,139,145,140,145,146,117,97,40,93,100,94,100,93,101,92,95,93,97,99,40,98,101,99,103,106,104,113,107,114,107,113,109,105,112,106,111,114,112,115,108,3,6,41,88,42,20,43,20,42,21,80,41,43,117,33,120,118,147,28,118,28,35,30,120,33,30,16,15,147,19,28,95,96,19,36,99,101,121,36,24,17,103,102,103,17,122,10,109,113,3,123,0,109,10,123,79,19,96,15,102,124,8,111,105,8,113,111,2,4,86,44,81,42,81,116,90,82,21,81,126,127,18,126,70,65,132,128,55,73,23,9,128,82,55,5,7,51,6,51,90,45,18,127,148,149,142,148,142,141,146,145,149,146,149,148,138,150,139,150,151,145,151,149,145,151,142,149,150,145,139,84,83,89,81,83,53,99,36,121,99,121,40,93,147,118,93,118,36,93,19,147,31,152,32,32,152,153,32,153,18,18,153,126,56,146,148,56,148,62,62,148,141,62,141,64,77,154,67,59,144,52,68,155,46,67,154,155,67,155,68,131,140,146,131,146,56,52,144,134,52,134,50,133,143,77,91,136,137,91,137,84,64,141,143,64,143,133,84,137,140,84,140,131,50,134,136,50,136,91,2,1,4,5,1,0,123,22,0,123,9,22,12,11,13,12,13,129,8,11,9,129,13,122};
+static const int16_t cv9[] = {-7674,12673,8889,-4642,12421,7511,-5271,14775,4155,-12300,18406,2893,-2089,12764,7030,-3518,11625,11854,484,11901,12813,-5652,10697,17494,-15562,7181,7442,-11073,9783,11028,-15469,13057,5568,-11454,7648,11808,-9282,6948,17039,-11004,5643,12210,-9086,-11513,10067,-8589,-14286,6729,-6445,-16652,13182,-13892,-4975,6794,-8131,-7980,19252,12292,5819,9206,8542,12558,9099,8577,9488,14315,-9684,11190,9943,-8506,10016,15736,15535,-15139,14122,17133,-15092,16911,11422,-17619,13968,17331,-11255,11762,15163,-1868,13294,16032,-2572,15567,-2644,-18993,11317,-3135,-20318,15381,-5810,-17448,15188,2834,-19934,9918,626,-20865,15113,16716,-5879,10919,15486,-9476,7942,18753,-11500,15257,7577,-20797,13752,6638,-19463,8654,10749,-16761,7126,3759,14142,7309,6040,12515,11399,6713,14841,7055,4615,12629,13262,-9541,1616,21495,-10484,152,26524,-10557,3257,26079,-9382,-1867,23100,-5473,10885,25368,-126,14732,24551,-2113,12465,20212,-6191,13904,29961,5515,9255,25347,4984,4250,25625,4804,5484,23399,6137,7083,28049,-9022,7968,24236,-7812,9335,22983,-10206,9738,30253,4713,1551,26343,4328,30,24717,6076,4365,27291,3159,-2266,26601,4853,791,27252,-8094,-4453,23450,-6653,-3064,25331,-5259,-3769,27064,-8804,-2761,26045,-3602,-3904,26311,-5439,-4062,24654,-9868,4437,22984,-9121,6438,23061,-8785,8241,18229,-10352,6261,28547,-2006,-4577,25455,241,-5648,26250,-653,-5529,28620,2066,-3758,25152,8518,14470,4604,6402,16919,3318,3435,10171,19677,6685,7194,20149,4427,10998,25524,6101,10933,29059,-1668,19633,1372,-363,17500,3132,4192,20645,-533,663,13134,6794,3847,11911,25676,1526,11884,22376,3361,12807,29433,14312,3301,-438,15535,-1118,2811,16032,-4319,-460,-6440,-16960,1573,-2312,-18283,-431,1911,-20055,-411,-6961,-16398,-468,14182,3547,3432,12743,9870,1480,11779,-16392,-45,14351,-12695,-195,13598,-13185,4095,16410,-8948,-435,15557,-9394,2625,-15780,-9990,2095,-17679,-3625,3433,-16990,-3982,-84,-20137,1610,1444,-20127,2040,-346,-17106,18121,-448,-12687,18812,-467,-15271,17783,2959,9321,15525,-482,12375,9917,-444,-12161,-13458,1136,-11452,-13275,-451,-15319,-9752,-322,-19940,8126,1535,-20018,7718,-432,-19443,15136,1730,-18825,14028,-452,-6580,17837,-494,3371,12440,15199,6512,18659,-488,7103,-19930,-278,15836,-3843,7520,12556,-13035,8135,-11353,-12,11814,-11917,13174,5878,11666,1109,18057,-4392,-5324,23820,-488,-3822,24392,3720,-3023,22654,-8533,-6685,22167,-9333,-2823,20572,5338,43,21857,7000,3011,20730,-9056,4218,16773,11115,-17856,12371,6233,8853,28840,3937,2944,22499,3406,-3344,27843,187,21353,-570,-282,15634,26448,-535,14995,30402,3467,12453,32476,3753,13046,30878,-10802,3247,26735,-10112,3196,27449,-9608,6679,31680,-10269,6743,30047,6538,11109,30520,5382,10532,31939,5565,8448,30925,6194,8810,29897,6241,1301,28517,5875,1531,30140,4868,-3967,30928,4597,-5008,29162,-504,-4689,31098,-441,-6498,29591,-6934,15610,31158,-6390,15688,32767,-11129,-108,27799,-10004,175,30455,5990,6678,30126,6256,7129,28835,-5770,-4600,28031,-5676,-3959,28813,-8867,-2969,30631,-9989,-3885,27554,14453,99,8958,-6205,-17822,16492,-6450,-17617,18086,-8988,-10974,20976,-9139,-10014,20053,-3303,-20743,16668,-9938,10817,31310,-9411,11344,32189,7183,4645,28081,6464,4730,29331,-8258,4596,31605,5355,8793,31772,5366,7282,31302,-5087,-2978,31193,5444,4938,31052,4811,339,31511,-8660,1868,31148,-997,14327,32497,-8673,-7316,22841,7733,-21554,15291,1352,-21108,16665,5573,-414,22916,4251,2974,23229,17421,-14873,17657,11420,-18063,15390,7182,2623,21270,12544,499,18351,-4413,-5606,24154,-374,-4341,24817,19026,-11318,16361,16451,-2985,16175,3894,-3296,23095};
+static const uint16_t ct9[] = {0,1,2,2,3,0,4,1,5,4,5,6,5,0,7,8,9,10,9,11,12,11,8,13,14,15,16,15,14,17,18,14,16,19,20,21,0,22,23,24,25,26,25,24,27,28,19,29,30,31,32,30,33,34,35,27,36,35,29,37,29,35,28,38,39,40,39,38,33,41,42,43,42,41,44,45,46,47,46,45,48,49,50,51,50,49,52,53,54,55,54,53,56,57,58,23,58,49,7,49,58,59,59,58,57,54,60,61,60,54,62,63,60,64,60,63,61,65,66,48,66,67,68,67,66,69,66,65,70,71,72,12,72,57,73,57,72,74,74,72,71,75,76,69,77,76,63,76,75,78,79,80,43,81,53,82,53,83,84,85,86,87,86,88,41,89,81,90,89,91,84,91,89,90,92,93,94,95,96,97,96,95,98,99,92,100,101,102,103,102,104,105,106,107,108,107,109,110,111,3,112,3,111,113,114,100,115,100,114,79,114,80,79,116,117,98,116,106,118,109,119,120,119,121,122,85,123,3,6,88,4,6,124,41,87,80,125,80,87,41,39,126,40,126,39,33,93,36,105,36,127,35,30,95,97,95,30,15,93,99,19,40,128,24,107,8,109,8,107,129,3,113,130,79,20,19,15,116,95,15,17,106,8,10,121,3,2,85,2,86,85,81,44,124,21,42,81,131,21,82,132,133,75,133,134,78,12,73,9,135,65,136,135,132,70,134,61,78,61,134,137,138,131,82,6,5,51,124,6,90,129,45,139,45,129,18,14,18,17,18,16,32,19,21,131,9,130,10,0,23,7,22,9,23,129,13,8,129,17,18,27,24,36,24,140,40,24,26,140,25,27,37,19,131,29,30,32,16,30,34,31,35,37,27,38,40,140,33,38,34,38,140,26,41,124,44,89,83,81,45,136,48,45,71,139,45,47,71,46,48,68,50,90,51,90,50,91,49,51,7,53,141,56,53,55,82,57,23,73,58,7,23,49,59,52,54,61,142,60,62,64,54,56,62,54,142,55,63,78,61,63,64,143,65,48,136,66,68,48,67,69,77,66,70,69,71,12,139,72,73,12,57,74,59,74,71,47,75,69,70,76,77,69,77,63,143,76,78,63,79,43,20,53,84,141,88,86,4,85,87,144,86,41,87,145,146,147,145,147,148,149,150,151,149,151,152,153,154,155,153,155,156,157,158,159,157,159,160,148,147,154,148,154,153,160,159,161,160,161,162,163,164,146,163,146,145,165,166,150,165,150,149,156,155,167,156,167,168,169,170,171,169,171,172,172,171,166,172,166,165,126,101,40,93,104,94,104,93,105,92,99,93,100,92,115,101,103,40,102,105,103,106,108,118,107,110,108,121,111,122,111,121,113,80,114,125,116,98,95,116,118,117,109,120,110,119,122,120,123,112,3,123,85,144,6,41,88,42,20,43,20,42,21,80,41,43,126,33,97,127,173,28,127,28,35,30,97,33,30,16,15,173,19,28,99,100,19,36,103,105,128,36,24,17,107,106,107,17,129,10,113,121,3,130,0,113,10,130,79,19,100,15,106,116,8,119,109,8,121,119,2,4,86,44,81,42,81,124,90,82,21,81,132,75,70,133,78,75,135,136,18,135,70,65,174,175,176,174,176,177,178,175,174,142,61,137,142,138,55,73,23,9,138,82,55,5,7,51,6,51,90,45,18,136,179,180,164,179,164,163,162,161,170,162,170,169,181,182,158,181,158,157,168,167,182,168,182,181,152,151,180,152,180,179,183,151,150,184,185,155,184,155,154,186,170,161,187,188,158,185,187,167,166,189,150,183,150,189,164,190,146,170,186,171,188,159,158,187,182,167,187,158,182,185,167,155,190,147,146,177,176,191,84,83,89,81,83,53,103,36,128,103,128,40,93,173,127,93,127,36,93,19,173,38,192,193,38,193,34,137,194,195,137,195,142,34,193,178,34,178,31,25,196,197,25,197,26,31,178,174,31,174,32,32,174,177,32,177,18,138,198,199,138,199,131,18,177,191,18,191,135,135,191,200,135,200,132,132,200,201,132,201,133,37,202,196,37,196,25,29,203,202,29,202,37,134,204,194,134,194,137,133,201,204,133,204,134,131,199,203,131,203,29,26,197,192,26,192,38,142,195,198,142,198,138,74,152,179,74,179,59,56,168,181,56,181,62,62,181,157,62,157,64,77,162,169,77,169,67,59,179,163,59,163,52,68,172,165,68,165,46,67,169,172,67,172,68,141,156,168,141,168,56,46,165,149,46,149,47,52,163,145,52,145,50,143,160,162,143,162,77,91,148,153,91,153,84,64,157,160,64,160,143,84,153,156,84,156,141,47,149,152,47,152,74,50,145,148,50,148,91,2,1,4,5,1,0,130,22,0,130,9,22,12,11,13,12,13,139,8,11,9,139,13,129};
static const int16_t cv10[] = {-5122,-149,31828,-926,-1411,31803,-2656,1340,32090,232,1770,32354,4031,6808,31734,3050,8945,32033,1909,6617,31977,5355,8793,31772,-7899,-459,31438,-10004,175,30455,-8867,-2969,30631,-8660,1868,31148,-9608,6679,31680,-8258,4596,31605,-7763,8834,32289,-5902,2487,32034,-5375,6052,32248,-9411,11344,32189,-6402,12938,32397,-997,14327,32497,-6390,15688,32767,-2988,9917,32298,5366,7282,31302,-5087,-2978,31193,2495,-2459,31573,2419,-88,31860,-504,-4689,31098,4811,339,31511,4868,-3967,30928,5444,4938,31052,2736,3679,31824,4091,10672,32099,1651,11523,32317,524,8577,32166,5382,10532,31939,3467,12453,32476,-7271,879,31668,-1252,5066,32508};
static const uint16_t ct10[] = {0,1,2,1,3,2,4,5,6,7,5,4,8,9,10,9,8,11,12,13,14,13,15,16,15,13,11,17,14,18,18,19,20,17,18,20,21,19,18,14,21,18,22,7,4,0,23,1,1,24,25,26,24,1,24,27,25,27,24,28,27,29,30,29,22,4,29,4,30,5,31,32,5,32,33,31,7,34,7,31,5,19,32,35,32,19,21,8,0,36,16,15,37,37,6,33,33,21,37,21,33,32,30,3,25,6,30,4,21,16,37,3,1,25,5,33,6,8,10,23,8,23,0,8,36,11,12,14,17,13,16,14,15,11,36,21,14,16,23,26,1,24,26,28,27,30,25,31,35,32,35,31,34,0,15,36,37,2,3,37,15,2,0,2,15,6,37,30,30,37,3};
static const int16_t cv11[] = {-15940,-14106,-143,-16578,-15977,130,-14704,-15978,-190,-17175,-12234,-97,-12910,-14000,-23,-12656,-12441,83,-14168,-12023,-134,-13577,-8212,-52,-29662,-7027,-128,-26981,-4806,-17,-31520,-6343,382,-28254,-11428,-417,-27444,-8399,-231,-32515,-9686,-264,-32767,-12740,-352,-11652,-15978,87,-12417,-10852,182,-11212,-13621,443,-11231,-10872,237,-15086,-9678,477,-11457,-8562,35,-9573,-13034,444,-30034,-169,1236,-31723,-935,1384,-28411,-1747,423,-812,-12740,-352,-3241,-15978,-432,0,-15978,-115,-9265,-15978,188,-7533,-15978,125,-1259,-1609,1074,-2113,-3198,906,699,-4783,787,232,-935,1384,-4923,-11225,-348,-560,-9686,-264,-4997,-4601,617,-5292,-6610,-225,-2449,-6399,213,-20704,-15978,-58,-17377,-15978,118,-20481,-14047,-97,-22374,-15978,-133,-31257,-4783,787,-29283,-15978,208,-25184,-14254,-24,-31955,-15978,-115,435,-6343,382,-9073,-5539,-170,-9163,-8270,-79,-7650,-10092,-137};
@@ -821,20 +821,20 @@ static const int16_t cv12[] = {-17963,-10223,2815,-19058,-9960,4269,-18535,-1163
static const uint16_t ct12[] = {0,1,2,0,3,4,5,6,7,8,9,5,10,11,12,13,14,15,13,16,17,18,19,20,20,21,18,22,14,23,24,25,26,27,28,24,29,9,27,30,31,32,31,14,32,31,15,14,30,33,31,34,35,10,36,9,37,38,16,39,40,41,42,43,44,45,46,47,48,49,48,47,50,3,51,50,33,3,52,6,53,14,20,32,54,55,53,56,57,41,54,30,32,47,58,59,46,58,47,31,60,15,49,47,59,10,61,62,62,48,34,13,17,23,56,38,63,30,4,33,54,32,55,42,64,65,13,15,16,23,17,66,6,67,54,1,54,67,36,1,67,68,69,70,42,41,64,4,3,33,54,4,30,34,48,71,72,35,73,74,72,73,74,73,75,25,28,72,76,26,25,77,16,38,3,2,51,33,78,31,31,78,60,79,80,78,77,38,56,71,81,82,71,82,83,77,17,16,56,63,57,84,57,63,23,14,13,23,68,70,29,85,86,29,86,37,60,78,80,75,73,87,34,87,73,36,67,6,50,79,78,88,89,90,34,73,35,91,8,7,27,92,28,76,74,75,75,87,93,75,93,94,76,95,26,96,35,72,10,35,96,10,96,11,23,66,68,24,85,29,24,28,25,29,27,24,27,9,8,97,28,92,98,97,92,88,82,89,60,80,99,77,66,17,51,2,100,4,1,0,25,74,76,25,72,74,92,8,91,96,97,98,96,72,97,29,37,9,87,71,83,34,71,87,71,48,49,81,71,49,36,5,9,19,53,55,4,54,1,95,86,85,86,95,101,72,28,97,24,26,85,62,34,10,49,59,81,50,78,33,70,21,22,22,23,70,22,21,20,53,6,54,53,19,52,85,26,95,58,102,103,32,20,55,22,20,14,19,55,20,8,5,7,2,3,0,36,6,5,27,8,92,37,1,36,101,95,104,86,100,37,2,1,100,87,83,105,93,105,94,87,105,93,75,106,76,76,106,107,75,94,106,95,107,104,76,107,95,37,100,1,108,101,104,108,51,100,86,108,100,86,101,108,6,52,7,77,109,66,42,109,77,110,64,41,38,39,111,112,41,57,113,112,57,113,57,84,39,15,60,39,60,45,111,44,114,84,63,114,84,114,115,110,116,65,117,116,110,77,40,42,41,112,110,15,39,16,63,38,111,39,45,111,45,60,99,45,44,111,45,99,43,63,111,114,114,118,115,114,44,119,114,119,118,64,110,65,62,61,48,48,61,46,46,102,58,44,43,120,44,120,119,99,121,120,99,120,43,80,122,121,80,121,99,80,79,123,80,123,122,123,79,50,123,50,124,51,125,124,51,124,50,108,126,125,108,125,51,108,104,127,108,127,126,104,107,128,104,128,127,129,128,107,129,107,106,94,130,129,94,129,106,94,105,90,94,90,130,88,90,105,88,105,83,83,82,88,70,69,21,109,42,65,56,41,40,56,40,77,10,12,61};
static const int16_t cv13[] = {-3420,-21168,23103,-6030,-24304,21422,-3262,-26888,20625,-10315,-20605,21023,-16853,-14857,19820,-7718,-28870,19697,4581,-32767,17660,-2018,-31926,17355,1240,-26100,20893,10015,-29202,19108,11456,-32073,19236,15438,-26420,19977,9181,-26850,19641,13190,-15299,22339,21504,-21365,20818,25450,-23880,20374,21015,-15348,21222,3614,-19767,22630,4858,-22128,22092,25931,-1890,20079,17288,-4308,23325,18022,-10371,23242,17540,1676,21716,14054,10126,19787,26803,-16558,19239,4520,-26790,19989};
static const uint16_t ct13[] = {0,1,2,3,4,5,6,2,7,2,8,0,6,8,2,9,10,11,12,11,13,14,15,16,13,17,18,17,0,18,19,20,21,20,19,22,22,19,23,19,16,24,1,5,2,2,5,7,15,24,16,15,14,11,13,16,21,19,21,16,16,11,14,16,13,11,25,6,12,8,25,18,6,25,8,18,25,12,12,9,11,8,18,0,18,12,13,3,5,1,3,1,0,6,9,12,6,10,9};
-static const int16_t cv14[] = {-10272,10471,26903,-8659,10233,20048,-10326,7767,21367,-4945,11157,22370,-7535,13594,13013,-11320,11521,13668,10466,-1144,21250,9832,5646,22938,9613,3202,29194,10117,3212,15533,631,14392,24746,-6309,14765,28454,-1124,12863,17841,-12252,-4681,25820,-12004,-3239,18571,-10759,-7758,19816,-11821,206,26982,8159,14943,10738,5220,16088,7423,6891,16830,11936,7903,14495,6885,7212,-20796,6921,7668,-21347,11348,3626,-21165,7318,11053,-18153,6451,17010,-962,11821,16779,-7048,9243,15394,-1784,9997,17552,-10972,10502,16696,-11573,8712,15441,-10716,6767,-1287,-20205,7108,2404,-22022,9649,-1435,-21358,9524,-5312,-19082,11324,12363,5538,9117,16714,-15745,12338,15183,-15747,10704,10631,-17823,11991,-9290,14000,8508,-12035,12445,7310,9411,12396,8508,8902,11193,11879,-11797,-9837,11898,-9377,-13977,9574,-6444,-17013,9677,-7894,-15716,6067,-14098,-10021,8571,-12060,4881,14428,-15461,4293,6955,-11812,1198,13423,-13377,8900,10556,-14881,10664,5678,-4647,14520,11226,-5746,13465,4626,-1078,14205,6718,9276,-4129,21549,9645,-5886,17957,11437,-1522,27661,6686,-9613,20650,10651,-5031,25739,-7965,-11433,16959,-5658,-9648,21223,-5115,-11766,23439,-10072,-9190,22727,-2136,-11142,20870,-3903,-13238,16476,-11350,1320,20727,-10724,4719,20260,-11874,7699,15945,-10459,4819,29711,1144,-12431,16153,1985,-11508,20065,1790,-12478,25521,6092,-10077,16121,8268,13110,4179,6811,14114,3448,5913,9671,16614,6896,5872,14868,7264,8848,23022,8595,10159,27927,-867,16960,1327,345,15322,2756,4788,17932,-515,1660,14611,6636,5902,10521,23342,3314,12198,20107,4823,12342,28273,14574,1161,-424,15757,-3112,2718,16238,-6207,-444,-5566,-18385,1403,-5999,-17886,-456,2591,-21455,-422,14461,1398,3312,13057,7513,1431,12124,-17882,-44,14612,-14307,-189,13882,-14775,3922,16603,-10684,-420,15774,-11109,2531,-14538,-11705,2019,-16643,-5798,3163,-15790,-5969,-137,-18941,-660,1279,-18834,-156,-396,-15806,15492,-433,-11166,15852,2835,-11534,16160,-451,-14056,15210,2898,9748,12982,-466,12701,7559,-429,-11025,-15045,1098,-14078,-11461,-311,-18702,5685,1395,-18687,5373,-455,-18070,12604,1672,-17468,11534,-437,-5628,15215,-480,1418,15651,11204,4826,16202,12596,7032,16012,-472,7603,-21303,-269,16134,-5610,6936,12694,-14394,7184,-14240,-4144,10450,9688,7168,12207,-7899,-13044,13677,-10771,-8466,16066,11450,1911,13766,17763,-1037,13035,17512,-1001,12449,10743,-18390,10313,18288,-11178,12221,9043,7029,27982,11402,-4198,15043,7152,-11376,24296,916,18617,-551,886,14839,26453,806,14949,29749,5238,12215,29496,11452,-5739,27804,11258,-5459,30690,8006,-11089,28471,7675,-11813,26006,1785,-12943,27984,1846,-12996,26199,-6389,15404,29300,14968,-1394,7863,-5435,-12306,24311,11903,-1510,29490,10511,-6815,32767,7675,-10627,32038,-5496,-19600,12291,-11744,-9935,12749,-10570,10626,29335,-10989,-9720,24484};
-static const uint16_t ct14[] = {0,1,2,3,1,0,1,3,4,2,1,5,6,7,8,7,6,9,10,3,11,3,10,12,13,14,15,14,13,16,17,18,19,18,17,20,21,22,23,22,21,24,25,26,27,26,25,28,26,29,30,31,23,32,31,32,33,31,33,34,27,35,25,36,37,29,37,36,38,39,40,5,35,41,42,43,44,45,46,44,47,44,46,45,48,49,50,51,49,48,49,51,52,53,39,4,54,53,55,39,53,54,6,56,57,56,6,58,59,56,60,56,59,57,61,62,15,62,63,64,63,62,65,62,61,66,67,68,48,68,2,69,2,68,70,70,68,67,71,72,65,73,72,59,72,71,74,75,76,20,77,7,78,7,79,80,81,82,83,82,84,18,85,77,86,85,87,80,87,85,86,88,89,90,91,92,93,94,88,95,96,97,98,97,99,100,101,102,103,102,104,105,106,107,108,107,106,109,110,95,111,95,110,75,110,76,75,112,101,113,104,114,115,114,116,117,81,118,107,119,84,55,119,120,18,83,76,121,76,83,18,21,122,24,122,21,23,89,30,100,30,123,26,31,91,93,91,31,46,89,94,35,24,124,37,102,49,104,49,102,125,107,109,40,75,41,35,46,112,91,46,47,101,49,52,116,107,54,81,54,82,81,54,107,39,77,19,120,126,42,78,48,69,51,127,61,128,129,126,78,126,130,131,126,131,25,119,53,12,120,119,86,125,14,50,14,125,43,42,17,77,55,53,119,44,43,47,43,45,34,35,42,126,51,40,52,39,5,4,40,51,5,125,50,49,125,47,43,29,37,30,37,132,24,37,38,132,36,29,28,35,126,25,31,34,45,26,28,29,22,24,132,23,22,32,22,132,38,18,120,19,85,79,77,14,128,15,14,67,50,14,16,67,13,15,64,10,86,12,86,10,87,131,130,133,3,12,4,7,134,8,7,9,78,2,5,69,1,4,5,3,0,11,6,57,135,56,58,60,6,8,58,6,135,9,59,74,57,59,60,136,61,15,128,62,64,15,63,65,73,62,66,65,67,48,50,68,69,48,2,70,0,70,67,16,71,65,66,72,73,65,73,59,136,72,74,59,75,20,41,7,80,134,84,82,55,81,83,137,82,18,83,138,139,140,141,142,143,141,143,144,144,143,145,144,145,146,147,139,138,122,96,24,89,99,90,99,89,100,88,94,89,95,88,111,96,98,24,97,100,98,30,98,100,101,103,113,102,105,103,116,106,117,106,116,109,76,110,121,112,92,91,104,115,105,114,117,115,118,108,107,118,81,137,119,18,84,17,41,20,41,17,42,76,18,20,122,23,93,123,148,27,123,27,26,31,93,23,31,45,46,148,35,27,94,95,35,124,30,37,47,102,101,102,47,125,52,109,116,107,40,39,109,52,40,75,35,95,46,101,112,49,114,104,49,116,114,54,55,82,19,77,17,77,120,86,78,42,77,127,128,43,127,66,61,135,129,9,69,5,51,129,78,9,53,4,12,119,12,86,14,43,128,146,145,149,150,142,141,151,152,143,152,145,143,151,143,142,80,79,85,77,79,7,98,30,124,98,124,24,89,148,123,89,123,30,89,35,148,33,153,34,34,153,154,34,154,43,43,154,127,28,133,36,25,131,133,25,133,28,70,155,0,8,150,58,58,150,141,58,141,60,73,146,149,73,149,63,0,155,147,0,147,11,64,156,13,63,149,156,63,156,64,11,147,138,11,138,10,136,144,146,136,146,73,87,140,80,60,141,144,60,144,136,10,138,140,10,140,87};
+static const int16_t cv14[] = {-10272,10471,26903,-8659,10233,20048,-10326,7767,21367,-4945,11157,22370,-7535,13594,13013,-11320,11521,13668,10466,-1144,21250,9832,5646,22938,9613,3202,29194,10117,3212,15533,631,14392,24746,-6309,14765,28454,-1124,12863,17841,-12252,-4681,25820,-12004,-3239,18571,-10759,-7758,19816,-11821,206,26982,8159,14943,10738,5220,16088,7423,6891,16830,11936,7903,14495,6885,7212,-20796,6921,7668,-21347,11348,3626,-21165,7318,11053,-18153,6451,17010,-962,11821,16779,-7048,9243,15394,-1784,9997,17552,-10972,10502,16696,-11573,8712,15441,-10716,6767,-1287,-20205,7108,2404,-22022,9649,-1435,-21358,9524,-5312,-19082,11324,12363,5538,9117,16714,-15745,12338,15183,-15747,10704,10631,-17823,11991,-9290,14000,8508,-12035,12445,7310,9411,12396,8508,8902,11193,11879,-11797,-9837,11898,-9377,-13977,9574,-6444,-17013,9677,-7894,-15716,6067,-14098,-10021,8571,-12060,4881,14428,-15461,4293,6955,-11812,1198,13423,-13377,8900,10556,-14881,10664,5678,-4647,14520,11226,-5746,13465,4626,-1078,14205,6718,9276,-4129,21549,9645,-5886,17957,11437,-1522,27661,6686,-9613,20650,10651,-5031,25739,-7965,-11433,16959,-5658,-9648,21223,-5115,-11766,23439,-10072,-9190,22727,-2136,-11142,20870,-3903,-13238,16476,-11350,1320,20727,-10724,4719,20260,-11874,7699,15945,-10459,4819,29711,1144,-12431,16153,1985,-11508,20065,1790,-12478,25521,6092,-10077,16121,8268,13110,4179,6811,14114,3448,5913,9671,16614,6896,5872,14868,7264,8848,23022,8595,10159,27927,-867,16960,1327,345,15322,2756,4788,17932,-515,1660,14611,6636,5902,10521,23342,3314,12198,20107,4823,12342,28273,14574,1161,-424,15757,-3112,2718,16238,-6207,-444,-5566,-18385,1403,-1510,-19733,-421,2591,-21455,-422,-5999,-17886,-456,14461,1398,3312,13057,7513,1431,12124,-17882,-44,14612,-14307,-189,13882,-14775,3922,16603,-10684,-420,15774,-11109,2531,-14538,-11705,2019,-16643,-5798,3163,-15790,-5969,-137,-18941,-660,1279,-18834,-156,-396,-15806,15492,-433,-11166,15852,2835,-11534,16160,-451,-14056,15210,2898,9748,12982,-466,12701,7559,-429,-11025,-15045,1098,-10339,-14867,-437,-14078,-11461,-311,-18702,5685,1395,-18687,5373,-455,-18070,12604,1672,-17468,11534,-437,-5628,15215,-480,1418,15651,11204,4826,16202,12596,7032,16012,-472,7603,-21303,-269,16134,-5610,6936,12694,-14394,7184,-14240,-4144,10450,9688,7168,12207,-2524,-14358,14487,2465,-13475,14321,8918,-10926,13785,-7899,-13044,13677,-10771,-8466,16066,12609,-7347,14350,11592,-4374,15698,11747,-2927,15849,11918,1138,14756,11564,1681,14031,10719,-18113,13013,10490,-17952,13574,7784,-21793,13071,7872,-21833,12407,11450,1911,13766,9444,7049,12842,9549,6881,13445,17763,-1037,13035,17512,-1001,12449,2335,-13310,15068,2456,-13431,15376,8962,-10395,15179,8779,-10443,14696,10743,-18390,10313,12245,-7047,15792,11806,-7179,15413,18212,-11251,13073,18288,-11178,12221,17293,-16226,13844,17296,-16277,13247,-2347,-14277,15396,-2324,-14383,15698,-7364,-13568,14093,-7009,-14000,14285,-11744,-9935,12749,-11451,-10095,13467,9043,7029,27982,11402,-4198,15043,7152,-11376,24296,916,18617,-551,886,14839,26453,806,14949,29749,5116,12129,31192,5238,12215,29496,-11994,366,27823,-11774,326,28515,-10351,4716,30714,-10481,4897,30077,8804,10224,29186,7924,10103,30811,8553,6978,31254,9205,6810,29513,11452,-5739,27804,11258,-5459,30690,8006,-11089,28471,7675,-11813,26006,1785,-12943,27984,1846,-12996,26199,-6389,15404,29300,-6082,15245,30530,-12970,-4828,26735,-12680,-4820,27470,9502,3294,32172,9882,3085,30339,-5435,-12306,24311,-5474,-12428,25541,-11302,-9629,26483,-10989,-9720,24484,14968,-1394,7863,-5496,-19600,12291,-5245,-19616,13384,-1370,-21736,10650,-1371,-21693,11792,-10570,10626,29335,-9774,10494,30982,11903,-1510,29490,11456,-1446,31149,3078,-22441,11003,3112,-22265,12000,10511,-6815,32767,7675,-10627,32038,11124,-3140,32750,10381,-79,32559,17620,-1285,13643};
+static const uint16_t ct14[] = {0,1,2,3,1,0,1,3,4,2,1,5,6,7,8,7,6,9,10,3,11,3,10,12,13,14,15,14,13,16,17,18,19,18,17,20,21,22,23,22,21,24,25,26,27,26,25,28,26,29,30,31,23,32,31,32,33,31,33,34,27,35,25,36,37,29,37,36,38,39,40,5,35,41,42,43,44,45,46,44,47,44,46,45,48,49,50,51,49,48,49,51,52,53,39,4,54,53,55,39,53,54,6,56,57,56,6,58,59,56,60,56,59,57,61,62,15,62,63,64,63,62,65,62,61,66,67,68,48,68,2,69,2,68,70,70,68,67,71,72,65,73,72,59,72,71,74,75,76,20,77,7,78,7,79,80,81,82,83,82,84,18,85,77,86,85,87,80,87,85,86,88,89,90,91,92,93,92,91,94,95,88,96,97,98,99,98,100,101,102,103,104,103,105,106,107,108,109,108,107,110,111,96,112,96,111,75,111,76,75,113,114,94,113,102,115,105,116,117,116,118,119,81,120,108,121,84,55,121,122,18,83,76,123,76,83,18,21,124,24,124,21,23,89,30,101,30,125,26,31,91,93,91,31,46,89,95,35,24,126,37,103,49,105,49,103,127,108,110,40,75,41,35,46,113,91,46,47,102,49,52,118,108,54,81,54,82,81,54,108,39,77,19,122,128,42,78,129,130,71,130,131,74,130,74,71,48,69,51,132,61,133,132,129,66,131,57,74,57,131,134,135,136,137,135,137,138,139,140,141,139,141,142,143,128,78,144,145,146,144,146,147,128,144,147,128,147,25,121,53,12,122,121,86,127,14,50,14,127,43,42,17,77,148,149,150,148,150,151,55,53,121,44,43,47,43,45,34,35,42,128,51,40,52,39,5,4,40,51,5,127,50,49,127,47,43,29,37,30,37,152,24,37,38,152,36,29,28,35,128,25,31,34,45,26,28,29,22,24,152,23,22,32,22,152,38,18,122,19,85,79,77,14,133,15,14,67,50,14,16,67,13,15,64,10,86,12,86,10,87,151,150,153,151,153,154,147,146,155,147,155,156,156,155,157,156,157,158,159,160,149,159,149,148,161,162,160,161,160,159,163,164,162,163,162,161,3,12,4,7,165,8,7,9,78,2,5,69,1,4,5,3,0,11,6,57,166,56,58,60,6,8,58,6,166,9,59,74,57,59,60,167,61,15,133,62,64,15,63,65,73,62,66,65,67,48,50,68,69,48,2,70,0,70,67,16,71,65,66,72,73,65,73,59,167,72,74,59,75,20,41,7,80,165,84,82,55,81,83,168,82,18,83,169,170,171,169,171,172,173,174,175,173,175,176,177,178,179,177,179,180,181,182,183,181,183,184,172,171,178,172,178,177,184,183,185,184,185,186,187,188,170,187,170,169,189,190,174,189,174,173,180,179,191,180,191,192,193,194,195,193,195,196,196,195,190,196,190,189,124,97,24,89,100,90,100,89,101,88,95,89,96,88,112,97,99,24,98,101,99,30,99,101,102,104,115,103,106,104,118,107,119,107,118,110,76,111,123,113,94,91,113,115,114,105,117,106,116,119,117,120,109,108,120,81,168,121,18,84,17,41,20,41,17,42,76,18,20,124,23,93,125,197,27,125,27,26,31,93,23,31,45,46,197,35,27,95,96,35,126,30,37,47,103,102,103,47,127,52,110,118,108,40,39,110,52,40,75,35,96,46,102,113,49,116,105,49,118,116,54,55,82,19,77,17,77,122,86,78,42,77,138,137,145,138,145,144,129,71,66,132,133,43,132,66,61,198,199,164,198,164,163,200,201,199,200,199,198,166,57,134,166,143,9,69,5,51,143,78,9,53,4,12,121,12,86,14,43,133,202,203,188,202,188,187,186,185,194,186,194,193,204,205,182,204,182,181,192,191,205,192,205,204,176,175,203,176,203,202,158,157,140,158,140,139,206,207,201,206,201,200,154,153,136,154,136,135,142,141,207,142,207,206,208,209,183,210,208,182,209,185,183,208,183,182,211,205,191,205,210,182,212,146,145,146,212,155,80,79,85,77,79,7,99,30,126,99,126,24,89,197,125,89,125,30,89,35,197,22,142,206,22,206,32,134,154,135,134,135,166,32,206,200,32,200,33,36,158,139,36,139,38,33,200,198,33,198,34,34,198,163,34,163,43,143,138,144,143,144,128,43,163,161,43,161,132,132,161,159,132,159,129,129,159,148,129,148,130,28,156,158,28,158,36,25,147,156,25,156,28,131,151,154,131,154,134,130,148,151,130,151,131,38,139,142,38,142,22,166,135,138,166,138,143,70,176,202,70,202,0,8,192,204,8,204,58,58,204,181,58,181,60,73,186,193,73,193,63,0,202,187,0,187,11,64,196,189,64,189,13,63,193,196,63,196,64,165,180,192,165,192,8,13,189,173,13,173,16,11,187,169,11,169,10,167,184,186,167,186,73,87,172,177,87,177,80,60,181,184,60,184,167,80,177,180,80,180,165,16,173,176,16,176,70,10,169,172,10,172,87,211,210,205};
static const int16_t cv15[] = {-4201,-4968,29544,1139,-7965,29776,-2214,-3867,30517,6262,3300,32344,4427,6767,32392,3767,4137,32615,-8252,-4783,28210,-12680,-4820,27470,-11302,-9629,26483,-8745,-1252,29067,-7442,2621,30739,-10351,4716,30714,-11774,326,28515,-6451,7203,31668,-4983,-595,30679,-3529,4666,31330,-9774,10494,30982,-5421,11015,31756,-988,11993,31382,-6082,15245,30530,-2130,8115,32062,6821,6715,31951,7931,3710,32005,8553,6978,31254,-4804,-7769,27515,1785,-12943,27984,-4315,-10619,26870,-5474,-12428,25541,7675,-10627,32038,5743,-6331,32233,3292,-10474,29775,10511,-6815,32767,10381,-79,32559,5435,-927,32352,9502,3294,32172,5685,9348,31770,2223,9539,32163,7924,10103,30811,5116,12129,31192,-6530,-3022,29491,-216,2225,31636,1631,6441,32343,1729,-3533,31132,806,14949,29749,11124,-3140,32750};
static const uint16_t ct15[] = {0,1,2,3,4,5,6,7,8,7,6,9,10,11,12,11,10,13,10,14,15,14,10,9,10,12,9,16,13,17,17,18,19,20,18,17,21,22,23,22,21,3,0,24,1,25,26,27,1,28,29,30,28,1,28,31,29,31,32,33,32,3,33,32,22,3,22,32,34,4,35,36,35,21,37,21,35,4,18,36,38,36,18,20,6,0,39,15,14,40,40,5,41,41,20,40,20,41,36,33,42,29,1,42,2,5,33,3,20,15,40,33,40,42,42,1,29,4,41,5,6,8,24,7,9,12,6,39,9,6,24,0,11,13,16,10,15,13,20,13,15,14,9,39,16,17,19,13,20,17,19,18,43,21,23,37,1,25,30,25,28,30,8,26,24,31,33,29,22,34,23,35,38,36,38,35,37,4,36,41,21,4,3,18,38,43,0,14,39,40,2,42,40,14,2,5,40,33,0,2,14,27,26,8,1,26,25,32,31,44,24,26,1};
static const int16_t cv16[] = {-21897,-5881,12883,-22091,-8010,12994,-20124,-9151,12761,-28067,-7796,12878,-28289,-11317,12373,-24259,-11880,12878,-32181,-10363,12436,-30690,-8154,12387,-12818,-8260,13164,-10646,-4779,13475,-12825,-4264,13090,-10215,-8183,13238,-8471,-4761,13668,-8322,-6976,13429,-11240,-10875,13053,-9568,-13017,13226,-8072,-10009,13417,-10104,-2423,13261,-8417,-3077,13673,-11645,-15978,12870,-8399,-15978,13244,-29283,1,12991,-31955,0,12667,-31118,-4407,12652,-27051,-2191,13032,-25184,-14254,12759,-32767,-12655,12430,-23732,-5569,12765,-20704,0,12724,-22374,0,12649,-22374,-15978,12649,-29283,-15976,12991,-21632,-14041,12756,-19713,-11298,12779,-17377,1,12900,-16905,-2467,13324,-17770,-13612,12910,-17377,-15977,12900,-16578,-15977,12912,-16848,-9729,13143,-13870,-12615,13024,-14704,0,12592,-11211,-13615,13225,-11645,0,12870,-31955,-15976,12667,-20704,-15978,12724,-14704,-15978,12592,-8760,-1992,13575,-8399,0,13244,-5562,-11481,13908,-4977,-9168,13907,-3932,-10565,13984,-2818,-7333,13366,-4528,-6068,13861,-5899,-7630,13713,-6075,-4147,14461,-6889,-3037,14062,-6596,-9090,13726,-6207,-13925,13753,-4071,-14567,14015,-4335,-15978,13875,-4729,-12823,13910,-4781,-4189,14347,-4335,0,13875,-6182,-1845,13974,-3317,-5541,13433,-3285,-13347,1205,-3624,-15978,1384,0,-15976,-115,-812,-12655,-352,-1736,-9720,340,-2108,-12124,714,-3309,-4122,12873,-4073,-5762,11619,-3554,-6797,11573,-3273,-11937,12208,-2777,-9512,12482,-3178,-7935,11614,-4021,-15978,12850,-3629,-14441,12764,-4021,0,12850,-226,-10363,-346,1266,-8154,-396,-2130,-7058,948,838,-4407,-130,-2270,-4699,500,-1569,-2730,882,0,0,-115,-3624,0,1384,-16578,1,12912,-25593,-6468,12955};
static const uint16_t ct16[] = {0,1,2,3,4,5,3,6,4,6,3,7,8,9,10,9,8,11,12,11,13,14,15,16,9,17,10,18,17,9,12,18,9,15,19,20,21,22,23,24,21,23,25,4,26,24,27,28,28,29,24,30,25,31,30,32,25,5,25,32,32,33,5,33,2,5,25,5,4,34,0,35,0,34,28,33,32,36,36,32,37,37,38,36,33,36,39,39,35,2,8,40,14,11,8,14,36,40,39,39,2,33,5,2,1,5,1,27,6,26,4,13,11,16,14,16,11,41,10,17,42,15,14,42,14,40,2,35,0,43,41,17,9,11,12,31,26,44,26,31,25,24,23,7,32,30,45,45,37,32,46,19,40,40,19,42,47,18,48,15,49,16,0,27,1,42,19,15,38,46,36,39,8,35,39,40,8,10,41,35,35,8,10,36,46,40,50,49,51,52,53,54,12,55,56,50,57,49,57,50,54,57,54,13,58,20,59,49,15,58,15,20,58,59,20,60,49,58,61,61,51,49,50,52,54,53,62,55,63,64,62,53,52,65,65,62,53,56,55,62,61,59,51,51,52,50,12,13,55,55,13,53,54,53,13,59,61,58,66,67,68,69,66,68,70,71,69,71,66,69,65,72,62,73,65,52,73,52,74,51,75,76,51,76,52,77,52,76,52,77,74,60,78,79,60,79,59,75,51,59,75,59,79,80,63,62,80,62,72,81,70,69,82,83,70,82,70,81,84,85,83,84,83,82,85,84,86,87,86,84,13,16,57,49,57,16,12,56,48,12,48,18,56,64,48,47,43,17,48,43,47,17,18,47,73,72,65,88,86,87,48,64,63,62,64,56,41,89,35,34,35,89,21,24,29,0,28,27,3,24,7,3,90,24,27,90,5,24,90,27,5,90,3};
static const int16_t cv17[] = {-10158,0,23622,-8809,-6987,22878,-7385,-3960,19604,-11138,-29562,16414,-10913,-23489,17969,-10790,-28141,20276,-9390,-32767,19340,-10317,-32767,13305,-11176,-27904,11278,-12332,-23331,9575,-12297,-24511,12996,-11441,-30784,12746,-10490,-29756,9341,-7765,-30137,5235,-7883,-27198,4912,-8353,-32767,6430,-10265,-25507,7052,-8103,-21831,3882,-6807,-26910,4065,-9037,-24295,22819,-9796,-29348,24778,-10158,-32767,23622,-10048,-30953,23981,-8229,-1314,7972,-8458,-2461,6899,-7623,0,4584,-8353,0,6430,-9582,-3686,9081,-10245,-6014,6462,-10317,0,13305,-11743,-8755,7599,-12418,-13082,7164,-10285,-11321,5527,-13239,-6781,9740,-11379,-21528,7341,-15121,-17541,10397,-12619,-18271,6839,-10352,-3297,13833,-9390,0,19340,-12890,-6705,12481,-13201,-11300,12519,-13453,-12271,8729,-12740,-16551,15365,-13409,-12506,17961,-12947,-8065,17552,-13733,-20823,15463,-10840,-10660,20644,-10492,-8510,21181,-10337,-12529,19944,-9805,-10767,21593,-9529,-13349,22769,-8777,-16335,21521,-7744,-19340,24560,-7623,-32767,4584,-10630,-16627,3932,-4017,-20154,2247,-4463,-14064,4139,-5221,-24522,3269,-6056,-23734,3377,-4031,-5352,3235,-6639,-5459,4540,-5024,-7631,3766,-5548,-2855,4171,-7431,0,2837,-3218,-5599,1808,-4656,-9636,1025,-4368,-14474,1944,-3561,-19934,696,-7431,-32767,2837,-6738,-27371,2472,-8246,0,26353,-6786,-8453,26400,-8354,-11816,23829,-7288,-13939,23734,-6518,-16273,23818,-5695,-19508,25598,-6713,-24481,25036,-7441,-29615,26177,-8246,-32767,26353,-4323,-24864,1465};
static const uint16_t ct17[] = {0,1,2,3,4,5,3,6,7,8,9,10,8,11,12,8,10,4,12,13,14,12,15,13,12,14,16,14,17,16,14,13,18,15,12,7,8,16,9,5,19,20,21,3,5,21,5,22,23,24,25,23,25,26,23,27,24,27,28,24,29,23,26,30,31,32,33,30,27,17,34,16,34,35,9,34,36,35,37,29,38,39,37,2,39,33,37,33,27,37,40,41,33,35,40,42,33,39,40,43,40,44,35,45,9,5,20,22,38,2,37,46,44,47,46,48,43,48,49,50,48,50,51,52,4,51,51,43,48,45,42,51,2,1,47,47,1,49,49,46,47,21,6,3,11,7,12,8,3,11,3,7,11,8,4,3,13,15,53,53,18,13,12,16,8,34,9,16,4,52,19,4,19,5,27,30,28,29,27,23,29,37,27,32,28,30,31,36,32,31,30,41,41,30,33,32,36,54,36,34,17,54,36,17,31,41,36,35,36,41,2,44,39,40,35,41,39,44,40,9,45,10,4,10,45,35,42,45,40,43,42,38,0,2,47,44,2,51,4,45,43,44,46,46,49,48,51,42,43,17,55,56,57,55,58,57,58,18,17,58,55,18,58,17,59,60,61,60,56,61,60,32,56,60,62,25,28,60,24,25,62,63,56,54,17,56,32,54,32,60,28,62,60,59,60,25,24,18,17,14,63,59,64,59,61,65,59,65,64,61,56,66,61,66,65,56,55,67,56,67,66,18,53,68,18,68,69,1,0,70,1,70,71,49,1,71,49,71,72,50,49,72,50,72,73,51,50,73,51,73,74,52,51,74,52,74,75,19,52,75,19,75,76,20,19,76,20,76,77,22,20,77,22,77,78,21,22,78,62,59,63,55,57,79,55,79,67,57,18,69,57,69,79};
-static const int16_t cv18[] = {-6142,-2443,26272,-7517,-2466,26429,-7489,269,22822,-6068,556,22298,-9948,5,23784,-11145,-741,26802,-11729,455,23737,-13750,-503,27626,-16031,-1282,26217,-18389,-652,26520,-17177,295,23042,-13188,1093,22041,-14933,-395,24535,-29412,886,21050,-26397,763,22415,-28738,712,23554,-32228,583,24766,-31848,20,22470,-32767,474,19504,-30368,1032,19270,-9994,2142,18660,-11077,2235,20170,-28597,891,18568,-26225,1080,17681,-26804,1447,19491,-29463,571,17559,-29834,-769,15545,-28128,-714,15386,-31091,-489,16131,-27268,447,16436,-25338,-1273,14881,-28364,-1501,14761,-3869,-241,24178,-10020,240,15299,-11084,-569,14179,-8805,170,14628,-7163,-1476,14159,-10085,1074,16924,-13505,214,16342,-11620,-410,15313,-12836,1679,18118,-14725,-273,16952,-15741,-349,16361,-13823,-987,15610,-16546,137,17206,-17646,143,16146,-19066,663,16505,-14702,376,17760,-21043,280,16189,-20424,304,15284,-18496,1652,17775,-25209,252,16463,-23547,2126,18093,-22824,728,16048,-7682,1723,18332,-5201,1414,17292,-3275,1358,20182,-15319,1021,20343,-16760,907,18340,-18230,1804,19208,-20443,1305,19240,-21001,1581,17219,-22938,976,20628,-21043,1060,22226,-18836,1135,21708,-25084,1477,20752,-9193,-1640,26301,-20094,62,23869,-18991,-385,24482,-21010,-203,24305,-20275,-108,24830,-22727,-736,24042,-24319,-750,25723,-31918,-847,15225,-26921,-158,25445,-6437,479,15877,-8521,102,15281,-12436,-1374,14855,-22809,-866,14905,-24877,-2817,14330,-21616,-1929,14777,-26329,-2284,13888,-16894,-1459,14561,-16793,-44,15395,-18966,-1661,14227,-13796,-1844,14871,-15196,-1383,14583,-17009,-2483,13521,-3328,1131,16689,-1134,1297,18656,-4110,-1505,12307,-4322,-3428,11340,-3623,-1943,9733,-2153,1160,9275,-2751,2,11925,-3797,-481,11578,-5464,-14503,8168,-5354,-11524,8931,-5294,-13806,10063,-4607,-16076,9604,-5061,-16076,6643,-5483,-13690,5648,-6050,-11446,4813,-6033,-12026,6491,-5613,-15103,6369,-5146,-14598,4698,-3809,-14786,2684,-3867,-13344,2525,-4098,-16076,3270,-5036,-12514,3575,-3975,-10710,2020,-3076,-13479,1900,-4983,-16076,11705,-3060,-269,4092,-4150,-1207,3500,-2363,-230,2832,-2123,602,4261,-2875,478,5473,-3296,-2078,4345,-5026,-2950,3286,-5310,-4302,3644,-7159,-5967,3328,-6875,-5416,2423,-6495,-3327,4894,-4233,41,6225,-5333,-10484,3602,-7419,-8606,5216,-6312,-7988,3187,-1829,1083,6345,-3520,731,8621,-6324,-3290,6239,-6477,-5544,6257,-6526,-6159,4326,-6250,-8120,7654,-6579,-6136,8927,-6352,-3957,8726,-6738,-10216,7702,-5318,-5230,10244,-5148,-4175,10507,-5072,-6147,9900,-4810,-5282,10709,-4306,-8014,10674,-3799,-9488,12165,-4434,-11920,11311,-1032,406,3706,-5215,-8157,2044,-1666,347,15008,-1386,555,11793,-2293,-10355,1469,-1900,-7117,1916,-1978,-2626,1703,-3257,-2678,2343,-2201,-4157,1752,-1590,-1202,1929,-809,-177,1951,-2020,-5141,408,1061,-489,3270,-615,474,6643,304,20,9610,-958,-1287,13003,-318,151,13399,-2492,299,21045,879,1309,17065,2571,-487,14262};
-static const uint16_t ct18[] = {0,1,2,2,3,0,4,5,6,6,5,7,8,9,10,11,7,12,12,7,8,13,14,15,16,13,15,13,17,18,13,18,19,20,2,4,20,4,21,22,23,24,22,19,25,22,24,14,25,26,27,25,28,26,25,27,29,27,30,29,27,26,31,28,25,18,19,18,25,22,29,23,32,0,3,33,34,35,35,34,36,37,38,39,37,40,38,41,42,43,41,44,42,41,43,38,44,45,42,44,46,45,47,41,38,46,48,49,50,46,44,30,51,29,51,52,23,51,53,52,54,20,37,54,2,20,55,56,3,20,40,37,40,20,21,40,11,57,40,57,47,58,47,57,59,58,10,57,11,12,59,50,58,50,44,58,60,61,50,52,60,62,50,59,60,63,60,64,52,65,23,12,8,10,6,21,4,4,66,5,57,10,58,67,64,68,68,64,10,63,64,67,67,69,63,69,70,71,72,14,71,71,63,69,65,62,71,4,2,66,10,9,68,68,9,70,70,67,68,16,17,13,22,13,19,22,14,13,26,28,73,73,31,26,25,29,22,51,23,29,14,72,74,14,74,15,75,37,76,38,43,39,39,43,77,75,54,37,47,44,41,47,58,44,49,45,46,48,53,49,48,46,61,61,46,50,49,53,78,53,51,30,48,61,53,55,54,75,55,3,54,3,2,54,40,47,38,21,11,40,10,64,59,60,52,61,52,53,61,59,64,60,23,65,24,14,24,65,52,62,65,60,63,62,1,66,2,6,11,21,57,12,10,71,14,65,7,11,6,67,70,69,71,62,63,30,79,80,30,81,79,82,83,84,83,80,84,83,49,80,45,83,42,31,81,30,43,85,77,80,78,30,80,49,78,49,83,45,86,85,83,83,85,43,86,83,82,83,43,42,31,30,27,78,53,30,76,35,36,76,37,33,76,33,35,37,39,34,37,34,33,39,77,34,86,82,87,82,84,87,88,89,55,90,91,92,93,94,95,96,97,98,96,99,100,101,102,103,101,104,105,101,103,97,105,106,107,105,108,106,105,107,109,107,110,109,107,106,111,108,105,100,101,109,102,112,96,98,113,114,115,113,115,116,117,113,116,113,118,114,118,119,114,120,121,122,123,120,118,123,118,124,110,125,109,125,126,102,125,127,126,128,93,129,128,129,117,124,117,129,130,124,92,129,93,95,130,123,124,131,132,123,126,131,133,123,130,131,134,131,135,126,136,102,95,90,92,129,92,124,137,135,138,137,139,134,139,140,141,142,97,141,141,134,139,136,133,141,92,91,138,138,91,140,140,137,138,112,99,96,56,55,89,104,100,105,101,96,104,96,100,104,101,97,96,105,109,101,125,102,109,97,142,143,97,143,98,116,115,144,118,120,119,117,118,113,117,124,118,122,119,120,121,127,122,121,120,132,132,120,123,122,127,145,127,125,110,121,132,127,128,117,116,92,135,130,131,126,132,126,127,132,130,135,131,102,136,103,97,103,136,126,133,136,131,134,133,95,94,90,146,89,88,129,95,92,138,135,92,141,97,136,94,93,147,134,135,137,137,140,139,141,133,134,110,148,149,110,111,148,150,151,152,151,149,152,151,122,149,119,151,114,115,153,154,149,145,110,149,122,145,122,151,119,151,153,115,153,151,150,151,115,114,111,110,107,144,115,154,145,127,110,150,152,155,152,149,155,154,156,144,157,144,156,144,157,128,144,128,116,157,158,93,157,93,128,147,93,158,159,160,146,3,56,32,56,161,32,56,89,161,162,146,163,160,163,146,89,146,162};
+static const int16_t cv18[] = {-6142,-2443,26272,-7517,-2466,26429,-7489,269,22822,-6068,556,22298,-9948,5,23784,-11145,-741,26802,-11729,455,23737,-13750,-503,27626,-16031,-1282,26217,-18389,-652,26520,-17177,295,23042,-13188,1093,22041,-14933,-395,24535,-29412,886,21050,-26397,763,22415,-28738,712,23554,-32228,583,24766,-31680,567,24901,-31848,20,22470,-32767,474,19504,-30368,1032,19270,-9994,2142,18660,-11077,2235,20170,-28597,891,18568,-26225,1080,17681,-26804,1447,19491,-29463,571,17559,-29834,-769,15545,-28128,-714,15386,-31091,-489,16131,-27268,447,16436,-25338,-1273,14881,-28364,-1501,14761,-26921,-158,25445,-29356,220,25159,-3869,-241,24178,-10020,240,15299,-11084,-569,14179,-8805,170,14628,-7163,-1476,14159,-10085,1074,16924,-13505,214,16342,-11620,-410,15313,-12836,1679,18118,-14725,-273,16952,-15741,-349,16361,-13823,-987,15610,-16546,137,17206,-17646,143,16146,-19066,663,16505,-14702,376,17760,-21043,280,16189,-20424,304,15284,-18496,1652,17775,-25209,252,16463,-23547,2126,18093,-22824,728,16048,-7682,1723,18332,-5201,1414,17292,-3275,1358,20182,-15319,1021,20343,-16760,907,18340,-18230,1804,19208,-20443,1305,19240,-21001,1581,17219,-22938,976,20628,-21043,1060,22226,-18836,1135,21708,-25084,1477,20752,-9193,-1640,26301,-20094,62,23869,-18991,-385,24482,-21010,-203,24305,-20275,-108,24830,-21295,-403,25153,-22727,-736,24042,-24319,-750,25723,-32497,396,24720,-31918,-847,15225,-6437,479,15877,-8521,102,15281,-6923,-1145,15020,-12436,-1374,14855,-22809,-866,14905,-24877,-2817,14330,-21616,-1929,14777,-26818,-3122,13973,-26329,-2284,13888,-16894,-1459,14561,-16793,-44,15395,-18966,-1661,14227,-13796,-1844,14871,-15196,-1383,14583,-12236,-1565,13965,-13396,-2207,14106,-14916,-1719,13829,-17009,-2483,13521,-19292,-2337,13268,-21675,-2231,14073,-24741,-3034,13569,-26981,-3677,13041,-28571,-1535,13979,-31918,-941,14368,-3328,1131,16689,-1134,1297,18656,-4110,-1505,12307,-4322,-3428,11340,-3623,-1943,9733,-2153,1160,9275,-2751,2,11925,-3797,-481,11578,-5464,-14503,8168,-5354,-11524,8931,-5294,-13806,10063,-4607,-16076,9604,-5061,-16076,6643,-5483,-13690,5648,-6050,-11446,4813,-6033,-12026,6491,-5613,-15103,6369,-5146,-14598,4698,-3809,-14786,2684,-3867,-13344,2525,-4098,-16076,3270,-5036,-12514,3575,-3975,-10710,2020,-3076,-13479,1900,-4434,-11920,11311,-4806,-14399,12272,-4983,-16076,11705,-4930,-15186,11881,-3060,-269,4092,-4150,-1207,3500,-2363,-230,2832,-2123,602,4261,-2875,478,5473,-3296,-2078,4345,-5026,-2950,3286,-5310,-4302,3644,-7159,-5967,3328,-6875,-5416,2423,-6495,-3327,4894,-4233,41,6225,-5333,-10484,3602,-7419,-8606,5216,-6312,-7988,3187,-1829,1083,6345,-3520,731,8621,-6324,-3290,6239,-6477,-5544,6257,-6526,-6159,4326,-6250,-8120,7654,-6579,-6136,8927,-6352,-3957,8726,-6738,-10216,7702,-5318,-5230,10244,-5148,-4175,10507,-5072,-6147,9900,-4810,-5282,10709,-4675,-6549,11286,-4306,-8014,10674,-3799,-9488,12165,-3740,-16076,2364,-1032,406,3706,-5215,-8157,2044,-346,396,11859,-346,-797,12651,-958,-1287,13003,-1386,555,11793,-1666,347,15008,-2293,-10355,1469,-1900,-7117,1916,-2562,-12031,1719,-2971,-11644,1772,-1978,-2626,1703,-3257,-2678,2343,-2201,-4157,1752,-1985,-1014,2248,-809,-177,1951,-1590,-1202,1929,-928,-1223,1558,233,-847,2364,233,-941,1508,-1579,-2747,1003,-2020,-5141,408,-1853,-7318,839,-2069,-10248,708,-3646,-16076,1508,-3042,-13705,1118,1061,-489,3270,-615,474,6643,304,20,9610,-318,151,13399,-2492,299,21045,-3270,-935,24277,-2121,-12199,834,879,1309,17065,2571,-487,14262};
+static const uint16_t ct18[] = {0,1,2,2,3,0,4,5,6,6,5,7,8,9,10,11,7,12,12,7,8,13,14,15,16,13,15,16,15,17,13,18,19,13,19,20,21,2,4,21,4,22,23,24,25,23,20,26,23,25,14,26,27,28,26,29,27,26,28,30,28,31,30,28,27,32,29,26,19,20,19,26,23,30,24,15,33,34,15,34,17,35,0,3,36,37,38,38,37,39,40,41,42,40,43,41,44,45,46,44,47,45,44,46,41,47,48,45,47,49,48,50,44,41,49,51,52,53,49,47,31,54,30,54,55,24,54,56,55,57,21,40,57,2,21,58,59,3,21,43,40,43,21,22,43,11,60,43,60,50,61,50,60,62,61,10,60,11,12,62,53,61,53,47,61,63,64,53,55,63,65,53,62,63,66,63,67,55,68,24,12,8,10,6,22,4,4,69,5,60,10,61,70,67,71,71,67,10,66,67,70,70,72,66,72,73,74,72,74,75,76,14,75,75,66,72,68,65,75,4,2,69,10,9,71,71,9,73,73,70,71,77,18,13,77,13,16,23,13,20,23,14,13,27,29,78,78,32,27,26,30,23,54,24,30,14,76,33,14,33,15,79,80,81,79,40,80,41,46,42,42,46,82,79,57,40,50,47,44,50,61,47,52,48,49,51,56,52,51,49,64,64,49,53,52,56,83,56,54,31,51,64,56,58,57,79,58,3,57,3,2,57,43,50,41,22,11,43,10,67,62,63,55,64,55,56,64,62,67,63,24,68,25,14,25,68,55,65,68,63,66,65,1,69,2,6,11,22,60,12,10,75,14,68,7,11,6,70,73,72,75,65,66,31,84,85,86,84,87,31,87,84,88,89,90,86,87,32,89,85,90,89,52,85,48,89,45,32,87,31,46,91,82,85,83,31,85,52,83,52,89,48,92,91,89,89,91,46,92,89,88,89,46,45,32,31,28,83,56,31,81,80,38,81,38,39,80,40,36,80,36,38,40,42,37,40,37,36,42,82,93,42,93,37,82,91,94,82,94,93,91,92,95,91,95,94,92,88,96,92,96,95,88,90,97,88,97,96,90,85,98,90,98,97,85,84,99,85,99,98,84,86,100,84,100,99,86,32,101,86,101,100,32,78,102,32,102,101,103,104,58,105,106,107,108,109,110,111,112,113,111,114,115,116,117,118,116,119,120,116,118,112,120,121,122,120,123,121,120,122,124,122,125,124,122,121,126,123,120,115,116,124,117,113,127,128,129,111,113,129,113,130,131,132,133,131,133,134,135,131,134,131,136,132,136,137,132,138,139,140,141,138,136,141,136,142,125,143,124,143,144,117,143,145,144,146,108,147,146,147,135,142,135,147,148,142,107,147,108,110,148,141,142,149,150,141,144,149,151,141,148,149,152,149,153,144,154,117,113,128,130,110,105,107,147,107,142,155,153,156,155,157,152,157,158,159,157,159,160,161,112,160,160,152,157,154,151,160,107,106,156,156,106,158,158,155,156,129,114,111,59,58,104,119,115,120,116,111,119,111,115,119,116,112,111,121,123,162,162,126,121,120,124,116,143,117,124,112,161,127,112,127,113,134,133,163,136,138,137,135,136,131,135,142,136,140,137,138,139,145,140,139,138,150,150,138,141,140,145,164,145,143,125,139,150,145,146,135,134,107,153,148,149,144,150,144,145,150,148,153,149,117,154,118,112,118,154,144,151,154,149,152,151,165,166,167,165,167,168,110,109,105,169,104,103,147,110,107,156,153,107,160,112,154,109,108,168,152,153,155,155,158,157,160,151,152,125,170,171,172,170,173,125,173,170,126,173,125,174,175,176,172,173,126,175,171,176,175,140,171,137,175,132,133,177,178,177,179,178,178,179,180,171,164,125,171,140,164,140,175,137,179,177,175,175,177,133,179,175,174,175,133,132,126,125,122,163,133,178,164,145,125,181,178,180,181,180,182,179,174,183,179,183,180,174,176,184,174,184,183,176,171,185,176,185,184,171,170,186,171,186,185,126,162,187,126,187,188,181,189,163,181,163,178,190,163,189,163,190,146,163,146,134,190,191,108,190,108,146,165,168,108,165,108,191,192,167,166,167,192,169,3,59,35,59,193,194,59,194,35,170,172,195,170,195,186,172,126,188,172,188,195,59,104,193,196,169,197,192,197,169,104,169,196};
static const int16_t cv19[] = {-21897,-5881,12883,-22091,-8010,12994,-20124,-9151,12761,-28067,-7796,12878,-28289,-11317,12373,-24259,-11880,12878,-32181,-10363,12436,-30690,-8154,12387,-12818,-8260,13164,-10646,-4779,13475,-12825,-4264,13090,-10215,-8183,13238,-8471,-4761,13668,-8322,-6976,13429,-11240,-10875,13053,-9568,-13017,13226,-8072,-10009,13417,-10104,-2423,13261,-8417,-3077,13673,-11645,-15978,12870,-8399,-15978,13244,-29283,1,12991,-31955,0,12667,-31118,-4407,12652,-27051,-2191,13032,-25184,-14254,12759,-32767,-12655,12430,-23732,-5569,12765,-20704,0,12724,-22374,0,12649,-22374,-15978,12649,-29283,-15976,12991,-21632,-14041,12756,-19713,-11298,12779,-17377,1,12900,-16905,-2467,13324,-17770,-13612,12910,-17377,-15977,12900,-16578,-15977,12912,-16848,-9729,13143,-13870,-12615,13024,-14704,0,12592,-11211,-13615,13225,-11645,0,12870,-31955,-15976,12667,-20704,-15978,12724,-14704,-15978,12592,-8760,-1992,13575,-8399,0,13244,-5562,-11481,13908,-4977,-9168,13907,-3932,-10565,13984,-2818,-7333,13366,-4528,-6068,13861,-5899,-7630,13713,-6075,-4147,14461,-6889,-3037,14062,-6596,-9090,13726,-6207,-13925,13753,-4071,-14567,14015,-4335,-15978,13875,-4729,-12823,13910,-4781,-4189,14347,-4335,0,13875,-6182,-1845,13974,-3317,-5541,13433,-25307,-6826,286,-31118,-4407,-130,-30690,-8154,-396,-3285,-13347,1205,-3624,-15978,1384,0,-15976,-115,-812,-12655,-352,-3624,0,1384,-2774,-1757,1359,-1569,-2730,882,-3571,-3451,952,-2270,-4699,500,-4919,-4374,602,-2082,-6023,-4,-1688,-9939,-174,-2325,-12154,348,-225,-10363,-346,1266,-8154,-396,838,-4407,-130,0,0,-115,-3697,-11369,543,-3173,-12388,1033,-16578,1,12912,-25593,-6468,12955,-6756,-4717,53,-6365,-12069,-75,-6567,-13121,1082,-11401,-5361,38,-11030,-11917,171,-16087,-4728,166,-15656,-13114,-70,-20692,-6005,268,-20328,-12723,262,-24983,-12903,388,-29662,-14094,148,-32767,-12655,-352,-31955,-15976,-115,-32181,-10363,-346};
static const uint16_t ct19[] = {0,1,2,3,4,5,3,6,4,6,3,7,8,9,10,9,8,11,12,11,13,14,15,16,9,17,10,18,17,9,12,18,9,15,19,20,21,22,23,24,21,23,25,4,26,24,27,28,28,29,24,30,25,31,30,32,25,5,25,32,32,33,5,33,2,5,25,5,4,34,0,35,0,34,28,33,32,36,36,32,37,37,38,36,33,36,39,39,35,2,8,40,14,11,8,14,36,40,39,39,2,33,5,2,1,5,1,27,6,26,4,13,11,16,14,16,11,41,10,17,42,15,14,42,14,40,2,35,0,43,41,17,9,11,12,31,26,44,26,31,25,24,23,7,32,30,45,45,37,32,46,19,40,40,19,42,47,18,48,15,49,16,0,27,1,42,19,15,38,46,36,39,8,35,39,40,8,10,41,35,35,8,10,36,46,40,50,49,51,52,53,54,12,55,56,50,57,49,57,50,54,57,54,13,58,20,59,49,15,58,15,20,58,59,20,60,49,58,61,61,51,49,50,52,54,53,62,55,63,64,62,53,52,65,65,62,53,56,55,62,61,59,51,51,52,50,12,13,55,55,13,53,54,53,13,59,61,58,66,67,68,69,70,71,72,69,71,73,74,75,74,76,77,74,77,75,76,78,79,76,79,77,80,81,72,81,69,72,82,80,72,83,79,80,83,80,82,84,77,79,84,79,83,77,84,75,85,75,84,86,87,81,86,81,80,87,69,81,13,16,57,49,57,16,12,56,48,12,48,18,56,64,48,47,43,17,48,43,47,17,18,47,73,75,85,48,64,63,62,64,56,41,88,35,34,35,88,21,24,29,0,28,27,3,24,7,3,89,24,27,89,5,24,89,27,5,89,3,78,90,79,80,91,92,80,92,86,79,90,91,79,91,80,90,93,94,93,95,96,95,97,98,97,66,99,66,100,99,90,94,91,93,96,94,95,98,96,97,99,98,68,100,66,100,101,102,103,101,100,68,103,100};
-static const int16_t cv20[] = {-4627,0,10761,-4013,-3183,10422,-3364,-1804,8930,-5074,-13467,7477,-4971,-10509,8167,-4915,-12819,9237,-4278,-14927,8810,-4700,-14927,6061,-5091,-12712,5137,-5873,-9615,5054,-5602,-10989,5903,-5212,-14023,5806,-4778,-13555,4255,-3537,-13729,2385,-3591,-12390,2237,-3805,-14927,2929,-4676,-11357,3213,-3511,-9757,2185,-4915,-9083,3363,-3101,-12259,1852,-4117,-11068,10395,-4462,-13369,11287,-4627,-14927,10761,-4577,-14100,10924,-3749,-599,3632,-3853,-1121,3143,-3473,0,2088,-3805,0,2929,-4365,-1679,4137,-4667,-2739,2944,-4700,0,6061,-5349,-3953,3260,-6105,-5067,2897,-5062,-4351,2346,-6031,-3089,4437,-4716,-1502,6301,-4278,0,8810,-5872,-3055,5685,-6546,-5040,5715,-6416,-5232,3806,-5898,-3906,7831,-5961,-6509,7495,-4938,-5243,9386,-4780,-3876,9649,-4709,-6229,9129,-4467,-4934,9910,-4341,-6108,10441,-3691,-7333,9514,-3528,-8810,11188,-3473,-14927,2088,-27835,-6181,4184,-31788,-6725,4707,-31648,-6637,3846,-27405,-5529,3508,-29854,0,-107,-27283,-13471,5285,-26898,-11796,3392,-30931,-11817,3650,-25378,-13915,1897,-29778,-14106,1811,-27912,-12785,7326,-31659,-12743,5219,-6123,-8461,6841,-27692,-6662,5699,-32294,-5778,5825,-27850,-5964,8026,-32767,-7228,8107,-3084,-10943,1629,-3454,-10621,507,-3024,-2487,2068,-4596,-4086,562,-31720,-11743,7194,-30260,-9584,10786,-23363,-12886,1234,-23340,-12054,363,-27711,-13167,138,-25701,-9019,9814,-3099,-5177,12549,-3091,-3851,12027,-4466,-3913,13403,-3806,-5383,10855,-2633,-6850,12487,-3320,-6350,10812,-3673,-9870,13064,-3058,-11152,11405,-2594,-8887,11661,-2969,-7413,10850,-3756,-14927,12005,-3390,-13491,11925,-3803,-13609,13093,-3756,0,12005,-4050,0,12963,-31553,-9249,8123,-8334,-7216,10579,-10497,-3831,8016,-12679,-7627,9856,-14791,-5814,7676,-17022,-8070,9571,-19142,-5939,7775,-21354,-8633,10873,-23454,-7317,7579,-6378,-3796,1152,-10760,-3072,1222,-10651,-5008,36,-15029,-4417,155,-15043,-5331,1820,-20070,-5714,1379,-19331,-5610,251,-17259,-5543,2428,-23703,-6076,1101,-23643,-6377,267,-6135,-12258,1011,-5947,-11275,-70,-10305,-11133,160,-10490,-12260,1068,-14626,-12251,-66,-14859,-11798,1164,-18991,-11886,245,-19194,-12468,1165,-10591,-9676,7019,-14915,-10640,7131,-19290,-10054,6952,-23660,-9596,6797,-8090,-9734,1650,-12319,-13670,1929,-16781,-10358,1664,-21052,-12994,1845,-9068,-2559,2668,-13330,-5524,2456,-22057,-4574,2221,-26445,-3946,2786,-10363,-3749,5686,-14682,-4888,5666,-19002,-6015,5646,-23325,-7019,5633,-10431,-5609,4336,-14807,-4987,4165,-19142,-5636,4215,-23468,-6059,3842,-9929,-11355,5193,-14332,-9857,5072,-18590,-12885,5272,-22991,-11473,5158,-9379,-9428,3270,-13879,-10310,3326,-18228,-10530,3315,-22528,-12241,3482,-10022,-4327,3133,-14240,-5728,3379,-18677,-5915,3214,-22895,-5449,2907,-29071,-4117,-121,-6312,-4407,50,-29854,-14925,-107};
-static const uint16_t ct20[] = {0,1,2,3,4,5,3,6,7,8,9,10,8,11,12,8,10,4,12,13,14,12,15,13,12,14,16,14,17,16,17,18,16,14,13,19,15,12,7,8,16,9,5,20,21,22,3,5,22,5,23,24,25,26,24,26,27,24,28,25,28,29,25,30,24,27,31,32,33,34,31,28,35,30,36,37,35,2,37,34,35,34,28,35,38,39,34,34,37,38,37,40,38,41,38,40,5,21,23,36,2,35,42,40,43,42,44,41,44,45,46,44,46,47,48,4,47,47,41,44,2,1,43,43,1,45,45,42,43,22,6,3,11,7,12,8,3,11,3,7,11,8,4,3,13,15,49,49,19,13,12,16,8,18,9,16,4,48,20,4,20,5,28,31,29,30,28,24,30,35,28,33,29,31,50,51,52,32,31,39,39,31,34,53,52,54,55,56,57,56,58,59,2,40,37,60,55,61,9,62,10,4,10,62,50,63,64,65,66,64,36,0,2,43,40,2,47,4,62,41,40,42,42,45,44,17,67,68,69,33,70,29,69,25,19,67,17,60,71,72,73,74,75,33,69,29,69,26,25,19,17,14,65,76,72,77,78,79,80,77,81,80,81,82,83,84,85,83,85,81,86,81,85,81,86,82,87,88,89,84,83,89,84,89,88,90,91,79,90,79,78,1,0,90,1,90,78,45,1,78,45,78,80,46,45,80,46,80,82,47,46,82,47,82,86,48,47,86,48,86,85,20,48,85,20,85,84,21,20,84,21,84,88,23,21,88,23,88,87,22,23,87,80,78,77,71,92,72,64,66,92,72,92,66,41,47,93,94,93,95,96,95,97,98,97,99,100,99,76,101,102,103,102,104,103,102,105,104,105,106,107,108,106,105,106,109,110,111,112,113,114,113,115,116,115,117,118,117,74,62,119,93,119,120,95,120,121,97,121,122,99,122,60,76,68,111,123,68,123,17,123,111,114,124,114,116,125,116,118,126,118,73,33,127,101,127,128,102,128,108,105,108,129,106,129,130,109,41,94,131,94,96,132,96,98,133,98,100,134,100,65,63,39,38,131,135,131,132,136,132,133,137,133,134,138,134,63,62,9,139,119,139,140,120,140,141,121,141,142,122,142,55,18,17,123,143,123,124,144,124,125,145,125,126,146,126,58,9,18,143,139,143,144,140,144,145,141,145,146,142,146,56,32,147,127,147,148,128,148,149,108,149,150,129,150,53,130,39,135,147,135,136,148,136,137,149,137,138,150,137,134,138,138,50,53,50,52,53,53,54,130,55,57,61,56,59,57,60,61,71,50,64,51,65,64,63,60,72,76,109,151,110,65,72,66,73,75,58,41,93,94,94,95,96,96,97,98,98,99,100,100,76,65,101,103,152,105,107,104,106,110,107,111,113,114,114,115,116,116,117,118,118,74,73,62,93,47,119,95,93,120,97,95,121,99,97,122,76,99,123,114,124,124,116,125,125,118,126,126,73,58,33,101,70,127,102,101,128,105,102,129,109,106,41,131,38,94,132,131,96,133,132,98,134,133,100,63,134,39,131,135,135,132,136,136,133,137,138,63,50,62,139,119,119,140,120,120,141,121,121,142,122,122,55,60,18,123,143,143,124,144,144,125,145,145,126,146,146,58,56,9,143,139,139,144,140,140,145,141,141,146,142,142,56,55,32,127,33,147,128,127,148,108,128,149,129,108,150,130,129,39,147,32,135,148,147,136,149,148,137,150,149,138,53,150,59,58,75,109,130,151,130,54,151,75,153,59,101,152,70};
+static const int16_t cv20[] = {-4627,0,10761,-4013,-3183,10422,-3364,-1804,8930,-5074,-13467,7477,-4971,-10509,8167,-4915,-12819,9237,-4278,-14927,8810,-4700,-14927,6061,-5091,-12712,5137,-5873,-9615,5054,-5602,-10989,5903,-5212,-14023,5806,-4778,-13555,4255,-3537,-13729,2385,-3591,-12390,2237,-3805,-14927,2929,-4676,-11357,3213,-3511,-9757,2185,-4915,-9083,3363,-3101,-12259,1852,-4117,-11068,10395,-4462,-13369,11287,-4627,-14927,10761,-4577,-14100,10924,-3749,-599,3632,-3853,-1121,3143,-3473,0,2088,-3805,0,2929,-4365,-1679,4137,-4667,-2739,2944,-4700,0,6061,-5349,-3953,3260,-6105,-5067,2897,-5062,-4351,2346,-6031,-3089,4437,-4716,-1502,6301,-4278,0,8810,-5872,-3055,5685,-6546,-5040,5715,-6416,-5232,3806,-5898,-3906,7831,-5961,-6509,7495,-4938,-5243,9386,-4780,-3876,9649,-4709,-6229,9129,-4467,-4934,9910,-4341,-6108,10441,-3691,-7333,9514,-3528,-8810,11188,-3473,-14927,2088,-27835,-6181,4184,-31788,-6725,4707,-31648,-6637,3846,-27405,-5529,3508,-29854,0,-107,-27283,-13471,5285,-26898,-11796,3392,-30931,-11817,3650,-25378,-13915,1897,-29778,-14106,1811,-27912,-12785,7326,-31659,-12743,5219,-6123,-8461,6841,-27692,-6662,5699,-32294,-5778,5825,-27850,-5964,8026,-32767,-7228,8107,-2964,-11573,965,-3454,-10621,507,-3084,-10943,1629,-2592,-1641,1270,-3024,-2487,2068,-3336,-3224,890,-4596,-4086,562,-2527,-1301,1900,-3385,0,1293,-31720,-11743,7194,-30260,-9584,10786,-23363,-12886,1234,-23340,-12054,363,-27711,-13167,138,-25701,-9019,9814,-3385,-14927,1293,-3069,-12469,1126,-3099,-5177,12549,-3091,-3851,12027,-4466,-3913,13403,-3806,-5383,10855,-2633,-6850,12487,-3320,-6350,10812,-3673,-9870,13064,-3058,-11152,11405,-2594,-8887,11661,-2969,-7413,10850,-4050,-14927,12963,-3756,-14927,12005,-3390,-13491,11925,-3803,-13609,13093,-3756,0,12005,-4050,0,12963,-31553,-9249,8123,-8334,-7216,10579,-10497,-3831,8016,-12679,-7627,9856,-14791,-5814,7676,-17022,-8070,9571,-19142,-5939,7775,-21354,-8633,10873,-23454,-7317,7579,-6378,-3796,1152,-10760,-3072,1222,-10651,-5008,36,-15029,-4417,155,-15043,-5331,1820,-20070,-5714,1379,-19331,-5610,251,-17259,-5543,2428,-23703,-6076,1101,-23643,-6377,267,-6135,-12258,1011,-5947,-11275,-70,-10305,-11133,160,-10490,-12260,1068,-14626,-12251,-66,-14859,-11798,1164,-18991,-11886,245,-19194,-12468,1165,-10591,-9676,7019,-14915,-10640,7131,-19290,-10054,6952,-23660,-9596,6797,-8090,-9734,1650,-12319,-13670,1929,-16781,-10358,1664,-21052,-12994,1845,-9068,-2559,2668,-13330,-5524,2456,-22057,-4574,2221,-26445,-3946,2786,-10363,-3749,5686,-14682,-4888,5666,-19002,-6015,5646,-23325,-7019,5633,-10431,-5609,4336,-14807,-4987,4165,-19142,-5636,4215,-23468,-6059,3842,-9929,-11355,5193,-14332,-9857,5072,-18590,-12885,5272,-22991,-11473,5158,-9379,-9428,3270,-13879,-10310,3326,-18228,-10530,3315,-22528,-12241,3482,-10022,-4327,3133,-14240,-5728,3379,-18677,-5915,3214,-22895,-5449,2907,-29071,-4117,-121,-6312,-4407,50,-29854,-14925,-107};
+static const uint16_t ct20[] = {0,1,2,3,4,5,3,6,7,8,9,10,8,11,12,8,10,4,12,13,14,12,15,13,12,14,16,14,17,16,17,18,16,14,13,19,15,12,7,8,16,9,5,20,21,22,3,5,22,5,23,24,25,26,24,26,27,24,28,25,28,29,25,30,24,27,31,32,33,34,31,28,35,30,36,37,35,2,37,34,35,34,28,35,38,39,34,34,37,38,37,40,38,41,38,40,5,21,23,36,2,35,42,40,43,42,44,41,44,45,46,44,46,47,48,4,47,47,41,44,2,1,43,43,1,45,45,42,43,22,6,3,11,7,12,8,3,11,3,7,11,8,4,3,13,15,49,49,19,13,12,16,8,18,9,16,4,48,20,4,20,5,28,31,29,30,28,24,30,35,28,33,29,31,50,51,52,32,31,39,39,31,34,53,52,54,55,56,57,56,58,59,2,40,37,60,55,61,9,62,10,4,10,62,50,63,64,65,66,64,36,0,2,43,40,2,47,4,62,41,40,42,42,45,44,67,68,69,17,69,68,70,71,72,67,69,19,71,73,72,71,33,73,29,71,25,19,69,17,26,74,75,60,76,77,78,79,80,33,71,29,71,74,26,74,71,70,71,26,25,19,17,14,65,81,77,19,49,82,19,82,83,84,85,86,87,84,88,87,88,89,90,91,92,90,92,88,93,88,92,88,93,89,94,95,96,94,96,97,91,90,97,91,97,96,98,99,86,98,86,85,1,0,98,1,98,85,45,1,85,45,85,87,46,45,87,46,87,89,47,46,89,47,89,93,48,47,93,48,93,92,20,48,92,20,92,91,21,20,91,21,91,96,23,21,96,23,96,95,22,23,95,74,70,75,87,85,84,76,100,77,64,66,100,77,100,66,41,47,101,102,101,103,104,103,105,106,105,107,108,107,81,109,110,111,110,112,111,110,113,112,113,114,115,116,114,113,114,117,118,119,120,121,122,121,123,124,123,125,126,125,79,62,127,101,127,128,103,128,129,105,129,130,107,130,60,81,68,119,131,68,131,17,131,119,122,132,122,124,133,124,126,134,126,78,33,135,109,135,136,110,136,116,113,116,137,114,137,138,117,41,102,139,102,104,140,104,106,141,106,108,142,108,65,63,39,38,139,143,139,140,144,140,141,145,141,142,146,142,63,62,9,147,127,147,148,128,148,149,129,149,150,130,150,55,18,17,131,151,131,132,152,132,133,153,133,134,154,134,58,9,18,151,147,151,152,148,152,153,149,153,154,150,154,56,32,155,135,155,156,136,156,157,116,157,158,137,158,53,138,39,143,155,143,144,156,144,145,157,145,146,158,145,142,146,146,50,53,50,52,53,53,54,138,55,57,61,56,59,57,60,61,76,50,64,51,65,64,63,60,77,81,117,159,118,65,77,66,78,80,58,41,101,102,102,103,104,104,105,106,106,107,108,108,81,65,109,111,160,113,115,112,114,118,115,119,121,122,122,123,124,124,125,126,126,79,78,62,101,47,127,103,101,128,105,103,129,107,105,130,81,107,131,122,132,132,124,133,133,126,134,134,78,58,33,109,73,135,110,109,136,113,110,137,117,114,41,139,38,102,140,139,104,141,140,106,142,141,108,63,142,39,139,143,143,140,144,144,141,145,146,63,50,62,147,127,127,148,128,128,149,129,129,150,130,130,55,60,18,131,151,151,132,152,152,133,153,153,134,154,154,58,56,9,151,147,147,152,148,148,153,149,149,154,150,150,56,55,32,135,33,155,136,135,156,116,136,157,137,116,158,138,137,39,155,32,143,156,155,144,157,156,145,158,157,146,53,158,59,58,80,117,138,159,138,54,159,80,161,59,19,83,67,109,160,73};
static const int16_t cv21[] = {-9658,-8832,-37,-13278,-10812,180,-7580,-12319,-285,-18078,-7790,290,-14560,-5376,106,-17975,-4891,428,-14507,-8363,-101,-17181,-11338,367,-14396,-14570,414,-14705,-2683,450,-11012,-2668,-280,-12600,-18058,20,-7411,-6153,151,-16488,-18058,360,-15013,-18058,48,-4439,-7779,-45,-255,-11712,-391,1430,-9215,-447,-17386,-2393,339,-15013,0,48,-18077,-15415,640,-6745,-18058,-443,-1077,-6197,-161,-917,-14303,-398,947,-4981,-147,0,-18058,-131,-6638,-3857,-190,0,0,-131,-6745,0,-443,-12600,0,20,-16488,0,360,-30795,-10578,-396,-28842,-10399,163,-30576,-8222,-10,-31534,-3223,465,-29962,-3679,453,-29945,-1884,169,-30627,-5926,2,-32760,-6525,-155,-32182,-2181,-97,-27299,-4627,228,-26610,-1895,447,-30607,-13523,73,-27190,-13573,493,-28006,0,-179,-26878,-18058,537,-28386,-7468,184,-28006,-18058,-179,-30994,-15180,-539,-30027,-18058,-662,-31727,-8627,-269,-32767,-4513,294,-30027,0,-662,-26294,-10312,373,-32363,-728,-724,-17737,-18058,448,-31769,0,-1165,-31769,-18058,-1165,-26251,-6901,-155,-24521,-14092,983,-23434,-3855,332,-21799,-1004,715,-24169,0,560,-20746,0,730,-25118,-18058,560,-23207,-10257,334,-18609,-976,296,-20506,-10047,354,-21852,-6912,313,-24169,-18058,560,-21479,-14063,621,-20147,-3537,530,-20746,-18058,730,-17737,0,448,-26878,0,537};
static const uint16_t ct21[] = {0,1,2,3,4,5,4,3,6,7,8,1,4,9,5,10,9,4,8,11,2,12,6,0,12,10,4,8,13,14,15,2,16,15,0,2,16,17,15,0,6,1,7,1,6,6,3,7,18,5,9,18,9,19,20,8,7,8,2,1,4,6,12,11,21,2,22,12,15,23,16,2,22,15,17,17,24,22,12,0,15,2,21,23,8,14,11,23,21,25,20,13,8,12,26,10,24,27,28,28,29,10,29,19,9,19,30,18,31,32,33,34,35,36,37,38,33,36,39,34,40,41,35,42,43,32,44,36,41,42,45,43,46,37,33,47,48,49,50,33,38,51,38,37,39,36,52,42,32,31,33,32,46,35,51,37,34,39,51,41,36,35,46,40,37,48,47,42,46,32,53,32,43,53,51,35,34,54,39,52,50,31,33,42,47,45,55,13,20,24,28,22,28,26,22,29,9,10,40,35,37,56,54,52,48,57,49,40,46,58,53,43,59,41,40,60,41,60,61,41,61,62,61,63,62,45,64,59,53,65,58,53,59,65,61,66,63,65,67,68,64,69,70,60,58,68,65,59,70,61,60,71,72,55,20,70,20,7,67,7,3,68,3,5,71,5,18,66,18,73,40,58,60,41,62,74,45,59,43,53,58,46,65,68,58,64,70,59,60,68,71,65,70,67,61,71,66,72,20,70,70,7,67,67,3,68,68,5,71,71,18,66,66,73,63,22,26,12,10,26,28,18,30,73,74,44,41,36,44,52,69,72,70};
static const int16_t cv22[] = {-15786,791,1853,-16505,-78,1137,-14607,760,1448,-14929,-444,763,-12158,-1088,105,-8104,-6842,-44,-11274,-8731,-57,-7445,-11547,-269,-18166,-7620,-505,-13813,-4156,18,-19672,-3821,517,-12247,-6380,66,-15058,-9480,-16,-12525,-12217,63,-15313,-1920,25,-11035,-1892,147,-11515,-16503,19,-6347,-3617,634,-14482,-14706,496,-13721,-16503,44,-29151,-1434,721,-29375,-2452,51,-27328,-2789,324,-19207,-10567,-81,-4130,-6368,218,-578,-10004,-273,449,-6551,394,-19299,-1949,307,-18628,-719,555,-14526,-12015,163,-6164,-16503,-405,-3065,-3155,1040,-838,-13159,-364,722,-4940,813,-16210,-16503,410,-16923,-12708,-91,240,-966,1429,-2600,-1404,1110,0,-16503,-120,-15068,-16503,329,-28432,-6966,-662,-29177,-4884,-65,-29870,-5714,-910,-28982,-8834,-1303,-27277,-11047,-840,-26869,-8443,-703,-25118,-15034,-439,-27134,-13793,-840,-25595,-16503,-163,-27178,-6858,-383,-25828,-7489,-466,-32767,-966,1429,-31311,-2789,-698,-29931,-4007,-443,-27441,-16503,-605,-28759,-11638,-1593,-26544,-11861,-714,-29746,-11791,-2505,-29257,-14132,-1382,-29936,-10511,-2138,-30671,-4763,-1574,-30725,-7155,-1547,-30423,-8916,-1801,-29034,-16503,-1065,-24564,-16503,491,-26484,-916,151,-26215,27,897,-25840,-11177,-1013,-24915,-2755,139,-24066,-766,-72,-23853,-14028,-520,-22088,-16503,511,-24166,-7354,-824,-21458,-7018,-678,-22156,-2850,539,-22889,-10413,-314,-21074,-12670,11,-23395,179,611,-21203,-761,-409,-18960,-16503,667,-19064,500,1164,-20539,136,407};
@@ -849,8 +849,8 @@ static const int16_t cv26[] = {-21109,-878,13475,-19257,8,9861,-18908,-826,13632
static const uint16_t ct26[] = {0,1,2,3,4,5,6,7,8,9,1,10,11,10,1,12,13,14,15,16,0,17,18,19,18,20,19,21,22,18,23,24,25,17,19,24,23,17,24,26,27,28,29,30,31,29,28,30,29,31,32,33,28,29,34,22,21,34,17,35,34,35,36,14,37,34,34,38,22,11,39,10,35,16,36,16,14,36,40,26,41,26,28,41,41,42,40,41,43,6,43,33,44,43,7,6,7,45,46,4,3,42,47,48,49,50,45,51,47,49,1,15,12,14,16,15,14,1,0,16,17,21,18,23,25,52,23,52,39,17,23,35,28,27,30,23,39,11,33,29,32,32,50,44,17,34,21,14,34,36,35,23,11,35,11,16,16,11,1,41,28,33,42,41,6,2,1,49,4,42,6,4,8,5,7,46,8,51,45,7,8,4,6,14,53,37,54,55,24,24,19,54,56,25,24,30,57,58,59,58,60,59,30,58,59,31,30,27,57,30,55,56,24,61,19,20,62,54,19,54,63,55,55,64,56,56,65,25,25,65,66,25,66,52,52,67,39,67,68,39,69,57,27,57,70,58,71,72,73,74,75,76,75,77,78,79,74,80,75,79,77,81,72,71,82,83,84,82,85,86,87,88,76,88,86,85,72,83,73,83,89,73,89,83,82,76,78,87,83,72,84,85,82,84,82,86,89,86,88,90,9,47,1,41,33,43,14,13,53,61,62,19,62,91,54,54,91,63,55,63,64,56,64,65,52,66,67,67,92,68,69,93,57,57,93,70,79,75,74,76,75,78,94,79,80,88,87,90,26,95,27,26,96,97,97,96,98,69,95,99,69,100,93,3,101,102,3,103,42,40,103,96,99,104,105,102,106,107,99,108,100,96,109,98,102,109,103,97,98,110,97,110,104,97,104,95,111,105,92,105,68,92,68,110,39,110,10,39,98,9,10,9,107,47,9,109,107,107,48,47,26,97,95,26,40,96,69,27,95,69,99,100,3,5,101,3,102,103,40,42,103,99,95,104,102,101,106,99,105,108,96,103,109,102,107,109,111,108,105,105,104,68,68,104,110,110,98,10,98,109,9,107,106,48,34,37,38,43,51,7,43,50,51,50,43,44,33,32,44};
static const int16_t cv27[] = {-6870,-6838,260,-9435,-8331,524,-5676,-9233,-205,-9942,-3899,407,-12287,-5079,816,-10215,-6285,631,-12733,-8935,866,-10808,-10816,482,-11007,-2004,331,-13099,-3413,765,-8244,-1997,-209,-9433,-13519,15,-5547,-4603,151,-12343,-13519,270,-11239,-13519,36,-3323,-5824,-33,-191,-8768,-293,-806,-4640,-120,1071,-6899,-335,-12905,-1343,357,-11239,0,36,-13553,-11710,614,-5049,-13519,-332,-687,-10707,-298,709,-3729,-110,0,-13519,-98,-4969,-2887,-142,0,0,-98,-5049,0,-332,-9433,0,15,-12343,0,270,-20966,0,-134,-24676,-1177,907,-20332,-917,898,-23194,-11494,1380,-20966,-13519,-134,-21317,-11844,1311,-22479,-13519,-496,-24936,-11826,-112,-23783,-13519,-872,-27222,-1434,890,-22479,0,-496,-25719,-11153,718,-23783,0,-872,-13278,-13519,336,-20446,-1959,1214,-18358,-2301,723,-16380,-763,534,-18804,0,419,-20121,-13519,402,-19337,-11466,1248,-15684,-4028,1315,-14296,-5160,1237,-16424,-5329,1571,-13935,-731,223,-15531,0,547,-13371,-6711,1102,-18804,-13519,419,-18094,-13519,419,-16203,-10879,818,-29867,-2091,3084,-26255,-2089,2051,-15313,-2361,753,-15531,-13519,547,-22424,-1798,1488,-24556,-2579,2074,-22174,-2847,1802,-13278,0,336,-30774,-2879,902,-32220,-3369,3726,-20121,0,402,-21063,-9717,2203,-18094,0,419,-23318,-9923,2562,-25910,-10298,2492,-20044,-3243,1462,-17893,-3505,1234,-30338,-5034,266,-32565,-5153,2226,-18394,-9400,1674,-15629,-8339,1367,-28736,-9948,2375,-31945,-9238,1884,-18298,-4842,1642,-15923,-6541,1542,-25055,-4687,2779,-22112,-4443,2174,-24094,-6087,2967,-21419,-5733,2322,-32356,-5340,3669,-31217,-5683,4356,-27065,-3188,2820,-32236,-7212,1703,-31834,-8719,4139,-25116,-3523,2454,-20056,-4344,1775,-18236,-7610,1845,-32767,-6877,3837,-29526,-4158,3728,-22342,-8281,2522,-23891,-8740,2729,-22194,-7144,2567,-20439,-8206,2209,-24174,-7499,2896,-26244,-9116,3065,-18488,-6173,1804,-26851,-7777,3317,-29480,-6971,3819,-28312,-5366,3574,-27069,-4224,3126,-26714,-6287,3357,-31741,-7339,4302,-25522,-6911,3158,-20333,-6984,2180,-25923,-10746,1788,-28423,-9098,-143};
static const uint16_t ct27[] = {0,1,2,3,4,5,6,7,1,3,8,9,10,8,3,7,11,2,12,5,0,12,10,3,7,13,14,15,2,16,17,12,15,15,0,2,16,18,15,17,15,18,0,5,1,6,1,5,19,9,8,19,8,20,21,7,6,7,2,1,3,5,12,11,22,2,23,16,2,18,24,17,12,0,15,2,22,23,7,14,11,23,22,25,21,13,7,12,26,10,24,27,28,28,29,10,29,20,8,20,30,19,31,32,33,34,35,36,37,38,39,40,32,41,41,32,31,38,37,42,41,43,40,42,37,35,44,13,21,24,28,17,28,26,17,10,26,28,29,8,10,33,45,46,33,47,48,35,49,50,9,51,52,51,53,52,47,54,55,6,5,56,57,58,59,40,60,61,47,46,62,63,44,21,59,21,6,64,65,66,62,9,19,54,19,67,64,32,61,68,69,60,33,46,47,33,48,70,35,50,36,36,50,71,47,55,72,36,73,74,57,59,50,46,75,76,68,77,78,47,62,54,63,21,59,4,52,56,50,59,79,59,80,79,42,81,82,62,19,54,54,67,55,17,26,12,19,30,67,45,66,75,59,6,80,33,32,64,33,64,45,4,3,9,62,76,51,76,83,51,52,53,84,66,85,86,66,86,75,86,87,88,80,56,84,6,56,80,69,89,90,61,60,91,92,82,93,51,83,53,66,65,94,66,94,85,85,87,86,86,88,95,64,66,45,76,95,83,75,95,76,79,80,96,65,61,91,78,92,97,60,69,98,71,99,100,101,99,102,103,99,101,75,86,95,73,100,104,71,79,102,79,96,102,74,104,93,105,53,83,84,105,96,93,106,107,108,90,107,85,94,109,104,100,106,110,108,107,90,111,107,98,90,108,104,106,93,107,106,110,109,98,108,94,91,109,110,85,108,112,106,103,106,100,103,98,109,91,111,93,107,85,109,108,85,110,87,103,100,99,103,101,87,71,100,73,71,102,99,101,113,88,113,96,105,88,105,83,112,87,110,101,88,87,101,102,113,102,96,113,113,105,88,88,83,95,103,87,112,110,106,112,53,105,84,9,52,4,77,92,78,40,61,32,64,61,65,68,60,40,36,71,73,34,114,42,46,76,62,68,78,69,4,56,5,50,79,71,42,82,115,45,75,46,62,51,9,52,84,56,80,84,96,69,90,98,92,93,97,65,91,94,89,97,90,60,98,91,73,104,74,81,93,82,49,57,50,58,63,59,70,31,33,72,48,47,97,111,90,97,93,111,42,35,34,36,74,34,78,97,89,78,89,69,74,93,81,114,81,42,74,81,114,74,114,34};
-static const int16_t cv28[] = {-6963,-6853,110,-9428,-8353,506,-5633,-9256,-213,-10405,-3859,495,-12687,-5083,1031,-10319,-6325,621,-12448,-1590,641,-13912,-3629,1257,-9047,-1594,105,-6965,-4750,252,-12956,-8941,843,-5090,-2929,557,-22237,-1168,3246,-24327,-1526,3526,-21467,-1713,2989,-25127,-11883,2027,-20986,-13534,-135,-22756,-11871,1709,-22512,-13533,-497,-24168,-12390,-312,-23813,-13535,-873,-24970,-1062,3692,-25621,-1295,3755,-25782,-11268,813,-23542,-12535,651,-22702,-2424,3068,-19927,-2400,2558,-22389,-3088,2871,-19557,-3345,2314,-22079,-3874,2658,-20025,-4421,2193,-17046,-3924,1769,-26039,-2047,3643,-24831,-3703,3097,-27715,-3142,3622,-24430,-2047,3418,-26028,-1514,3761,-27600,-4663,3323,-23523,-4870,2683,-26072,-5958,2873,-23058,-6118,2388,-27335,-1566,3916,-26935,-2300,3701,-17986,-1442,2163,-19324,-877,2571,-15298,-5021,1431,-14088,-6592,1202,-15278,-946,1337,-17000,-597,1846,-16419,-2431,1776,-26255,-1024,3861,-27321,-1051,3869,-20545,-11270,1315,-25257,-9080,2600,-26561,-11208,3064,-29446,-10595,4076,-29378,-10110,2299,-16819,-8064,1258,-20825,-8861,1742,-17181,-6199,1427,-17845,-5000,1714,-20468,-7009,1837,-28816,-1705,3291,-29392,-1288,3988,-27345,-7180,3138,-29505,-7882,4042,-27796,-9942,3718,-31534,-8504,4136,-24114,-7313,2409,-32020,-6207,2391,-20342,-5600,2030,-32531,-3476,3898,-32767,-5528,3739,-31446,-5451,4354,-31958,-1683,4315,-31578,-2325,2989,-28420,-2067,3968,-31721,-3350,4475,-30378,-2477,4294,-32246,-3965,2700,-29973,-4074,3993,-29820,-5180,3880,-29094,-6110,3684,-29822,-4564,2200,-23945,-9024,-20719,-24586,-7268,-20849,-24600,-6373,-24845,-23841,-8299,-13257,-24557,-6382,-13423,-24513,-6763,-16040,-24335,-8455,-11650,-24547,-6493,-10732,-23980,-8365,-9212,-23858,-9615,-6834,-24284,-6393,-6577,-24224,-9090,-5410,-24094,-8380,-4151,-24419,-6868,-3526,-24805,-6502,-3709,-24778,-6127,-2699,-24320,-5069,-17990,-25132,-2933,-21757,-25167,-2986,-11405,-24628,-3150,-9055,-24524,-4158,-13429,-24825,-5919,-9106,-24877,-4675,-6113,-24906,-3155,-6744,-24699,-4179,-3538,-27228,-874,-11954,-26757,-1508,-16916,-25130,-2751,-14167,-23606,-11045,-13130,-23451,-13535,-6936,-23501,-13535,-3515,-23391,-11744,-2816,-23845,-10018,-3987,-24640,-3605,-19040,-25075,-2848,-19238,-26878,-1029,-3063,-25135,-2629,-5275,-24974,-2678,-3742,-24009,-8777,-15954,-24953,-2425,-16398,-24105,-8656,-2465,-23850,-9679,-2916,-27072,-1028,-1654,-24940,-2692,-2562,-24618,-4337,-324,-23457,-11598,-2000,-24789,-6215,-251,-24617,-7433,-1712,-27276,-276,-1425,-8183,-1401,12080,-8685,242,13662,-11529,-202,13486,-9297,-739,11346,-11151,-696,11477,-10857,7,8303,-13299,2199,12922,-14470,-271,12326,-14217,1625,6280,-12788,1652,5086,-10950,1247,4638,-4805,995,12035,-4247,2926,12862,-3422,5636,11742,-7444,3196,12394,668,3253,11245,483,6288,11559,-5555,665,9582,-8721,69,7859,-5355,-115,10704,-3418,968,11744,-10556,2538,12725,-6110,6410,12174,-9869,713,2330,-10092,-558,1076,-6885,-364,1498,-4693,410,3010,-12937,619,1542,-13528,-123,1049,-11965,581,1179,-12144,-350,658,-10031,-295,132,-21003,856,3807,-25823,226,4296,-23883,-427,3703,-3430,331,5161,-7919,1059,3745,-4459,427,6067,-12714,852,2498,-3095,-216,8928,-21347,1375,4623,-23575,1385,5089,-11178,-1396,12396,-15795,286,12758,-13884,128,9043,-13266,53,11369,-15843,670,11733,-3243,273,10417,-11741,525,1939,-26286,-777,3724,-5646,-6521,63,-8683,-1466,873,-3387,-5223,179,-26574,-851,3721,-26874,-792,1172,-5618,-2385,1172,-14305,279,1921,-21116,-586,3117,-27878,-3213,3164,-26809,-4671,2836,-27140,-1887,3402,-26234,-2857,2824,-26693,-3216,3209,-26679,-7431,1652,-26876,-1527,1817,-25081,-9631,-395,-24641,-9714,-1855,-24249,-11590,-1047,-25158,-8744,-1028,-25547,-4529,2512,-25946,-6303,2079,-25715,-7639,444,-27629,-1095,-390,-25466,-3175,599,-19082,331,3079,-16034,1673,3470,-16386,2124,4838,-17833,-205,2313,-20770,948,9084,-18352,424,8965,-19930,1843,11796,-19081,2191,5886,-17557,1876,11812,-17568,1535,12473,-15606,-57,1514,-16105,361,2307,-15867,843,8956,-14267,2346,5068,-16009,2177,6167,-14052,1626,3673,-29588,-2815,2684,-29560,-6622,1464,-28520,-8311,1284,-27319,-9716,1101};
-static const uint16_t ct28[] = {0,1,2,3,4,5,3,6,7,8,6,3,9,5,0,9,8,3,0,5,1,10,1,5,3,5,9,9,11,8,12,13,14,15,16,17,18,19,20,21,22,13,21,13,12,19,18,23,24,18,16,14,25,26,26,27,28,27,29,28,28,29,30,28,30,31,32,33,27,32,34,33,35,36,32,33,37,38,39,40,38,32,41,42,14,43,44,7,31,45,4,45,46,4,46,5,43,47,48,43,48,44,43,49,47,10,5,46,50,51,36,43,26,49,49,7,6,35,13,36,22,36,13,35,32,25,25,32,27,32,42,34,34,37,33,39,38,37,33,38,29,14,26,43,14,44,12,17,52,53,54,55,56,52,57,58,49,6,47,10,46,57,57,46,59,14,13,35,14,35,25,4,3,7,49,28,31,45,60,59,31,60,45,36,51,41,31,30,60,58,57,61,32,36,41,51,62,63,53,64,65,27,33,29,25,27,26,66,65,67,53,58,68,39,64,68,56,67,69,70,60,30,59,70,61,71,72,73,71,74,75,34,42,76,67,65,73,77,78,71,75,79,71,63,74,78,67,72,69,77,73,80,76,63,78,42,41,76,80,34,78,81,73,82,73,65,82,63,76,41,79,69,71,34,76,78,34,80,37,82,65,64,53,65,66,82,39,37,40,61,70,38,70,30,82,64,39,81,37,80,39,68,40,68,61,40,40,70,38,38,30,29,82,37,81,80,73,81,60,70,59,7,45,4,17,53,66,15,56,23,26,28,49,52,58,53,49,31,7,45,59,46,57,59,61,58,61,68,62,75,63,51,63,41,55,67,56,53,68,64,83,79,75,83,69,79,15,24,16,15,54,56,84,85,86,87,88,89,88,87,90,91,90,92,93,94,92,94,95,96,97,98,94,98,97,99,100,101,86,102,91,103,91,102,104,105,106,107,108,98,99,109,110,111,112,113,90,93,114,95,114,115,116,85,100,86,100,85,89,89,88,100,92,105,91,94,106,92,106,94,98,101,117,118,109,102,103,119,120,121,84,112,122,113,92,90,85,84,89,122,89,84,122,112,89,87,89,112,100,117,101,123,88,104,88,90,104,88,123,100,103,91,105,105,107,103,106,98,108,112,90,87,113,93,92,93,113,114,114,116,95,91,104,90,106,105,92,123,117,100,117,123,118,111,123,104,120,106,108,120,107,106,108,121,120,123,110,118,111,110,123,102,111,104,102,109,111,95,94,93,124,96,116,124,116,125,126,119,121,126,121,127,127,121,108,127,108,128,129,115,114,130,99,97,130,97,131,125,116,115,125,115,129,132,119,126,128,108,99,128,99,130,124,131,97,124,97,96,96,97,94,116,96,95,133,134,135,136,137,138,139,140,135,141,142,138,143,138,142,144,145,134,146,147,145,134,145,147,145,148,149,150,136,151,144,152,153,144,148,145,154,139,135,147,146,155,156,157,158,156,158,159,160,161,162,162,163,164,165,166,167,168,169,159,168,170,169,143,142,171,169,170,151,151,170,172,173,166,165,166,173,174,175,135,140,176,140,139,177,178,179,177,138,178,144,134,133,135,134,154,149,155,146,146,145,149,153,148,144,150,172,180,151,172,150,138,151,136,147,155,154,154,134,147,156,181,157,156,171,181,159,169,156,166,182,167,156,143,171,172,170,168,169,143,156,169,151,143,151,138,143,144,133,152,137,178,138,183,0,2,9,0,183,184,158,157,185,183,2,161,47,6,6,163,161,182,186,21,11,9,185,6,8,164,187,186,182,50,36,22,167,182,21,188,158,184,188,184,8,184,157,164,157,162,164,157,181,162,181,171,160,160,171,189,190,167,21,175,137,136,175,136,133,140,176,179,136,150,152,180,153,152,178,137,175,175,133,135,83,191,192,193,187,194,191,193,195,195,192,191,195,194,192,192,196,83,194,195,193,194,187,197,198,199,200,201,199,198,192,202,203,203,204,196,194,197,205,202,192,194,141,138,177,188,8,11,184,164,8,181,160,162,160,189,161,190,21,12,140,179,178,136,152,133,180,152,150,178,175,140,197,132,205,201,198,196,192,203,196,194,205,206,202,194,206,196,204,201,165,167,207,165,208,209,190,210,207,190,12,44,211,212,213,211,174,214,213,215,216,173,209,214,210,217,218,212,219,215,210,44,48,210,48,217,209,220,221,212,214,221,208,222,220,208,207,218,47,161,217,217,161,189,217,189,218,189,171,222,189,222,218,222,171,142,220,142,141,141,177,219,219,177,179,179,176,216,165,207,208,165,209,173,190,207,167,190,44,210,211,214,212,173,214,174,210,218,207,212,215,213,209,221,214,212,221,219,9,183,185,208,220,209,208,218,222,47,217,48,222,142,220,220,141,221,141,219,221,219,179,215,179,216,215,164,163,6,161,163,162,186,50,21,129,20,200,129,200,199,129,199,125,125,199,201,125,201,124,131,124,201,131,201,204,204,203,130,204,130,131,130,203,202,130,202,128,128,202,206,128,206,127,127,206,205,127,205,126,126,205,132,132,197,187,187,193,186,50,22,21,50,186,51,186,193,51,51,193,62,193,191,62,62,223,75,83,223,191,83,224,69,225,224,196,225,226,56,23,198,200,23,226,198,20,19,200,19,23,200,196,198,225,56,69,225,198,226,225,56,226,23,69,224,225,196,224,83,75,223,83,191,223,62,71,73,77,80,78,77,23,24,15,23,18,24,17,54,15,17,66,54,66,55,54,66,67,55,73,72,67,69,72,71,75,74,63,78,74,71};
+static const int16_t cv28[] = {-6963,-6853,110,-9428,-8353,506,-5633,-9256,-213,-10405,-3859,495,-12687,-5083,1031,-10319,-6325,621,-12956,-8941,843,-10821,-10831,482,-12448,-1590,641,-13912,-3629,1257,-9047,-1594,105,-9444,-13535,15,-6965,-4750,252,-12359,-13535,270,-11253,-13535,36,-13571,-11728,613,-5055,-13535,-332,-5090,-2929,557,-22237,-1168,3246,-24327,-1526,3526,-21467,-1713,2989,-25127,-11883,2027,-20986,-13534,-135,-22756,-11871,1709,-22512,-13533,-497,-24168,-12390,-312,-23813,-13535,-873,-24970,-1062,3692,-25621,-1295,3755,-25782,-11268,813,-23542,-12535,651,-13295,-13535,336,-22702,-2424,3068,-19927,-2400,2558,-22389,-3088,2871,-19557,-3345,2314,-22079,-3874,2658,-20025,-4421,2193,-17046,-3924,1769,-25108,-2704,3354,-24831,-3703,3097,-27715,-3142,3622,-24430,-2047,3418,-26039,-2047,3643,-26028,-1514,3761,-27600,-4663,3323,-23523,-4870,2683,-26072,-5958,2873,-23058,-6118,2388,-27335,-1566,3916,-26935,-2300,3701,-17986,-1442,2163,-19324,-877,2571,-20745,-12587,893,-20141,-13534,402,-20545,-11270,1315,-15298,-5021,1431,-14088,-6592,1202,-15278,-946,1337,-17000,-597,1846,-16419,-2431,1776,-26255,-1024,3861,-27321,-1051,3869,-15550,-13535,547,-16700,-10767,917,-25257,-9080,2600,-26561,-11208,3064,-29446,-10595,4076,-29378,-10110,2299,-18116,-13535,419,-20825,-8861,1742,-16819,-8064,1258,-17181,-6199,1427,-17845,-5000,1714,-20468,-7009,1837,-28816,-1705,3291,-29392,-1288,3988,-27345,-7180,3138,-29505,-7882,4042,-27796,-9942,3718,-31534,-8504,4136,-24114,-7313,2409,-32020,-6207,2391,-20342,-5600,2030,-32531,-3476,3898,-32767,-5528,3739,-31446,-5451,4354,-31958,-1683,4315,-31578,-2325,2989,-28420,-2067,3968,-31721,-3350,4475,-30378,-2477,4294,-32246,-3965,2700,-29973,-4074,3993,-29820,-5180,3880,-29094,-6110,3684,-29822,-4564,2200,-23829,-9049,-25714,-24560,-5166,-28499,-24383,-6261,-29407,-23945,-9024,-20719,-24586,-7268,-20849,-24600,-6373,-24845,-23841,-8299,-13257,-24557,-6382,-13423,-24513,-6763,-16040,-24335,-8455,-11650,-24547,-6493,-10732,-23980,-8365,-9212,-23858,-9615,-6834,-24284,-6393,-6577,-24224,-9090,-5410,-24094,-8380,-4151,-24419,-6868,-3526,-24805,-6502,-3709,-24778,-6127,-2699,-24713,-2879,-28073,-25053,-2859,-25713,-24553,-3143,-24587,-25132,-2933,-21757,-24320,-5069,-17990,-25167,-2986,-11405,-24628,-3150,-9055,-24524,-4158,-13429,-24825,-5919,-9106,-24877,-4675,-6113,-24906,-3155,-6744,-24699,-4179,-3538,-26757,-1508,-16916,-27502,-1254,-15760,-27290,-808,-19274,-27491,-669,-13682,-25130,-2751,-14167,-27228,-874,-11954,-27584,-650,-7134,-27342,-448,-9908,-27043,-1367,-6173,-23642,-10893,-24598,-23694,-11584,-27224,-23518,-13535,-26647,-23141,-11897,-21049,-24092,-9181,-23866,-23606,-11045,-13130,-23674,-10615,-16100,-23472,-13535,-16425,-23669,-10528,-18898,-23451,-13535,-6936,-23501,-13535,-3515,-23391,-11744,-2816,-23845,-10018,-3987,-23226,-13535,-23708,-23333,-13535,-19959,-23199,-13535,-12646,-24640,-3605,-19040,-25075,-2848,-19238,-26565,-1727,-26327,-27374,-1403,-23346,-26878,-1029,-3063,-25135,-2629,-5275,-24974,-2678,-3742,-27363,-422,-2544,-27517,-680,-4135,-24009,-8777,-15954,-25083,-5370,-29771,-24355,-9733,-29649,-24099,-8769,-28318,-23492,-11284,-29642,-23838,-13535,-29775,-24953,-2425,-16398,-26640,-1931,-27404,-26655,-2001,-29816,-24967,-3166,-29565,-24105,-8656,-2465,-23850,-9679,-2916,-27072,-1028,-1654,-24940,-2692,-2562,-24618,-4337,-324,-23457,-11598,-2000,-23258,-13535,-1773,-24789,-6215,-251,-24617,-7433,-1712,-27276,-276,-1425,-8183,-1401,12080,-8685,242,13662,-11529,-202,13486,-9297,-739,11346,-11151,-696,11477,-10857,7,8303,-23824,1740,12693,-23017,2142,13030,-24714,2995,12260,-13299,2199,12922,-14470,-271,12326,-20770,948,9084,-22100,1713,11795,-23267,368,8954,-24448,758,12153,-25470,730,6939,-24667,694,10928,-25884,215,9731,-21639,3651,12882,-23713,4096,12615,-22746,5837,12506,-24041,5944,12291,-14217,1625,6280,-12788,1652,5086,-10950,1247,4638,-25292,5886,11780,-4805,995,12035,-4247,2926,12862,-3422,5636,11742,-7444,3196,12394,668,3253,11245,483,6288,11559,-3243,273,10417,-3095,-216,8928,-1725,-114,10273,-5555,665,9582,-8721,69,7859,-5355,-115,10704,-3418,968,11744,-10556,2538,12725,-10444,6651,11869,-13001,6464,11681,-13546,4005,12553,-6110,6410,12174,-4693,410,3010,-2287,-996,1778,901,-412,2656,205,-713,1894,-1924,-341,3999,-510,399,5496,-9869,713,2330,-10092,-558,1076,-6885,-364,1498,-12937,619,1542,-13528,-123,1049,-11965,581,1179,-12144,-350,658,-10031,-295,132,-21003,856,3807,-25823,226,4296,-23883,-427,3703,-26865,-139,4125,-26177,-411,2657,-26286,-777,3724,-26991,429,4458,-27589,399,5496,-3430,331,5161,-7919,1059,3745,-4459,427,6067,-283,334,9888,264,17,7994,-12714,852,2498,-21347,1375,4623,-23575,1385,5089,-26549,693,6096,-27248,565,5220,-259,127,11184,-27362,-671,10554,-27362,334,9888,-11178,-1396,12396,-15795,286,12758,-13884,128,9043,-13266,53,11369,-15843,670,11733,-26815,17,7994,-26522,402,8523,-26411,3281,11225,-21816,1011,12672,-19672,2829,12938,-19967,4759,12462,-19299,7277,11976,-26588,6288,11559,-11741,525,1939,-24588,822,5906,-27338,149,11169,-283,-671,10554,-3193,-2175,1440,-5618,-2385,1172,-5646,-6521,63,-8683,-1466,873,-3387,-5223,179,-466,-8205,-224,377,-5373,323,-2514,-2587,853,-679,-10793,-298,600,-4052,666,-26574,-851,3721,205,-792,1172,-2133,-1151,910,8,-13535,-99,-26874,-792,1172,-26874,-713,1894,-14305,279,1921,-21116,-586,3117,-27878,-3213,3164,-26809,-4671,2836,-27140,-1887,3402,-26234,-2857,2824,-26693,-3216,3209,-26679,-7431,1652,-26876,-1527,1817,-25081,-9631,-395,-24641,-9714,-1855,-24249,-11590,-1047,-25158,-8744,-1028,-25547,-4529,2512,-25946,-6303,2079,-25715,-7639,444,-27629,-1095,-390,-25466,-3175,599,-19082,331,3079,-16034,1673,3470,-16386,2124,4838,-17833,-205,2313,-17785,4946,12740,-18352,424,8965,-19930,1843,11796,-17507,3104,12859,-15405,4850,12716,-19081,2191,5886,-19935,1377,12627,-17568,1535,12473,-17557,1876,11812,-15210,2981,12561,-17123,7421,12057,-14803,7325,11999,-15606,-57,1514,-16105,361,2307,-15867,843,8956,-14267,2346,5068,-16009,2177,6167,-14052,1626,3673,-29588,-2815,2684,-29560,-6622,1464,-28520,-8311,1284,-27319,-9716,1101};
+static const uint16_t ct28[] = {0,1,2,3,4,5,6,7,1,3,8,9,10,8,3,7,11,2,12,5,0,12,10,3,7,13,14,0,5,1,6,1,5,15,7,6,7,2,1,3,5,12,11,16,2,7,14,11,15,13,7,12,17,10,18,19,20,21,22,23,24,25,26,27,28,19,27,19,18,25,24,29,30,24,22,31,13,15,20,32,33,33,34,35,34,36,35,35,36,37,35,37,38,39,40,34,39,41,40,42,43,39,42,44,43,40,45,46,47,48,46,43,49,50,20,51,52,53,54,55,9,38,56,4,56,57,4,57,5,51,58,59,51,59,52,51,60,58,6,5,57,61,62,44,51,33,60,63,31,15,64,15,6,60,9,8,42,19,44,28,44,19,42,39,32,32,39,34,39,43,50,39,50,41,41,45,40,47,46,45,40,46,36,20,33,51,20,52,18,23,53,55,23,55,65,66,67,68,69,64,55,63,15,64,55,64,70,64,71,70,60,8,58,64,6,71,6,57,71,71,57,72,20,19,42,20,42,32,4,3,9,60,35,38,56,73,72,38,73,56,44,62,49,38,37,73,70,71,74,43,44,49,62,75,76,65,77,78,34,40,36,32,34,33,79,78,80,65,70,81,47,77,81,68,80,82,83,73,37,72,83,74,84,85,86,84,87,88,41,50,89,80,78,86,90,91,84,88,92,84,76,87,91,80,85,82,90,86,93,89,76,91,50,49,89,93,41,91,94,86,95,86,78,95,76,89,49,92,82,84,41,89,91,41,93,45,95,78,77,65,78,79,95,47,45,48,74,83,46,83,37,95,77,47,94,45,93,47,81,48,81,74,48,48,83,46,46,37,36,95,45,94,93,86,94,73,83,72,9,56,4,23,65,79,21,68,29,33,35,60,55,70,65,60,38,9,56,72,57,71,72,74,70,74,81,75,88,76,62,76,49,67,80,68,65,81,77,54,69,55,69,63,64,96,92,88,96,82,92,21,30,22,21,66,68,97,98,99,100,101,102,103,104,105,104,103,106,107,106,108,109,110,108,110,111,112,113,114,110,114,113,115,116,98,117,118,102,119,120,119,102,121,107,122,107,121,123,124,125,126,127,114,115,128,129,130,131,128,132,131,132,133,128,131,129,134,135,136,137,97,138,137,138,139,137,140,141,142,143,144,145,144,143,142,146,106,109,147,111,147,148,149,101,120,102,120,101,105,105,104,120,108,124,107,110,125,108,125,110,114,150,140,137,150,137,139,151,140,150,144,145,151,144,152,142,146,142,152,119,153,154,155,116,117,156,155,118,155,117,118,130,118,119,130,119,154,154,128,130,133,121,122,135,122,136,122,126,136,157,158,159,157,160,161,162,100,145,143,162,145,143,142,162,146,108,106,99,163,164,165,164,166,166,138,165,138,166,167,165,99,164,97,99,165,97,141,102,100,102,141,101,100,105,162,105,100,162,142,105,103,105,142,98,118,117,98,102,118,120,153,119,168,104,123,104,106,123,104,168,120,122,107,124,124,126,122,125,114,127,161,134,136,138,97,165,137,141,97,140,100,141,140,145,100,142,106,103,146,109,108,109,146,147,147,149,111,98,97,102,107,123,106,125,124,108,151,145,140,168,153,120,153,168,154,132,168,123,158,125,127,158,126,125,127,159,158,155,169,116,130,156,118,168,128,154,132,128,168,133,122,135,121,132,123,121,133,132,136,158,161,158,136,126,157,161,158,111,110,109,170,171,116,116,171,98,99,98,163,167,139,138,163,98,171,172,112,149,172,149,173,174,157,159,174,159,175,175,159,127,175,127,176,177,148,147,177,147,178,179,115,113,179,113,180,173,149,148,173,148,177,181,160,157,181,157,174,176,127,115,176,115,179,172,180,113,172,113,112,112,113,110,149,112,111,182,183,184,185,186,187,188,189,190,191,192,184,193,194,195,190,196,188,197,198,199,200,201,189,201,202,203,204,205,187,206,187,205,207,190,201,208,209,183,210,211,209,183,209,211,209,212,213,214,215,216,217,185,218,208,219,220,208,212,209,221,191,184,222,223,224,221,225,222,211,210,225,226,227,228,228,227,229,230,228,231,232,233,234,226,234,227,232,234,226,235,236,237,237,238,239,240,241,242,243,244,245,243,245,241,246,243,241,243,247,244,248,230,231,248,249,226,248,250,249,215,248,251,248,231,252,206,205,253,249,250,218,218,250,215,254,241,240,241,254,255,241,197,256,256,257,246,256,197,199,212,220,258,199,259,260,261,184,192,262,192,191,195,255,193,263,264,265,266,267,260,196,190,268,263,187,264,208,183,182,184,183,221,189,269,270,188,196,269,201,190,189,201,203,207,200,202,201,200,271,202,271,272,202,200,270,271,207,273,268,268,190,207,213,225,210,210,209,213,220,212,208,217,215,214,218,215,217,187,218,185,221,222,191,191,222,224,211,225,221,221,183,211,226,228,230,232,274,233,232,253,274,226,249,232,241,245,242,232,206,253,246,247,243,247,257,266,226,230,248,215,250,248,249,206,232,249,218,206,218,187,206,241,275,197,208,182,219,186,264,187,195,275,255,195,194,198,268,276,196,199,198,259,269,189,188,267,199,260,198,197,195,215,251,277,278,234,279,234,278,227,280,0,2,12,0,280,281,234,233,282,2,283,282,280,2,283,284,282,236,58,8,285,17,282,286,283,2,285,282,284,284,287,285,8,238,236,245,288,27,17,12,282,2,16,286,287,289,290,290,285,287,8,10,239,286,16,291,292,288,245,61,44,28,293,245,244,242,245,27,279,234,281,289,229,227,290,227,278,278,279,17,279,281,10,281,233,239,233,237,239,233,274,237,274,253,235,235,253,294,295,242,27,216,277,258,261,186,185,261,185,182,269,196,198,192,262,265,198,196,276,185,217,219,214,220,219,258,220,214,264,186,261,261,182,184,96,296,297,298,292,299,296,298,300,300,297,296,300,299,297,297,301,96,299,300,298,299,292,302,303,304,305,306,304,303,297,307,308,308,309,301,299,302,310,307,297,299,200,189,270,204,187,263,241,256,246,215,277,216,289,227,290,290,278,285,278,17,285,279,10,17,281,239,10,274,235,237,235,294,236,295,27,18,293,292,245,269,198,194,192,265,264,198,276,259,185,219,182,214,219,217,258,214,216,264,261,192,302,181,310,306,303,301,297,308,301,299,310,311,307,299,311,301,309,306,240,242,312,240,313,314,295,315,312,272,271,316,270,316,271,295,18,52,193,317,318,270,319,316,319,320,316,193,255,321,194,318,322,318,323,322,318,324,323,270,269,322,270,322,319,319,322,323,319,323,325,254,314,321,326,316,320,326,320,327,319,325,320,315,328,329,317,330,324,315,52,59,315,59,328,314,331,332,317,321,332,313,333,331,313,312,329,58,236,328,328,236,294,328,294,329,294,253,333,294,333,329,333,253,205,331,205,204,204,263,330,330,263,265,265,262,323,262,191,325,325,191,224,320,224,223,240,312,313,240,314,254,295,312,242,272,316,326,295,52,315,193,318,194,193,321,317,194,322,269,254,321,255,315,329,312,317,324,318,314,332,321,317,332,330,12,280,282,313,331,314,313,329,333,58,328,59,333,205,331,331,204,332,204,330,332,330,265,324,265,323,324,262,325,323,325,224,320,320,223,327,248,252,251,256,199,267,256,267,266,266,257,256,246,257,247,239,238,8,236,238,237,288,61,27,178,26,305,178,305,177,177,305,304,177,304,173,173,304,306,173,306,172,180,172,306,180,306,309,309,308,179,309,179,180,179,308,307,179,307,176,176,307,311,176,311,175,175,311,310,175,310,174,174,310,181,181,302,292,116,169,170,292,298,288,61,28,27,61,288,62,288,298,62,62,298,75,298,296,75,75,334,88,96,334,296,96,335,82,336,335,301,336,337,68,29,303,305,29,337,303,26,25,305,25,29,305,301,303,336,68,82,336,303,337,336,68,337,29,82,335,336,301,335,96,88,334,96,296,334,75,84,86,90,93,91,90,29,30,21,29,24,30,22,54,53,22,53,23,197,275,195,255,275,241,23,66,21,23,79,66,79,67,66,79,80,67,86,85,80,82,85,84,88,87,76,91,87,84};
static const int16_t cv29[] = {-25164,876,5239,-23606,565,4354,-22744,588,3542,-11042,-878,13475,-13244,-826,13632,-12895,8,9861,-24417,1268,10792,-26248,2035,14008,-27217,604,10726,-29137,1026,8951,-29297,824,12979,-30740,255,11559,-16885,1930,7459,-15188,1963,6041,-13006,1482,5508,-3851,324,12372,-3676,-257,10604,-2049,-136,12201,-6598,789,11381,-10358,82,9334,-5574,487,3575,-2717,-1183,2111,1070,-489,3155,243,-847,2249,-2285,-405,4750,-606,474,6527,-11723,847,2767,-11997,-688,1266,-8177,-432,1779,-22894,1959,5070,-26574,1583,6416,-25036,956,5598,-29812,774,4914,-31090,-488,3155,-27316,779,5408,-32767,474,6527,-30455,1274,5284,-4074,393,6130,-9405,1258,4448,-5296,507,7206,-336,396,11744,313,20,9494,-15125,1005,2927,-23207,2426,6149,-25246,2604,7032,-30563,966,8111,-31636,1026,6937,-32497,-797,12535,-32497,396,11744,-16490,152,10740,-15755,63,13502,-18817,795,13935,-31848,20,9494,-31426,465,10203,-13959,628,2317,-26844,1547,8396,-336,-797,12535,-3793,-2583,1711,-6673,-2833,1392,-10320,-1750,1038,-28213,556,3338,-31918,-941,1392,-31918,-847,2249,243,-941,1392,-2533,-1368,1081,-6046,-3478,662,-10770,-1857,105,-11896,-337,142,-14229,740,1411,-15377,769,1805,-17085,171,2202,-21867,376,3821,-308,151,13283,-13276,-1658,14723,-9719,-1664,14347,-6360,-136,12713,-2986,-3073,1013,-16078,-100,1151,-17186,-322,14640,-32469,176,13265,-21310,1033,3913,-18893,2072,4106,-19343,2587,5751,-20245,93,2713,-21088,2,2748,-21688,567,10647,-23670,2189,14010,-22078,2925,7022,-18481,168,1476,-18947,194,2342,-18845,1001,10637,-20852,2228,14029,-19576,-277,1791,-16945,2787,6020,-18995,2597,7325,-16683,1942,4369,-18759,340,15152,-20866,1823,14814,-26191,563,4928};
static const uint16_t ct29[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,5,14,5,13,15,16,17,18,3,19,20,21,22,22,21,23,24,22,25,26,27,28,20,28,21,26,28,20,29,30,31,32,33,34,32,34,30,32,35,33,36,32,30,37,24,25,37,38,20,37,39,38,16,37,40,37,25,41,14,13,42,38,39,19,19,39,16,43,30,29,30,43,44,30,9,45,45,46,36,45,9,11,11,47,48,8,44,6,49,50,51,52,53,48,49,5,50,18,16,15,19,16,18,5,19,3,20,22,24,26,54,27,26,42,54,20,38,26,30,34,31,26,14,42,36,35,32,35,46,52,20,24,37,16,39,37,38,14,26,38,19,14,19,5,14,30,55,9,4,50,5,8,55,44,8,7,10,11,10,47,53,11,48,10,9,8,16,40,56,57,28,58,28,57,21,59,28,27,34,60,0,61,60,34,62,34,33,31,34,0,58,28,59,63,23,21,64,21,57,57,58,65,58,59,66,59,27,67,27,68,67,27,54,68,54,42,69,69,42,70,71,31,0,17,56,72,73,4,3,73,3,74,3,18,75,50,4,73,12,5,49,30,45,36,16,56,17,63,21,64,64,57,76,57,65,76,58,66,65,59,67,66,54,69,68,69,70,77,71,0,2,62,61,34,78,51,50,10,79,47,3,75,74,15,75,18,72,15,17,50,73,78,29,31,80,29,81,82,71,83,80,71,2,84,6,85,86,6,44,87,43,82,87,29,82,43,43,87,44,83,88,89,85,90,91,83,84,92,71,84,83,82,93,94,85,87,94,81,95,93,81,80,89,83,89,80,88,77,70,70,42,95,95,42,13,93,13,12,12,49,90,12,90,94,90,49,51,51,96,97,29,80,81,71,80,31,6,86,7,6,87,85,85,91,86,83,92,88,82,94,87,85,94,90,81,93,82,81,89,95,88,70,89,70,95,89,95,13,93,93,12,94,90,51,91,51,97,91,37,41,40,45,11,53,45,53,52,52,46,45,36,46,35,60,98,0,9,55,8,44,55,30};
static const int16_t cv30[] = {15238,-24793,3111,24369,-15000,3500,5782,-13024,3651,-14236,27065,2154,-28656,18906,1739,-23319,2577,2965,-8486,-29685,970,5694,31668,2889,-421,15232,1737,6021,19892,3201,-11132,13103,2446,-16572,-5781,2670,-2997,-12450,2579,19880,8068,2043,32767,10225,2320,30353,21552,2379,-32091,1738,1867,-32232,-22083,956,-23323,-27917,-158};
@@ -859,8 +859,8 @@ static const int16_t cv31[] = {-14344,22772,-9554,3616,27949,-9725,-2423,21331,-
static const uint16_t ct31[] = {0,1,2,3,4,5,3,6,7,8,9,10,11,12,13,8,14,9,12,15,13,13,15,16,14,17,18,19,16,15,20,10,16,21,22,18,20,23,10,22,13,24,18,24,9,24,25,9,13,16,10,26,27,21,26,21,28,4,23,29,23,20,19,26,28,30,5,29,19,31,32,19,33,34,30,30,17,14,1,31,35,31,19,35,36,33,14,11,2,12,0,2,11,2,1,35,2,35,12,27,0,11,37,8,4,6,3,38,6,39,40,27,41,42,38,43,44,45,46,47,39,48,49,50,41,47,50,47,51,52,53,49,50,51,54,55,54,56,57,58,59,60,59,61,43,62,56,45,60,61,63,36,37,63,37,40,42,0,27,40,37,6,64,26,65,66,5,32,67,68,32,69,67,31,42,69,1,65,60,45,68,62,43,65,34,60,68,67,62,34,33,57,67,69,55,33,63,52,69,42,50,40,53,52,41,64,45,66,43,38,3,7,4,37,7,6,8,10,23,11,22,21,11,13,22,14,18,9,28,18,17,20,16,19,21,18,28,22,24,18,13,25,24,9,25,10,13,10,25,4,29,5,23,19,29,26,30,65,28,17,30,5,19,32,65,30,34,35,19,15,33,30,14,35,15,12,36,14,8,36,8,37,27,11,21,37,4,7,8,23,4,66,38,3,6,38,39,27,64,41,38,44,48,45,61,46,38,48,39,45,47,41,39,49,53,52,49,58,50,54,55,52,58,57,55,56,62,57,59,60,43,56,44,64,27,26,3,5,66,66,32,68,67,32,31,69,31,1,63,33,36,42,1,0,65,45,64,68,43,66,34,57,60,67,55,62,33,52,57,69,50,55,40,52,63,41,50,42,39,53,40};
static const int16_t cv32[] = {-9382,2912,2130,-11020,277,1181,-8767,1609,1077,-7315,-1656,95,-21986,-5926,117,-22686,-7774,242,-20124,-9151,-21,-26816,-3354,67,-28289,-11317,-409,-24259,-11880,96,-32515,-9686,-264,-31520,-6342,382,-5291,-6607,-226,-7649,-10092,-137,-4923,-11225,-348,-12818,-8262,370,-8959,-4997,-183,-12820,-4300,173,-9233,-8314,-90,-11244,-10884,241,-9573,-13029,444,-10129,-2530,16,-6603,-2388,134,-7533,-15977,125,-3573,-3882,617,-11652,-15977,87,-9265,-15976,188,-28397,-1513,997,-31723,-935,1384,-31257,-4778,787,-25184,-14254,-24,-32767,-12740,-352,-24746,-1108,556,-21760,-3564,823,-22374,-15978,-133,-29283,-15976,208,-21632,-14041,-26,-19174,-2321,290,-16905,-2465,542,-19713,-11298,-3,-17770,-13612,128,-16995,4229,1023,-17194,6399,1272,-19610,5066,517,-17377,-15977,118,-16578,-15977,130,-16848,-9729,361,-14824,-1700,848,-13314,-2178,1123,-13870,-12615,242,-2449,-6397,213,-560,-9686,-264,435,-6342,382,-12161,-1543,983,-11212,-13616,443,-3241,-15978,-432,-1586,-3298,1007,-812,-12740,-352,699,-4778,787,-31955,-15978,-115,-20704,-15978,-58,-21645,2311,109,-19087,2924,477,-14704,-15978,-190,232,-935,1384,-1259,-1574,1074,0,-15978,-115,-10398,5035,1706,-10476,7238,2113,-12128,6459,1744,-13404,4239,1592,-12009,4278,1444,-14914,4327,1299,-13549,6403,1928,-15059,6493,1601,-18210,11813,3135,-22649,10079,2052,-23264,4505,1573,-7457,11579,4674,-9539,11016,3892,-11603,11376,4128,-14308,11789,3356,-27719,9987,3293};
static const uint16_t ct32[] = {0,1,2,2,1,3,4,5,6,7,8,9,7,10,8,10,7,11,12,13,14,15,16,17,16,15,18,19,20,13,16,21,17,22,21,16,20,23,14,24,18,12,24,22,16,20,25,26,27,28,29,7,27,29,30,8,31,7,4,32,32,4,33,34,30,35,34,36,30,9,30,36,30,9,8,37,4,38,4,37,33,39,36,40,36,39,9,39,6,9,41,42,43,44,45,40,39,40,46,47,17,48,15,49,19,46,6,39,9,6,5,9,5,7,10,31,8,50,14,51,50,12,14,51,52,50,12,18,13,19,13,18,18,15,19,48,17,21,48,21,53,54,20,19,6,38,4,1,53,21,20,14,13,16,18,24,23,55,14,56,24,50,57,51,14,14,55,57,56,50,52,52,58,56,35,31,59,31,35,30,7,29,11,36,34,60,61,62,43,40,36,44,63,25,49,60,44,36,3,1,21,54,19,49,24,12,50,58,64,65,65,56,58,49,25,54,21,22,3,20,26,23,57,55,66,4,7,5,46,38,6,54,25,20,45,63,40,40,49,46,46,15,38,17,47,38,38,15,17,40,63,49,46,49,15,67,68,69,70,71,69,72,70,73,41,72,74,41,74,42,42,75,76,77,43,76,68,78,79,69,79,80,68,79,69,73,80,81,74,81,75,0,67,71,1,71,70,53,70,72,47,48,72,47,41,62,37,38,62,37,32,33,32,37,61,41,43,62,61,43,77,67,69,71,70,69,73,72,73,74,42,76,43,77,76,82,69,80,73,73,81,74,74,75,42,0,71,1,1,70,53,53,72,48,47,72,41,47,62,38,37,62,61};
-static const int16_t cv33[] = {-7575,1551,10932,-6835,1533,10945,-6803,2318,10246,-7543,2336,10233,-29207,2276,11317,-29208,1138,11287,-28073,1138,11282,-28072,2276,11312,-23897,2277,11305,-24451,1145,11298,-29177,1175,9919,-30579,2313,9952,-28215,1175,9917,-30580,1175,9922,-24076,2308,9916,-14619,1175,9888,-19073,2227,9932,-6812,2312,9902,-6812,1175,9871,-30115,1166,10281,-30614,1138,11293,-30589,1165,10312,-24870,1164,10326,-24575,1166,10334,-19437,1215,10349,-14386,1139,11221,-6801,1164,10246,-6774,1139,11188,-30614,2276,11324,-30589,2302,10342,-6803,1166,10180,-6805,2305,10138,-6803,2304,10211,-8021,-8055,-18,-8059,-8055,-19,-8027,-7270,-718,-7989,-7270,-717,-6792,-8058,35,-6760,-7273,-664,-6764,-6372,360,-6796,-7157,1059,-7954,1405,10748,-8052,1565,10926,-8054,239,9418,-8033,-934,8098,-8064,-705,8348,-8058,-7079,1091,-8027,-6294,392,-31096,2462,369,-31100,1544,370,-30967,1593,1438,-30963,2413,1438,-30794,2427,3284,-30813,1536,3195,-29912,1540,298,-29909,2458,297,-29911,2409,1319,-29914,1589,1319,-29875,1582,2531,-29857,2474,2619,-29996,1543,9958,-30389,1544,9992,-30609,1544,7010,-30154,1549,8623,-30213,1543,6951,-30690,1543,345,-30686,2461,345,-29920,1542,9952,-29251,1540,9894,-29247,2458,9894,-29916,2460,9952,-6801,2302,10277,-6773,2276,11219,-30039,1168,10201,-30586,1169,10167,-30585,2306,10198,-19432,1213,10325,-19418,1209,10253,-24587,1168,10241,-24833,1166,10236,-29151,2304,10258,-30038,2305,10232,-29152,1167,10228,-30115,2303,10312,-7634,-8056,-1,-7603,-7271,-700,-7756,1518,10886,-7724,2303,10187,-7923,2190,10049,-8020,2350,10227,-7583,232,9431,-6829,221,9453,-7859,-8056,-11,-7827,-7271,-710,-7742,-8056,-6,-7711,-7271,-705,-7965,-1033,7989,-7873,1392,10737,-7842,2177,10038,-7754,235,9426,-7972,-1518,7464,-7778,-1517,7447,-29992,2460,9958,-30385,2462,9992,-30650,1543,342,-30646,2461,342,-30059,1543,8826,-30135,1546,8622,-30077,1538,8618,-29394,1446,8580,-30610,1542,340,-30607,2460,340,-30055,2460,8826,-7174,2312,9062,-7170,1368,9079,-7106,2260,6570,-7032,1379,4174,-7196,2323,9647,-7192,1379,9664,-6816,1398,-256,-6855,2341,-258,-8304,1362,9015,-8308,2306,8997,-8287,1371,8224,-8097,1394,4005,-8328,1373,9598,-8333,2317,9580,-7947,2296,-292,-7908,1353,-291,-8021,1371,9418,-8005,1374,9617,-8009,2318,9599,-7652,1363,-283,-7751,2304,-286,-7691,2307,-284,-7597,1365,-281,-7636,2309,-282,-8086,1370,9383,-8125,1374,9610,-8129,2318,9592,-8030,1370,8236,-8058,1370,8235,-7986,1370,8238,-8051,2307,8998,-8090,2314,9366,-8047,1363,9016,-8026,2315,9401,-8095,-1369,7634,-8099,-1520,7473,-8046,-1171,7843,-8078,-360,7105,-7981,-231,7255,-8022,1026,8717,-8041,81,7632,-8150,-547,6890,-8036,-137,7370,-30256,1543,5981,-30208,1562,6692,-30233,1543,6678,-30206,1543,6950,-30154,1543,7472,-30152,1542,6723,-29604,1540,4771,-30426,1555,2922,-30489,1552,2966,-30533,1591,1389,-30603,1592,1397,-30779,1544,4711,-30153,1542,6942,-25341,1165,10301,-24832,1261,10267,-24550,1232,10287,-24576,1166,10329,-23251,1164,10305,-24584,1168,10267,-6807,-4891,2037,-8035,-4890,2080,-14590,2308,10077,-24068,2307,9979,-14568,2304,10207,-19133,2244,10230,-24041,2302,10184,-24036,2301,10227,-28178,2303,10300,-24006,2296,10456,-14449,2286,10889,-19212,2267,10621,-14385,2276,11252,-29458,2458,6839,-29952,2468,8601,-30133,2460,6939,-30011,2476,8604,-30600,2412,1397,-30567,2411,1393,-7969,2314,8218,-7997,2314,8216,-8049,2314,8214,-8032,-3574,5331,-7986,-3559,5331,-7870,-3522,5331,-7994,-5658,2774,-7956,-5658,2771,-7870,-7091,1086,-7829,-5658,2763,-29600,2458,4771,-30291,2460,4735,-30408,2446,3010,-30530,2411,1389,-8318,-2692,4518,-6915,-2245,4517,-8170,-692,6724,-6879,-665,6591,-6798,1006,8754,-19322,2299,11168,-7612,-1516,7431,-6785,-1498,7347,-7685,-3462,5330,-7523,-3411,5330,-7567,-5654,2750,-7690,-5656,2755,-7744,-7099,1083,-7629,-7106,1080,-29461,1540,6839,-30471,2443,3054,-30776,2462,4711,-30369,2461,4731,-30606,2462,7009,-30209,2461,6951,-30431,2532,8628,-30030,2478,8605,-30186,2460,6947,-30136,1542,6939,-6780,-5657,2712,-6630,-3125,5327,-29978,1152,10007,-29278,988,9990,-29114,1754,9334,-29803,1884,9337,-32731,-7013,-473,-32767,-7004,-474,-32546,-6231,-1141,-32509,-6240,-1138,-31548,-7329,-444,-31326,-6554,-1113,-31064,-5713,-80,-31294,-6514,611,-30376,1099,9846,-30429,1260,10019,-30755,33,8532,-30992,-1071,7125,-30974,-839,7414,-32530,-6110,669,-32301,-5309,-22,-32360,-7112,-464,-32137,-6336,-1114,-30158,1160,9970,-29982,1899,9301,-30203,1851,9177,-30265,2026,9363,-30285,-53,8518,-29533,-191,8495,-32575,-7055,-469,-32352,-6281,-1128,-32463,-7085,-466,-32240,-6309,-1120,-30951,-1181,7001,-30301,1072,9832,-30127,1820,9162,-30456,-22,8523,-30756,-1701,6423,-30898,-1656,6436,-30054,-1925,6356,-31065,-1604,6452,-31140,-1444,6626,-31604,-3019,4561,-31567,-3025,4566,-32048,-4721,2414,-32082,-4710,2416,-31054,-1286,6844,-30884,-521,6190,-30785,-412,6343,-30628,840,7843,-30818,-59,6746,-30965,-686,5976,-30829,-299,6463,-31878,-3997,1800,-30787,-4363,1740,-30274,-2510,4087,-31399,-2305,3945,-29874,-1177,5714,-30997,-814,5817,-29407,615,7808,-31195,-3093,4612,-31701,-4837,2395,-32110,-6248,649,-30991,-5075,2355,-30478,-3222,4701,-30165,1652,6603,-30265,1633,6708,-30459,2426,6870,-30372,2495,6777,-29515,1924,6186,-29711,2718,6349,-29322,2722,6820,-29119,1879,6640,-29877,1571,7227,-30079,2414,7406,-29991,1719,6483,-30198,2562,6657,-30092,1680,6553,-30299,2523,6726,-30040,1700,6517,-30246,2544,6690,-27962,1425,9639,-28020,1427,9558,-27883,1422,9448,-27849,1430,9736,-27850,1436,9421,-27773,1418,9702,-28050,2265,9910,-28164,2263,9815,-28504,1469,8670,-29343,1543,7879,-29742,1565,7117,-29538,2352,8052,-28818,2646,7488,-28223,2272,9738,-27773,1468,9357,-29623,1613,7025,-29574,1634,6986,-29678,1591,7067};
-static const uint16_t ct33[] = {0,1,2,0,2,3,4,5,6,4,6,7,6,8,7,6,9,8,10,11,12,13,11,10,11,14,12,14,15,12,14,16,15,16,17,18,16,18,15,19,5,20,19,20,21,6,5,19,6,19,22,22,23,6,23,9,6,9,23,24,25,9,24,25,24,26,26,27,25,21,20,28,21,28,29,30,18,17,30,17,31,30,31,32,33,34,35,33,35,36,37,38,39,37,39,40,41,42,43,43,44,41,43,45,44,35,34,46,35,46,47,48,49,50,48,50,51,50,52,51,50,53,52,54,55,56,54,56,57,56,58,57,56,59,58,60,61,62,60,62,63,62,64,63,65,49,48,65,48,66,67,68,69,67,69,70,27,26,71,27,71,72,26,30,32,26,32,71,10,73,74,10,74,13,13,74,75,13,75,11,30,76,77,30,15,18,30,77,15,77,12,15,77,78,12,78,79,12,79,73,12,73,10,12,26,24,30,24,76,30,28,20,5,28,5,4,80,81,73,80,73,82,74,73,81,74,81,75,21,29,83,21,83,19,82,19,83,82,83,80,37,84,85,37,85,38,86,0,3,86,3,87,42,41,88,42,88,89,1,0,90,1,90,91,92,33,36,92,36,93,94,92,93,94,93,95,41,96,97,41,44,96,41,97,98,41,98,88,86,97,99,99,97,96,99,96,100,100,101,99,84,94,95,84,95,85,97,86,87,97,87,98,0,86,99,0,99,90,61,60,102,61,102,103,104,65,66,104,66,105,106,60,63,106,63,107,68,67,108,68,108,109,54,110,111,54,111,55,106,67,70,106,70,112,60,106,112,60,112,102,67,106,107,67,107,108,110,104,105,110,105,111,113,114,115,114,116,115,117,118,114,117,114,113,116,119,115,119,120,115,121,122,123,122,124,123,125,122,121,125,126,122,122,127,124,127,128,124,129,114,118,129,118,130,130,118,117,130,117,131,132,128,127,132,127,133,132,133,134,119,135,136,119,136,120,135,132,134,135,134,136,121,137,138,121,138,125,125,138,139,125,139,126,132,140,141,128,132,124,132,123,124,132,141,123,135,140,132,135,142,140,119,116,135,116,142,135,116,114,142,114,129,142,143,144,137,143,137,145,138,137,144,138,144,139,130,131,146,130,146,129,145,129,146,145,146,143,147,148,149,149,148,100,149,100,96,150,149,96,150,96,151,45,43,152,45,152,153,150,154,147,150,147,149,96,44,155,96,155,151,44,45,153,44,153,155,156,157,158,158,157,159,157,160,159,161,157,156,156,162,161,156,163,162,156,164,163,164,165,163,164,166,165,62,167,156,156,158,62,158,64,62,167,164,156,167,53,164,160,157,168,157,161,168,169,170,22,79,170,169,169,82,73,169,73,79,22,170,171,22,171,172,171,173,172,169,22,19,169,19,82,173,171,174,36,35,47,47,93,36,47,95,93,47,85,95,47,38,85,47,39,38,47,175,39,47,176,175,17,177,31,17,16,177,16,178,177,16,14,178,31,179,32,31,177,179,32,180,71,32,179,180,179,181,180,181,182,180,181,75,81,181,81,80,181,80,183,182,181,183,182,183,184,71,185,72,71,180,185,180,186,185,72,185,187,29,28,4,29,4,83,83,4,7,83,7,183,183,80,83,70,69,188,70,188,189,188,190,189,112,70,189,112,189,191,105,66,192,105,192,193,66,48,51,66,51,192,113,115,117,115,136,117,115,120,136,131,117,194,117,136,194,136,134,194,133,194,134,133,195,194,127,195,133,127,196,195,122,143,196,122,144,143,196,127,122,122,126,139,122,139,144,177,181,179,177,178,181,178,75,181,178,11,75,148,197,198,148,198,199,148,199,100,197,200,201,197,201,198,200,46,201,201,46,202,201,202,203,46,34,33,46,33,92,46,92,202,172,173,76,76,24,172,24,23,172,23,22,172,196,143,146,196,146,195,188,204,205,188,205,190,204,59,206,204,206,205,59,56,207,59,207,206,56,55,111,56,111,207,176,208,209,176,209,175,208,210,211,208,211,209,212,211,210,210,154,212,154,150,212,150,151,212,151,155,212,155,153,212,153,152,212,2,212,98,98,87,2,87,3,2,88,98,212,88,212,152,152,89,88,9,213,8,9,25,187,9,187,213,25,72,187,25,27,72,99,101,214,99,214,90,90,214,215,90,215,91,101,216,217,101,217,214,216,218,217,216,219,218,219,220,221,219,221,218,220,84,221,220,94,84,174,78,77,77,76,174,76,173,174,174,79,78,185,186,213,185,213,187,186,8,213,186,184,8,184,183,7,184,7,8,43,42,89,43,89,152,141,137,121,141,121,123,59,204,162,59,162,58,204,188,222,204,222,162,188,109,222,188,68,109,188,69,68,51,52,223,51,223,192,52,224,225,52,225,223,224,226,227,224,227,225,226,228,229,226,229,227,228,103,102,228,102,229,198,201,203,198,203,199,64,159,160,160,63,64,160,107,63,64,158,159,46,200,176,46,176,47,200,197,208,200,208,176,197,148,210,197,210,208,148,147,154,148,154,210,189,190,230,189,230,191,190,205,230,205,193,230,205,206,193,206,207,193,207,111,105,207,105,193,14,11,178,168,231,108,108,160,168,108,107,160,168,161,231,142,129,145,142,145,140,39,175,232,39,232,40,175,209,233,175,233,232,209,211,215,209,215,233,211,212,91,211,91,215,212,2,1,212,1,91,195,146,131,195,131,194,171,170,79,171,79,174,166,65,104,166,104,110,166,110,165,140,145,137,140,137,141,214,217,233,214,233,215,217,218,232,217,232,233,218,221,40,218,40,232,221,84,37,221,37,40,53,50,166,53,166,164,50,49,65,50,65,166,180,182,184,180,184,186,108,231,222,108,222,109,162,222,161,222,231,161,162,163,58,163,165,57,163,57,58,165,110,54,165,54,57,100,199,216,100,216,101,199,203,219,199,219,216,203,202,220,203,220,219,202,92,94,202,94,220,53,167,224,53,224,52,167,62,226,167,226,224,62,228,226,62,103,228,62,61,103,192,223,193,223,230,193,223,225,230,225,227,230,227,229,191,227,191,230,229,102,112,229,112,191,234,235,236,234,236,237,238,239,240,238,240,241,242,243,244,242,244,245,246,247,248,248,249,246,248,250,249,240,239,251,240,251,252,242,253,254,242,254,243,255,234,237,255,237,256,247,246,257,247,257,258,235,234,259,235,259,260,261,238,241,261,241,262,263,261,262,263,262,264,246,265,266,246,249,265,246,266,267,246,267,257,255,266,268,234,255,268,234,268,259,268,269,259,268,270,269,259,269,271,259,271,260,268,266,265,268,265,272,272,270,268,253,263,264,253,264,254,266,255,256,266,256,267,273,274,275,274,276,275,274,277,276,277,251,276,251,239,238,278,273,272,278,272,265,273,275,272,275,261,272,275,276,261,276,251,261,251,238,261,279,278,265,279,265,280,250,248,281,250,281,282,279,283,273,279,273,278,265,249,284,265,284,280,249,250,282,249,282,284,241,240,252,252,262,241,252,264,262,252,254,264,252,243,254,252,244,243,252,285,286,252,286,244,285,287,286,285,288,287,288,289,287,288,290,289,291,289,290,290,283,291,283,279,291,279,280,291,280,284,291,284,282,291,282,281,291,236,291,281,281,267,236,267,256,236,256,237,236,257,267,281,281,258,257,270,292,269,270,293,292,270,263,293,263,294,293,263,253,294,248,247,258,248,258,281,251,277,285,251,285,252,277,274,288,277,288,285,274,273,290,274,290,288,273,283,290,244,286,295,244,295,245,286,287,296,286,296,295,287,271,296,287,289,271,289,291,260,289,260,271,291,236,235,291,235,260,269,292,296,269,296,271,292,293,295,292,295,296,293,294,245,293,245,295,294,253,242,294,242,245,272,263,270,272,261,263,297,298,299,297,299,300,301,302,303,301,303,304,299,298,305,299,305,306,301,307,308,301,308,302,309,297,300,309,300,310,311,309,310,311,310,312,307,311,312,307,312,308,313,314,315,313,315,316,316,315,317,316,317,318,319,316,318,319,320,313,319,313,316,303,302,308,308,312,303,312,310,303,310,300,303,300,299,303,299,306,303,314,321,315,314,322,321,322,323,321,322,305,323,305,298,297,305,297,323,306,324,325,306,325,303,324,326,325,326,320,325,320,319,325,327,328,329,328,311,307,328,307,329,315,321,317,321,330,317,321,323,330,323,297,309,323,309,330,305,322,324,305,324,306,322,326,324,322,314,326,314,320,326,314,313,320,303,325,304,329,307,301,329,301,304,327,318,317,317,328,327,317,330,328,330,309,311,330,311,328};
+static const int16_t cv33[] = {-6224,1275,8983,-5617,1260,8994,-5591,1905,8419,-6198,1920,8409,-24001,1870,9300,-24001,935,9275,-23068,935,9270,-23068,1870,9296,-19637,1871,9290,-20092,941,9284,-23976,966,8150,-23976,1900,8176,-23185,1900,8174,-23185,966,8149,-25128,966,8153,-25128,1900,8178,-19784,1897,8148,-20239,966,8142,-15911,980,8200,-15673,1830,8162,-12012,965,8125,-12012,1900,8150,-8285,1900,8143,-8285,965,8117,-5598,965,8112,-5597,1900,8137,-24746,958,8448,-25157,935,9280,-25136,957,8473,-23153,957,8462,-20436,956,8485,-20194,958,8492,-16115,1040,9215,-15972,998,8504,-11821,936,9221,-11956,957,8448,-8290,936,9205,-8287,957,8431,-5589,957,8419,-5566,936,9193,-25156,1870,9305,-25136,1892,8499,-5592,960,8305,-5592,1894,8331,-5590,958,8365,-5590,1893,8391,-6591,-6619,-15,-6622,-6619,-16,-6596,-5974,-590,-6565,-5974,-589,-5581,-6622,28,-5555,-5977,-546,-5558,-5236,296,-5584,-5881,871,-6536,1154,8832,-6616,1286,8978,-6618,197,7739,-6559,196,7741,-6601,-768,6654,-6627,-579,6860,-6622,-5817,897,-6596,-5172,322,-25553,2023,304,-25556,1269,304,-25446,1309,1182,-25443,1983,1181,-25305,1994,2698,-25320,1262,2626,-24580,1265,245,-24577,2019,244,-24579,1979,1084,-24582,1306,1084,-24549,1300,2080,-24534,2033,2152,-24649,1268,8183,-24972,1269,8211,-25109,1317,7104,-24779,1273,7086,-24827,1268,5712,-25153,1269,5760,-25219,1268,283,-25216,2022,283,-24586,1267,8178,-24036,1265,8130,-24033,2019,8130,-24583,2022,8177,-5589,1891,8445,-5566,1870,9219,-24684,960,8383,-25133,960,8355,-25133,1895,8380,-8286,958,8386,-8286,960,8325,-11973,959,8351,-11962,958,8414,-15956,994,8425,-15968,997,8484,-20204,960,8415,-20406,958,8412,-23160,959,8393,-23954,1894,8430,-24683,1894,8408,-23955,959,8404,-24746,1892,8473,-6273,-6620,-1,-6247,-5975,-575,-6373,1248,8946,-6347,1893,8371,-6510,1800,8258,-6591,1931,8404,-6231,191,7750,-5612,182,7768,-6458,-6620,-9,-6432,-5974,-583,-6362,-6620,-5,-6336,-5975,-579,-6470,1144,8823,-6495,195,7742,-6545,-849,6565,-6444,1789,8249,-6372,193,7746,-6551,-1248,6134,-6391,-1247,6119,-24646,2022,8183,-24969,2023,8211,-25186,1268,281,-25183,2022,281,-24700,1268,7253,-24763,1271,7085,-24715,1264,7082,-24154,1188,7050,-25153,1267,279,-25150,2022,279,-24697,2022,7253,-5895,1900,7446,-5892,1124,7461,-5880,1124,6802,-5877,1900,6785,-5839,1858,5398,-5873,1119,5448,-5913,1909,7927,-5910,1133,7942,-5779,1133,3429,-5776,1877,3483,-5687,1907,2051,-5687,1113,2019,-5656,1905,704,-5648,1130,702,-5633,1924,-212,-5601,1149,-211,-6824,1119,7408,-6827,1895,7393,-6807,1902,6740,-6809,1127,6758,-6756,1161,5484,-6723,1900,5435,-6654,1146,3291,-6651,1890,3345,-6844,1128,7887,-6847,1904,7872,-6619,1908,2065,-6619,1114,2033,-6551,1120,708,-6559,1896,710,-6498,1111,-239,-6530,1887,-240,-6591,1126,7739,-6578,1129,7902,-6582,1905,7888,-6337,1118,-234,-6370,1893,-235,-6288,1120,-232,-6320,1895,-233,-6243,1122,-231,-6275,1897,-232,-6645,1126,7711,-6677,1129,7897,-6680,1904,7882,-6340,1122,706,-6386,1122,707,-6445,1114,2030,-6403,1114,2030,-6487,1143,3317,-6452,1143,3323,-6581,1153,5477,-6554,1152,5476,-6622,1126,6767,-6599,1126,6768,-6296,1123,706,-6360,1114,2029,-6413,1142,3329,-6518,1150,5474,-6563,1126,6769,-6616,1896,7394,-6648,1901,7696,-6613,1120,7408,-6595,1902,7725,-6652,-1125,6273,-6655,-1249,6141,-6620,-1248,6139,-6612,-962,6445,-6638,-296,5838,-6558,-190,5962,-6592,843,7163,-6608,66,6271,-6697,-450,5661,-6603,-112,6056,-24862,1268,4915,-24822,1283,5499,-24843,1268,5487,-24808,1278,5709,-24821,1268,5711,-24779,1268,6140,-24777,1267,5525,-24934,1268,3889,-24894,1267,3891,-25002,1278,2401,-25032,1276,2421,-25090,1308,1141,-25120,1308,1145,-25054,1275,2437,-24958,1268,3888,-25148,1308,1148,-25292,1269,3871,-24777,1267,5704,-20823,957,8464,-20405,1036,8436,-23157,959,8420,-20173,1012,8453,-20194,958,8488,-19106,957,8468,-20201,960,8437,-5593,-4019,1674,-6603,-4018,1709,-8286,1895,8310,-11989,1896,8281,-15690,1835,8247,-19777,1895,8200,-8286,1893,8389,-11971,1894,8387,-8286,1892,8439,-11963,1892,8432,-15722,1844,8406,-15715,1842,8370,-19751,1891,8404,-19755,1892,8369,-23160,1894,8411,-23164,1895,8381,-23155,1893,8464,-19727,1887,8592,-8289,1874,9102,-11873,1878,8948,-15787,1863,8728,-8289,1870,9231,-11821,1870,9246,-24052,1952,7036,-24613,2028,7068,-24761,2022,5702,-24206,2019,5620,-24661,2034,7070,-25145,1982,1148,-25118,1982,1145,-5968,1900,6781,-6028,1867,5406,-6117,1882,3429,-6162,1908,2058,-6225,1899,708,-6549,1902,6753,-6484,1888,5425,-6426,1887,3380,-6387,1908,2061,-6342,1898,709,-6388,1898,709,-6429,1908,2062,-6461,1887,3375,-6511,1890,5426,-6571,1902,6752,-6533,1896,710,-6554,1908,2064,-6557,1889,3360,-6573,1892,5429,-6614,1902,6750,-23183,1900,8193,-6600,-2937,4381,-6563,-2925,4381,-6467,-2894,4380,-6569,-4650,2279,-6538,-4650,2277,-6590,-5819,896,-6467,-5827,893,-6433,-4649,2270,-24323,2019,3920,-24891,2022,3891,-24987,2010,2473,-25087,1981,1141,-6835,-2212,3713,-5682,-1845,3712,-6713,-569,5526,-5653,-547,5416,-5586,827,7193,-15877,1889,9177,-6255,-1246,6106,-5575,-1231,6037,-6315,-2845,4380,-6182,-2803,4380,-6218,-4646,2260,-6319,-4648,2264,-6363,-5833,890,-6269,-5839,888,-24326,1265,3920,-24209,1265,5620,-25039,2008,2510,-25289,2023,3871,-24955,2022,3888,-25150,2023,5760,-24824,2022,5711,-25006,2081,7090,-24677,2036,7071,-24805,2022,5709,-24932,2022,3889,-25017,2009,2494,-24764,1267,5702,-5571,-4649,2228,-5448,-2568,4378,-24634,947,8223,-24059,812,8209,-23923,1442,7670,-24490,1548,7672,-26896,-5763,-389,-26926,-5755,-389,-26744,-5120,-937,-26713,-5128,-935,-25924,-6022,-365,-25741,-5386,-915,-25526,-4695,-66,-25715,-5353,502,-24961,903,8091,-25005,1035,8233,-25272,27,7011,-25214,16,7009,-25467,-880,5855,-25452,-690,6092,-26731,-5021,550,-26543,-4363,-18,-26591,-5844,-381,-26408,-5206,-915,-24782,953,8193,-24637,1560,7643,-24818,1521,7541,-24869,1665,7694,-24886,-44,6999,-24268,-157,6981,-26768,-5797,-386,-26585,-5161,-927,-26676,-5822,-383,-26493,-5185,-921,-24899,881,8080,-25150,4,7007,-25433,-970,5753,-24756,1495,7529,-25026,-18,7003,-25273,-1398,5278,-25390,-1361,5289,-24696,-1582,5223,-25527,-1318,5302,-25589,-1187,5445,-25618,-1289,5311,-25587,-1299,5308,-25518,-1057,5624,-25940,-2486,3752,-25970,-2481,3748,-26335,-3880,1984,-26363,-3870,1985,-26700,-5031,548,-25863,-2500,3761,-26242,-3911,1978,-26580,-5070,543,-25378,-429,5086,-25297,-338,5212,-25168,691,6445,-25324,-49,5544,-25445,-564,4911,-25333,-246,5311,-26195,-3284,1479,-25299,-3585,1430,-24877,-2063,3358,-25802,-1894,3242,-24548,-967,4695,-25471,-669,4780,-24164,505,6416,-25741,-2522,3777,-25634,-2541,3790,-26050,-3975,1968,-26140,-3945,1973,-26385,-5134,534,-26478,-5104,538,-25466,-4170,1935,-25045,-2648,3863,-21821,1204,8870,-21487,1361,8600,-21647,2013,8733,-21989,1890,9011,-24788,1357,5426,-24870,1342,5512,-25029,1994,5645,-24957,2050,5568,-24253,1581,5083,-24415,2234,5217,-24094,2236,5604,-23928,1544,5456,-21972,1153,8842,-22009,1150,9025,-22513,1133,8496,-22389,1133,8398,-24551,1291,5938,-24717,1984,6086,-24645,1413,5327,-24814,2106,5470,-21941,1171,8925,-22105,1845,9064,-22113,1855,9002,-22167,1791,9158,-22243,1190,8295,-21889,1380,8044,-24728,1381,5385,-24898,2073,5527,-24685,1397,5355,-24854,2090,5498,-22005,1138,8872,-22361,1144,8378,-22163,1833,9047,-22306,1166,8339,-22978,1171,7921,-23025,1172,7854,-22913,1168,7764,-22884,1175,8001,-22885,1180,7741,-22821,1166,7972,-23049,1861,8144,-23022,1853,8146,-22792,1156,8152,-22680,1827,8643,-22958,1845,8298,-23143,1859,8065,-22866,1175,8020,-23032,1855,8163,-23537,1212,7212,-23422,1207,7125,-24001,1263,6385,-24112,1268,6474,-24440,1286,5849,-24272,1933,6616,-23681,2174,6153,-23704,1907,7358,-23039,2151,6942,-22589,2115,7513,-23192,1867,8002,-22055,2072,8190,-22822,1206,7689,-22768,1229,7644,-23261,1265,7032,-23317,1245,7064,-23869,1317,6281,-23911,1300,6314,-24302,1342,5741,-24342,1326,5772,-23382,1222,7101,-23959,1280,6351,-24387,1307,5807,-23522,1509,6011,-22872,1459,6796,-22423,1423,7366,-5965,1405,5389,-6268,1591,5081,-6133,2250,5297,-5822,2104,5617,-9242,1211,8588,-9135,1197,8664,-9012,1851,8871,-9104,1917,8808,-9637,1484,8071,-9501,2144,8288,-9125,2188,7939,-9278,1484,7713,-6016,1316,5584,-5782,1343,5578,-6287,1265,6123,-6398,1260,6001,-8723,1186,8317,-8584,1884,8529,-9364,1283,8440,-9217,1987,8670,-5889,1364,5518,-5757,2044,5738,-5905,2058,5755,-5658,1987,5786,-6527,1334,5847,-6810,1560,5518,-9299,1244,8519,-9153,1949,8747,-9332,1264,8479,-9186,1968,8707,-5998,1305,5598,-6431,1277,5961,-5816,2001,5869,-6478,1305,5905,-6832,1252,6624,-6897,1247,6676,-6997,1233,6562,-6744,1273,6511,-7035,1251,6525,-6818,1247,6435,-6618,1961,6725,-6627,1951,6714,-6619,1255,6424,-6147,1966,6340,-6478,1952,6640,-6698,1943,6838,-6766,1273,6523,-6627,1955,6729,-7508,1227,7228,-7611,1213,7108,-8316,1200,7731,-8211,1215,7847,-8829,1173,8200,-8079,1885,8051,-8600,2176,7489,-7372,1926,7441,-7850,2227,6804,-7307,2244,6321,-6760,1948,6891,-7097,1283,6464,-7149,1312,6410,-7731,1290,6939,-7693,1265,6994,-8446,1271,7592,-8407,1249,7633,-8961,1245,8058,-8925,1225,8097,-7651,1237,7055,-8367,1227,7676,-8887,1203,8138,-8746,1498,7272,-8000,1524,6576,-7457,1541,6093,-6661,2264,5746,-6142,-2414,13296,-7517,-2444,13452,-7218,713,10008,-9702,446,10493,-11145,-729,13826,-11060,976,10142,-16008,-1221,13011,-18359,-598,13241,-17000,2162,8582,-11736,2859,8832,-13750,-503,14650,-14641,-110,10654,-29412,2035,8074,-26397,1674,9438,-28738,1307,10578,-31680,794,11925,-32228,840,11789,-31848,20,9494,-32767,474,6527,-8990,5627,7961,-7948,6597,7214,-28597,1898,5592,-26592,1765,4750,-26804,2663,6515,-30368,2173,6294,-29463,1291,4583,-27651,758,3473,-29834,-614,2568,-28128,-583,2410,-26284,412,1764,-28364,-1447,1785,-31091,-489,3155,-26921,-38,12469,-29356,390,12183,-24319,-670,12746,-2330,311,12492,-2310,638,10604,-1142,630,11808,-3864,130,11204,-5534,842,9640,-3251,863,3650,-1412,-1240,2111,1061,-489,3155,233,-847,2249,-1133,945,4750,-615,474,6527,-6105,2267,1791,-6984,-1088,1134,-4569,-694,1672,-26355,459,3490,-25129,1984,6162,-25874,994,3715,-2445,2343,6130,-5680,2001,5071,-3852,1780,7619,304,20,9494,-6765,4595,7565,-8063,6654,5144,-14593,2624,8662,-23715,1892,8268,-23911,2258,6931,-22232,5017,8555,-21070,1923,8931,-19557,3328,8807,-25107,2710,7808,-9193,-1609,13325,-20074,555,10684,-18922,-15,10811,-21010,143,11329,-20526,1583,9576,-20252,143,11624,-21295,-243,12177,-22727,-347,11066,-21956,1335,9177,-32497,396,11744,-31918,-847,2249,-8197,2456,1639,-7663,4246,4802,-8192,3798,3447,-24336,3534,4791,-24375,2332,2429,-24402,3884,3427,-23682,2451,1184,-25721,1250,2724,-23270,4105,6350,-24759,1983,3909,-7132,3072,5677,-6534,3394,7135,-24724,1811,6244,-2186,-2785,1711,-3857,-3213,1396,-6102,-2283,1039,-25310,-850,1322,-21778,2325,110,-26818,-2430,1003,-26543,-1361,920,-17241,5020,9334,-24020,5393,5678,233,-941,1392,-1267,-1583,1081,-3595,-3906,620,-1596,-3318,1013,-6644,-2403,134,-8821,1618,1084,-8962,4264,3254,-9440,2929,2143,-24876,5642,3641,-24898,-1115,560,-26981,-3374,68,-28571,-1522,1003,-31918,-941,1392,-7502,3165,3471,-23407,4532,1583,-346,396,11744,-7360,-1666,95};
+static const uint16_t ct33[] = {0,1,2,0,2,3,4,5,6,4,6,7,6,8,7,6,9,8,10,11,12,10,12,13,14,15,11,14,11,10,12,16,17,12,17,13,16,18,17,16,19,18,19,20,18,19,21,20,21,22,23,21,23,20,22,24,23,22,25,24,26,5,27,26,27,28,6,5,26,6,26,29,6,29,30,30,31,6,31,9,6,32,9,31,32,31,33,34,32,33,34,33,35,36,34,35,36,35,37,38,36,37,38,39,36,28,27,40,28,40,41,42,24,25,42,25,43,44,42,43,44,43,45,46,47,48,46,48,49,50,51,52,50,52,53,54,55,56,54,56,57,56,58,57,56,59,58,48,47,60,48,60,61,62,63,64,62,64,65,64,66,65,64,67,66,68,69,70,68,70,71,70,72,71,70,73,72,74,75,76,74,76,77,76,78,77,76,79,78,80,63,62,80,62,81,82,83,84,82,84,85,39,38,86,39,86,87,38,44,45,38,45,86,10,88,89,10,89,14,14,89,90,14,90,15,42,44,91,42,91,92,91,93,92,91,94,93,94,95,93,94,96,95,24,42,92,24,92,23,92,20,23,92,93,20,93,18,20,93,95,18,95,17,18,95,97,17,13,17,97,97,98,13,98,99,13,99,10,13,99,88,10,44,38,37,44,37,91,37,94,91,37,35,94,35,96,94,35,33,96,40,27,5,40,5,4,100,101,88,100,88,102,89,88,101,89,101,90,28,41,103,28,103,26,102,26,103,102,103,100,50,104,105,50,105,51,106,0,3,106,3,107,55,54,108,55,108,109,1,0,110,1,110,111,112,46,49,112,49,113,114,112,113,114,113,115,116,54,57,116,57,117,57,118,117,57,58,118,54,116,119,54,119,108,106,116,117,106,117,120,120,117,118,120,118,121,121,122,120,104,114,115,104,115,105,116,106,107,116,107,119,0,106,120,0,120,110,75,74,123,75,123,124,125,80,81,125,81,126,127,74,77,127,77,128,83,82,129,83,129,130,68,131,132,68,132,69,127,82,85,127,85,133,74,127,133,74,133,123,82,127,128,82,128,129,131,125,126,131,126,132,134,135,136,134,136,137,136,138,137,136,139,138,140,141,135,140,135,134,139,142,143,139,143,138,142,144,143,142,145,144,145,146,144,145,147,146,147,148,146,147,149,148,150,151,152,150,152,153,152,154,153,152,155,154,155,156,154,155,157,156,158,151,150,158,159,151,157,160,161,157,161,156,160,162,161,160,163,162,163,164,162,163,165,164,166,135,141,166,141,167,167,141,140,167,140,168,169,164,165,169,165,170,171,169,170,171,170,172,149,173,174,149,174,148,173,171,172,173,172,174,150,175,176,150,176,158,158,176,177,158,177,159,169,171,178,169,178,179,178,180,179,178,181,180,181,182,180,181,183,182,183,184,182,183,185,184,185,186,184,185,187,186,164,169,179,164,179,162,179,161,162,179,180,161,180,156,161,180,182,156,182,154,156,182,184,154,184,153,154,184,186,153,171,173,188,171,188,178,188,181,178,188,189,181,189,183,181,189,190,183,190,185,183,190,191,185,191,187,185,191,192,187,173,149,147,173,147,188,147,189,188,147,145,189,145,190,189,145,142,190,142,191,190,142,139,191,139,192,191,139,136,192,136,166,192,136,135,166,193,194,175,193,175,195,176,175,194,176,194,177,167,168,196,167,196,166,195,166,196,195,196,193,197,198,199,197,199,200,200,199,121,200,121,118,201,200,118,201,118,202,59,56,203,59,203,204,201,205,197,201,197,200,118,58,206,118,206,202,58,59,204,58,204,206,207,208,209,209,208,210,209,210,211,210,212,211,213,208,207,207,214,215,207,215,213,214,216,215,214,217,216,217,218,216,217,219,218,220,219,217,221,220,217,207,209,221,207,221,214,221,217,214,220,222,219,79,223,221,221,209,79,209,78,79,223,220,221,223,67,220,212,210,224,210,213,224,210,208,213,225,226,30,98,226,225,225,227,99,225,99,98,227,88,99,227,102,88,30,226,228,30,228,229,228,230,229,225,30,29,225,29,227,29,102,227,29,26,102,230,228,231,49,48,61,61,113,49,61,115,113,61,105,115,61,51,105,61,52,51,61,232,52,61,233,232,43,25,22,43,22,234,22,235,234,22,21,235,21,236,235,21,19,236,19,237,236,19,16,237,45,43,234,45,234,238,234,239,238,234,235,239,86,45,238,86,238,240,238,241,240,238,239,241,239,242,241,239,243,242,243,244,242,243,245,244,245,246,244,245,247,246,247,101,246,247,90,101,246,101,100,246,100,248,244,246,248,244,248,249,86,240,250,86,250,87,240,251,250,240,241,251,241,252,251,241,242,252,87,250,253,250,254,253,250,251,254,41,40,4,41,4,103,103,4,7,103,7,248,248,100,103,85,84,255,85,255,256,255,257,256,255,258,257,133,85,256,133,256,259,126,81,260,126,260,261,81,62,65,81,65,260,134,137,262,134,262,140,137,263,262,137,138,263,138,264,263,138,143,264,143,265,264,143,144,265,144,266,265,144,146,266,146,174,266,146,148,174,168,140,262,168,262,267,262,268,267,262,263,268,263,269,268,263,264,269,264,270,269,264,265,270,265,271,270,265,266,271,266,172,271,266,174,172,170,272,271,170,271,172,272,270,271,272,273,270,273,269,270,273,274,269,274,268,269,274,275,268,275,267,268,275,276,267,165,277,272,165,272,170,277,273,272,277,278,273,278,274,273,278,279,274,279,275,274,279,280,275,280,276,275,280,281,276,281,152,151,151,193,281,151,194,193,281,155,152,281,280,155,280,157,155,280,279,157,279,160,157,279,278,160,278,163,160,278,277,163,277,165,163,151,159,177,151,177,194,235,236,243,235,243,239,236,245,243,236,237,245,237,282,247,237,247,245,282,90,247,282,15,90,198,283,284,198,284,199,199,284,285,199,285,121,283,286,287,283,287,284,286,60,288,286,288,287,287,288,289,287,289,290,60,47,46,60,46,288,288,46,112,288,112,289,229,230,96,96,33,229,33,31,229,31,30,229,281,193,196,281,196,276,258,291,292,258,292,257,291,73,293,291,293,292,73,70,294,73,294,293,70,69,132,70,132,294,233,295,296,233,296,232,295,297,298,295,298,296,299,298,297,297,205,299,205,201,299,201,202,299,202,206,299,206,204,299,204,203,299,2,299,119,119,107,2,107,3,2,108,119,299,108,299,203,203,109,108,9,32,300,9,300,8,32,34,254,32,254,300,34,253,254,34,36,253,36,87,253,36,39,87,120,122,301,120,301,110,110,301,302,110,302,111,122,303,304,122,304,301,303,305,304,303,306,305,306,307,308,306,308,305,307,104,308,307,114,104,231,97,95,95,96,231,96,230,231,231,98,97,251,252,300,251,300,254,252,8,300,252,249,8,249,248,7,249,7,8,56,55,109,56,109,203,186,175,150,186,150,153,73,291,309,73,309,72,291,258,310,291,310,309,258,255,130,258,130,310,255,83,130,255,84,83,65,66,311,65,311,260,66,312,313,66,313,311,312,314,315,312,315,313,314,316,317,314,317,315,316,124,123,316,123,317,284,287,290,284,290,285,78,211,212,212,77,78,212,128,77,78,209,211,60,286,233,60,233,61,286,283,295,286,295,233,283,198,297,283,297,295,198,197,205,198,205,297,256,257,318,256,318,259,257,292,319,257,319,318,292,320,319,292,293,320,293,261,320,293,294,261,294,132,126,294,126,261,16,12,282,16,282,237,12,15,282,12,11,15,224,321,129,129,212,224,129,128,212,224,213,321,192,166,195,192,195,187,52,232,322,52,322,53,232,296,323,232,323,322,296,298,302,296,302,323,298,299,111,298,111,302,299,2,1,299,1,111,276,196,168,276,168,267,228,226,98,228,98,231,222,80,125,222,125,219,219,125,131,219,131,218,187,195,175,187,175,186,301,304,323,301,323,302,304,305,322,304,322,323,305,308,53,305,53,322,308,104,50,308,50,53,67,64,222,67,222,220,64,63,80,64,80,222,242,244,249,242,249,252,129,321,310,129,310,130,213,215,309,309,310,213,310,321,213,215,216,72,215,72,309,216,218,71,216,71,72,218,131,68,218,68,71,121,285,303,121,303,122,285,290,306,285,306,303,290,289,307,290,307,306,289,112,114,289,114,307,67,223,312,67,312,66,223,79,314,223,314,312,79,76,316,79,316,314,76,124,316,76,75,124,260,311,320,260,320,261,311,319,320,311,313,319,313,318,319,313,315,318,315,317,259,315,259,318,317,123,133,317,133,259,324,325,326,324,326,327,328,329,330,328,330,331,332,333,334,332,334,335,336,337,338,336,338,339,338,340,339,338,341,340,330,329,342,330,342,343,332,344,345,332,345,333,346,324,327,346,327,347,337,336,348,337,348,349,325,324,350,325,350,351,352,328,331,352,331,353,354,352,353,354,353,355,356,336,339,356,339,357,339,358,357,339,340,358,336,356,359,336,359,348,346,356,357,346,357,360,324,346,360,324,360,350,360,361,350,360,362,361,350,361,363,350,363,351,360,357,358,360,358,364,364,362,360,344,354,355,344,355,345,356,346,347,356,347,359,365,366,367,365,367,368,366,369,367,366,370,369,370,371,369,370,372,371,372,373,371,372,342,373,342,328,373,342,329,328,368,367,364,368,364,358,367,374,364,367,369,374,369,375,374,369,371,375,371,373,376,371,376,375,373,352,376,373,328,352,377,368,358,377,358,378,341,338,379,341,379,380,377,381,365,377,365,368,358,340,382,358,382,378,340,341,380,340,380,382,331,330,343,343,353,331,343,355,353,343,345,355,343,333,345,343,334,333,343,383,384,343,384,334,383,385,384,383,386,385,386,387,385,386,388,387,389,387,388,388,381,389,381,377,389,377,378,389,378,382,389,382,380,389,380,379,389,326,389,379,379,359,326,359,347,326,347,327,326,348,359,379,379,349,348,362,390,391,362,391,361,390,392,391,390,393,392,393,394,392,393,395,394,395,344,394,395,354,344,338,337,349,338,349,379,342,372,383,342,383,343,372,370,386,372,386,383,370,366,388,370,388,386,366,365,381,366,381,388,334,384,396,334,396,335,384,385,397,384,397,396,385,363,397,385,387,363,387,389,351,387,351,363,389,326,325,389,325,351,361,391,397,361,397,363,391,392,396,391,396,397,392,394,335,392,335,396,394,344,332,394,332,335,364,374,390,364,390,362,374,393,390,374,375,393,375,395,393,375,376,395,376,354,395,376,352,354,398,399,400,398,400,401,402,403,404,402,404,405,406,407,408,406,408,409,410,411,412,410,412,413,404,403,414,404,414,415,406,416,417,406,417,407,418,398,401,418,401,419,411,410,420,411,420,421,399,398,422,399,422,423,424,402,405,424,405,425,426,424,425,426,425,427,428,410,413,428,413,429,410,428,430,410,430,420,418,428,429,418,429,431,416,426,427,416,427,417,428,418,419,428,419,430,398,418,431,398,431,422,432,433,434,432,434,435,435,434,436,435,436,437,438,435,437,438,437,439,440,412,441,440,441,442,438,443,432,438,432,435,437,444,445,437,445,439,444,440,442,444,442,445,408,407,417,417,427,408,427,425,408,425,405,408,405,404,408,404,415,408,433,446,447,433,447,434,446,448,447,446,449,448,449,450,448,449,414,450,414,403,402,414,402,450,413,444,437,413,437,429,412,440,444,412,444,413,415,451,452,415,452,408,451,453,454,451,454,452,453,455,454,453,456,455,457,455,456,456,443,457,443,438,457,438,439,457,439,445,457,445,442,457,442,441,457,431,458,459,431,459,422,458,460,459,458,461,460,461,462,460,461,463,462,463,464,462,463,465,464,465,426,416,465,416,464,412,411,421,412,421,441,434,447,466,434,466,436,447,467,466,447,448,467,448,468,467,448,450,468,450,402,424,450,424,468,414,449,451,414,451,415,449,453,451,449,446,453,446,456,453,446,433,456,433,443,456,433,432,443,408,452,469,408,469,409,452,454,470,452,470,469,454,471,470,454,455,471,455,423,471,455,457,423,457,400,399,457,399,423,422,459,471,422,471,423,459,470,471,459,460,470,460,462,469,460,469,470,462,464,409,462,409,469,464,416,406,464,406,409,436,458,431,431,437,436,431,429,437,436,466,461,436,461,458,466,463,461,466,467,463,467,465,463,467,468,465,468,424,426,468,426,465,472,473,474,472,474,475,476,477,478,476,478,479,480,481,482,480,482,483,484,485,486,484,486,487,478,477,488,478,488,489,480,490,491,480,491,481,492,472,475,492,475,493,485,484,494,485,494,495,473,472,496,473,496,497,498,476,479,498,479,499,500,498,499,500,499,501,502,484,487,502,487,503,484,502,504,484,504,494,492,502,503,492,503,505,490,500,501,490,501,491,502,492,493,502,493,504,472,492,505,472,505,496,506,507,508,506,508,509,509,508,510,509,510,511,512,509,511,512,511,513,514,486,515,514,515,516,512,517,506,512,506,509,511,518,519,511,519,513,518,514,516,518,516,519,489,482,481,481,491,489,491,478,489,491,501,478,501,499,478,499,479,478,507,520,521,507,521,508,520,522,521,520,523,522,523,524,522,523,488,524,488,477,476,488,476,524,487,518,511,487,511,503,486,514,518,486,518,487,489,525,526,489,526,482,525,527,528,525,528,526,527,529,528,527,530,529,505,531,532,505,532,496,531,533,532,531,534,533,534,535,533,534,536,535,536,537,535,536,538,537,538,500,490,538,490,537,486,485,495,486,495,515,508,521,539,508,539,510,521,540,539,521,522,540,522,541,540,522,524,541,524,476,498,524,498,541,488,523,525,488,525,489,523,527,525,523,520,527,520,530,527,520,507,530,507,506,517,507,517,530,482,526,542,482,542,483,526,528,543,526,543,542,528,544,543,528,529,544,529,497,544,529,545,497,545,474,473,545,473,497,496,532,544,496,544,497,532,543,544,532,533,543,533,535,542,533,542,543,535,537,483,535,483,542,537,490,480,537,480,483,531,505,503,503,511,531,511,510,531,510,539,534,510,534,531,539,536,534,539,540,536,540,538,536,540,541,538,541,498,500,541,500,538,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,558,560,561,562,558,558,563,564,565,566,548,567,568,569,567,570,571,571,572,567,567,569,559,571,573,574,571,574,572,574,575,572,574,573,576,577,571,564,567,572,568,560,578,579,559,578,560,559,580,578,581,582,583,584,546,585,586,587,588,588,587,589,590,588,591,592,593,594,586,594,587,592,594,586,575,595,572,595,596,568,595,597,596,598,590,591,598,599,586,598,600,599,582,598,601,598,591,601,602,566,603,602,548,566,599,600,585,585,600,582,604,555,557,554,604,557,605,606,607,608,607,609,596,610,568,560,579,561,557,552,554,551,565,549,549,611,550,612,609,613,612,614,615,614,616,617,612,616,614,580,559,618,618,619,614,610,605,618,549,548,611,554,553,613,613,553,616,616,612,613,562,620,563,570,564,571,567,558,570,558,564,570,567,559,558,573,577,621,621,576,573,571,577,573,595,568,572,584,582,581,585,582,584,548,585,546,586,588,590,592,622,593,623,603,624,586,599,592,623,602,603,625,626,627,627,626,628,629,595,575,625,630,631,586,590,598,582,600,598,599,632,592,633,585,602,585,548,602,607,634,630,634,597,630,568,610,569,559,569,610,596,605,610,607,608,605,547,611,548,551,555,565,551,550,556,557,556,552,613,609,554,618,559,610,556,555,551,615,609,612,618,605,619,583,582,601,635,594,636,637,594,593,594,635,587,575,638,639,640,638,641,575,641,638,640,641,576,576,641,575,639,628,575,639,627,628,604,554,642,630,625,643,576,575,574,628,629,575,636,594,637,644,589,587,645,587,635,635,636,646,635,646,647,646,636,637,648,637,593,593,622,649,624,650,651,650,624,603,625,627,652,639,638,653,653,638,640,653,640,654,640,576,655,576,621,656,576,656,655,622,623,624,622,651,649,623,632,602,624,651,622,622,657,623,657,632,623,633,632,599,602,632,633,599,585,633,592,632,657,592,657,622,625,631,626,626,629,628,595,629,597,630,597,631,626,597,629,631,597,626,596,597,634,606,634,607,596,634,606,596,606,605,614,619,615,619,605,608,609,615,608,619,608,615,627,639,658,565,548,549,614,617,618,562,563,558,583,601,659,609,642,554,644,587,645,645,635,647,646,637,648,648,593,660,593,649,660,640,655,654};
static const int16_t cv34[] = {-18482,26783,9006,-20607,29554,10118,-18694,26519,9765,-18730,28159,9416,-18018,25627,8172,-18160,23622,8311,-15706,21097,5399,-16195,19518,3793,-18607,20500,4980,-18203,19806,4194,-13774,19505,3545,-18669,17273,3460,-11063,25017,6647,-11542,22328,5224,-11235,20200,3715,-18938,21923,5938,-13715,17184,1970,-12735,12627,-1635,-11151,15823,343,-18515,14250,-140,6242,18579,3717,14105,16972,5509,13382,18684,7057,9349,16001,1787,4543,18357,2287,2702,16680,416,5552,13255,-1367,407,12869,-1316,15166,14630,2324,10639,11277,-2099,15088,9894,-2126,14762,16130,3598,-2846,17197,920,-5514,13716,-1487,-8248,17705,1380,-9238,14811,-608,-8918,13400,-1778,9054,29316,9073,11291,31344,5555,7826,31574,7758,-18429,30048,10099,-21542,31346,10613,-22474,32002,9492,-11784,29854,8232,-14630,32767,8012,4256,32196,7223,3789,29699,8397,6731,30442,8502,13500,30573,7105,12961,29228,10190,-177,19077,2530,-7273,20480,3366,-7977,22934,5065,6863,24555,8133,11238,21724,9345,9641,24214,9282,5562,20345,5421,11374,24488,10479,9673,-12035,-2008,5722,-4630,-2666,5007,-14291,-1906,10624,-4454,-2284,6867,1638,-2543,11654,4825,-3086,12419,8780,-2760,5059,7914,-2833,-4967,21412,4135,-4201,19704,2802,-4305,23359,5279,-5435,25937,6370,-8387,24658,6276,-7821,8724,-2555,-11463,3577,-2129,-5336,-53,-2355,-14484,-1322,-2183,-8346,-9167,-2074,-18653,6211,-2432,-11287,27417,7244,-17083,27071,8548,-16834,27736,9048,9041,26186,9405,11264,27116,10945,6051,27564,8566,3639,27904,8309,2923,24104,6903,-7344,28602,7508,-3659,29860,7281,-7742,30533,7657,-1744,24823,6255,-759,27798,7162,662,29607,7757,3063,2300,-2752,672,-3156,-2443,-1695,6785,-3294,-1400,21695,4574,2339,20539,4533,-2320,32626,7131,-930,30798,7485,1383,31084,7723,-7777,32603,7278,-10161,31452,7797,-1129,-12845,-1956};
static const uint16_t ct34[] = {0,1,2,3,1,0,4,0,2,5,4,2,6,4,5,7,8,9,7,6,8,6,7,10,9,11,7,12,6,13,6,14,13,8,6,15,15,6,5,7,16,10,16,17,18,11,19,16,20,21,22,20,23,21,23,24,25,26,25,27,23,25,26,28,29,30,31,23,28,28,23,29,16,14,10,32,27,25,33,34,35,33,35,36,37,38,39,40,41,1,40,42,41,40,43,44,45,46,47,48,37,49,32,33,27,33,32,34,50,32,25,50,25,24,36,35,17,35,34,18,18,34,16,17,35,18,14,34,51,16,34,14,31,21,23,29,23,26,23,20,24,16,19,17,7,11,16,13,14,52,6,10,14,53,54,55,20,56,24,55,54,57,58,59,60,59,61,62,63,30,64,64,30,29,65,29,26,65,26,27,63,64,29,66,51,67,67,34,32,66,68,52,52,69,70,52,68,69,71,72,73,72,74,75,72,71,17,19,76,17,77,4,12,3,0,78,78,0,4,79,43,40,80,57,81,80,82,53,53,83,84,37,46,82,82,46,83,37,81,49,85,12,69,77,85,43,69,86,85,85,86,87,88,69,68,88,89,69,89,84,83,90,83,46,91,92,59,92,60,59,65,91,62,93,92,91,93,73,92,71,33,36,91,65,93,93,27,33,94,50,95,50,67,32,94,68,66,94,95,84,96,97,98,98,97,90,98,90,46,45,98,46,96,86,97,97,86,90,99,100,87,99,87,86,100,43,87,42,40,44,37,48,38,39,45,47,37,39,47,100,44,43,99,44,100,96,99,86,45,96,98,92,101,60,73,101,92,88,94,84,84,95,56,94,88,68,50,94,67,67,94,66,95,50,24,93,65,27,71,93,33,93,71,73,91,59,62,90,89,83,89,88,84,89,90,86,69,89,86,43,85,87,69,12,70,85,77,12,37,47,46,80,37,82,53,82,83,37,80,81,79,77,43,3,40,1,3,79,40,79,3,78,77,78,4,77,79,78,17,71,36,76,72,17,72,76,74,72,75,73,51,66,52,12,52,70,14,51,52,67,51,34,65,63,29,63,65,62,63,62,61,75,101,73,59,58,61,80,55,57,56,53,84,55,80,53,24,56,95,20,54,56,54,53,56,54,20,22,12,13,52,12,4,6};
const CMesh cmeshes[] = {
@@ -873,18 +873,18 @@ const CMesh cmeshes[] = {
{cv6, ct6, 12, 13, 2.25646e-05f, {-0.417874f,-0.547142f,0.225619f}, {0.739376f,0.287082f,0.371273f}}, /* rock_v02_top_coll */
{cv7, ct7, 23, 31, 2.65951e-05f, {-0.722136f,-0.800657f,-0.34299f}, {0.871442f,0.431601f,0.365196f}}, /* rock_v02_side_coll */
{cv8, ct8, 35, 51, 7.93733e-05f, {-0.941907f,-2.25887f,1.60248f}, {1.99393f,0.311682f,2.60083f}}, /* rockP_v02_low_snow */
- {cv9, ct9, 156, 260, 0.000102152f, {-2.1104f,-2.18666f,-0.0558237f}, {1.96536f,2.16362f,3.34723f}}, /* rockP_v02_coll_rock */
+ {cv9, ct9, 205, 355, 0.0001048f, {-2.1104f,-2.25887f,-0.0597432f}, {1.99393f,2.23783f,3.43398f}}, /* rockP_v02_coll_rock */
{cv10, ct10, 38, 57, 0.0001048f, {-1.04837f,-0.491413f,3.19165f}, {0.57051f,1.64406f,3.43398f}}, /* rockP_v02_high_snow */
{cv11, ct11, 51, 63, 0.000312937f, {-10.254f,-5.00004f,-0.135257f}, {0.218676f,-0.0529232f,0.432973f}}, /* Ground_WW_RV1_curved_only_ground */
{cv12, ct12, 131, 214, 0.000311026f, {-10.1914f,-4.46056f,-0.130343f}, {0.329882f,0.380076f,3.91289f}}, /* Ground_WW_RV1_curved_only_sides */
{cv13, ct13, 26, 33, 7.36417e-05f, {-1.2411f,-2.41302f,1.27805f}, {1.97381f,0.745718f,1.71769f}}, /* rockP_v01_low_snow */
- {cv14, ct14, 157, 260, 0.000108379f, {-2.05279f,-2.38673f,-0.0597432f}, {1.98204f,2.0177f,3.55126f}}, /* rockP_v01_coll_rock */
+ {cv14, ct14, 213, 371, 0.000108379f, {-2.05279f,-2.43217f,-0.0597432f}, {1.98204f,2.0177f,3.55126f}}, /* rockP_v01_coll_rock */
{cv15, ct15, 45, 71, 0.000108379f, {-1.37425f,-1.40271f,2.76811f}, {1.20558f,1.65225f,3.55126f}}, /* rockP_v01_high_snow */
{cv16, ct16, 91, 131, 0.000312937f, {-10.254f,-5.0f,-0.123769f}, {0.396057f,0.000434875f,4.52552f}}, /* Ground_WW_RV1_4Mup_middle_coll_snow */
{cv17, ct17, 80, 131, 0.000152593f, {-2.30738f,-5.0f,0.106274f}, {-0.491013f,1.00136e-05f,4.02852f}}, /* Ground_WW_RV1_4Mup_middle_coll_wall */
- {cv18, ct18, 164, 260, 0.000311026f, {-10.1914f,-5.0f,0.126806f}, {0.799572f,0.695094f,8.59235f}}, /* Ground_WW_RV1_4Mup_side_coll_wall */
+ {cv18, ct18, 198, 318, 0.000311026f, {-10.1914f,-5.0f,0.126806f}, {0.799572f,0.695094f,8.59235f}}, /* Ground_WW_RV1_4Mup_side_coll_wall */
{cv19, ct19, 104, 144, 0.000312937f, {-10.254f,-5.00001f,-0.123772f}, {0.396059f,0.000424862f,4.52552f}}, /* Ground_WW_RV1_tunnel_coll_snow */
- {cv20, ct20, 154, 260, 0.000334969f, {-10.9759f,-5.00001f,-0.040591f}, {-0.868997f,0,4.48963f}}, /* Ground_WW_RV1_tunnel_coll_wall */
+ {cv20, ct20, 162, 272, 0.000334969f, {-10.9759f,-5.00001f,-0.040591f}, {-0.84659f,0,4.48963f}}, /* Ground_WW_RV1_tunnel_coll_wall */
{cv21, ct21, 75, 111, 0.000276884f, {-9.07267f,-5.0f,-0.322548f}, {0.396057f,0,0.272148f}}, /* Ground_RV1_crack_middle_plain_start_coll_snow */
{cv22, ct22, 82, 124, 0.000302969f, {-9.92738f,-5.0f,-0.758896f}, {0.218674f,0.239653f,0.561268f}}, /* Ground_WW_RV1_crack_side_start_coll_snow */
{cv23, ct23, 89, 138, 0.000311026f, {-10.1914f,-1.09589f,0.0317879f}, {0.32988f,0.976831f,4.3635f}}, /* Ground_WW_RV1_crack_side_start_coll_wall */
@@ -892,12 +892,12 @@ const CMesh cmeshes[] = {
{cv25, ct25, 74, 111, 0.000312937f, {-10.254f,-5.0f,-0.56299f}, {0.0726204f,0.231256f,0.728232f}}, /* Ground_WW_RV1_crack_side_end_coll_snow */
{cv26, ct26, 112, 163, 0.000311026f, {-10.1914f,-5.0f,-1.76036f}, {0.329884f,0.976826f,4.3635f}}, /* Ground_WW_RV1_crack_side_end_coll_wall */
{cv27, ct27, 116, 192, 0.000369858f, {-12.1191f,-5.0f,-0.322548f}, {0.396057f,0,1.61111f}}, /* Ground_RV1_crack_middle_ramp */
- {cv28, ct28, 227, 406, 0.000369402f, {-12.1042f,-5.0f,-9.17775f}, {0.246743f,2.36783f,5.04673f}}, /* Ground_WW_RV1_crack_side_start_ramp */
+ {cv28, ct28, 338, 603, 0.000369402f, {-12.1042f,-5.0f,-11.0142f}, {0.332904f,2.74127f,5.04673f}}, /* Ground_WW_RV1_crack_side_start_ramp */
{cv29, ct29, 99, 152, 0.000311026f, {-10.1914f,-1.08186f,0.0328108f}, {0.332904f,0.909814f,4.71269f}}, /* Ground_WW_RV1_crack_side_start_ramp_coll_wall */
{cv30, ct30, 19, 25, 5.48259e-05f, {-1.76713f,-1.62748f,-0.00864136f}, {1.79648f,1.73621f,0.200179f}}, /* floating_island_v1_coll_snow */
{cv31, ct31, 70, 127, 5.9047e-05f, {-1.88615f,-1.79382f,-1.93479f}, {1.90784f,1.88091f,0.191889f}}, /* floating_island_v1_coll_rocks */
{cv32, ct32, 83, 121, 0.000312937f, {-10.254f,-5.0f,-0.135257f}, {0.218676f,3.69688f,1.46281f}}, /* Ground_WW_RV1_snowball_coll_ground */
- {cv33, ct33, 331, 634, 0.000255579f, {-8.37456f,-2.05953f,-0.291575f}, {-1.6945f,0.695577f,2.89409f}}, /* Ground_WW_RV1_snowball_coll_wall */
+ {cv33, ct33, 661, 1217, 0.000311026f, {-10.1914f,-2.05953f,-0.291575f}, {0.329882f,2.06969f,4.55644f}}, /* Ground_WW_RV1_snowball_coll_wall */
{cv34, ct34, 102, 168, 0.000268003f, {-6.02308f,-3.8299f,-0.882758f}, {4.06458f,8.78164f,2.93327f}}, /* camp_main_coll_snow */
};
static const Part pp0[] = {{0,1,{1.0f,0,0,0,0,1.0f,0,0,0,0,1.0f,0}}};
@@ -1146,7 +1146,7 @@ const Prefab prefabs[] = {
{pp41, pc41, 1, 1, 0, -1, -1, {0,0,0}}, /* SnowmanBody */
{0, 0, 0, 0, 16, -1, -1, {0,0,0}}, /* Spawner */
{pp43, pc43, 1, 3, 0, -1, -1, {0,0,0}}, /* SideGroundSnowball */
- {0, pc44, 0, 1, 0, -1, -1, {0,0,0}}, /* SnowBallCollider */
+ {0, pc44, 0, 1, 8, -1, -1, {0,0,0}}, /* SnowBallCollider */
{pp45, pc45, 1, 1, 4, -1, -1, {0,0,0}}, /* Snowball Big */
{pp46, 0, 1, 0, 0, -1, -1, {0,0,0}}, /* Log House */
{0, 0, 0, 0, 0, -1, -1, {0,0,0}}, /* Empty */
@@ -1486,21 +1486,21 @@ static const uint16_t sm14[] = {66,67,68};
static const uint16_t ss14[] = {69,70,71};
static const uint16_t sl14[] = {0};
const Struct structs[] = {
- {0, 2147483647, 1.0f, 3, 3, 0, -1, -1, -1, sm0, 1, ss0, 1, sl0, 0, {0, 0, 0, 0, 0, 0}}, /* Plains */
- {0, 2147483647, 1.0f, 4, 6, 0, -1, -1, -1, sm1, 6, ss1, 4, sl1, 0, {0, 0, 0, 0, 0, 0}}, /* Pines */
- {0, 2147483647, 1.0f, 3, 5, 0, -1, -1, -1, sm2, 3, ss2, 4, sl2, 0, {0, 0, 0, 0, 0, 0}}, /* Chops */
- {0, 2147483647, 1.0f, 4, 6, 0, -1, -1, -1, sm3, 4, ss3, 4, sl3, 0, {0, 0, 0, 0, 0, 0}}, /* Creeps */
- {0, 2147483647, 1.0f, 3, 6, 0, -1, -1, -1, sm4, 3, ss4, 4, sl4, 0, {0, 0, 0, 0, 0, 0}}, /* Mixed Trees */
- {10, 2147483647, 1.0f, 1, 1, 1, 6, -1, -1, sm5, 1, ss5, 1, sl5, 2, {0, 0, 0, 0, 0, 0}}, /* Tunnel */
- {0, 2147483647, 0, 1, 1, 0, -1, -1, -1, sm6, 1, ss6, 1, sl6, 0, {0, 0, 0, 0, 0, 0}}, /* TunelEnd */
- {10, 2147483647, 0.75f, 1, 1, 2, 8, 47, 48, sm7, 1, ss7, 1, sl7, 0, {0, 0, 0, 0, 0, 0}}, /* CrackStart */
- {0, 2147483647, 0, 1, 1, 3, 9, -1, -1, sm8, 1, ss8, 1, sl8, 0, {0, 0, 0, 0, 0, 0}}, /* Void */
- {0, 2147483647, 0, 1, 1, 0, -1, -1, -1, sm9, 1, ss9, 1, sl9, 0, {0, 0, 0, 0, 0, 0}}, /* CrackEnd */
- {10, 2147483647, 0.6f, 1, 1, 3, 11, -1, -1, sm10, 1, ss10, 1, sl10, 0, {0, 0, 0, 0, 0, 0}}, /* StartFloats */
- {0, 2147483647, 1.0f, 2, 3, 3, 9, -1, -1, sm11, 2, ss11, 2, sl11, 0, {0, 0, 0, 0, 0, 0}}, /* Floats */
- {0, 2147483647, 1.0f, 3, 5, 0, -1, -1, -1, sm12, 5, ss12, 4, sl12, 0, {0, 0, 0, 0, 0, 0}}, /* Snowmen fields */
- {0, 2147483647, 1.0f, 0, 0, 4, -1, 64, 65, sm13, 1, ss13, 1, sl13, 0, {45, 0.7f, 5.0f, 0.1f, 0.75f, 0.95f}}, /* SnowBalls */
- {5, 2147483647, 1.0f, 3, 6, 0, -1, -1, -1, sm14, 3, ss14, 3, sl14, 0, {0, 0, 0, 0, 0, 0}}, /* Stones */
+ {0, 2147483647, 1.0f, 3, 3, 0, -1, -1, -1, sm0, 1, ss0, 1, sl0, 0, {0, 0, 0, 0, 0, 0, 0}}, /* Plains */
+ {0, 2147483647, 1.0f, 4, 6, 0, -1, -1, -1, sm1, 6, ss1, 4, sl1, 0, {0, 0, 0, 0, 0, 0, 0}}, /* Pines */
+ {0, 2147483647, 1.0f, 3, 5, 0, -1, -1, -1, sm2, 3, ss2, 4, sl2, 0, {0, 0, 0, 0, 0, 0, 0}}, /* Chops */
+ {0, 2147483647, 1.0f, 4, 6, 0, -1, -1, -1, sm3, 4, ss3, 4, sl3, 0, {0, 0, 0, 0, 0, 0, 0}}, /* Creeps */
+ {0, 2147483647, 1.0f, 3, 6, 0, -1, -1, -1, sm4, 3, ss4, 4, sl4, 0, {0, 0, 0, 0, 0, 0, 0}}, /* Mixed Trees */
+ {10, 2147483647, 1.0f, 1, 1, 1, 6, -1, -1, sm5, 1, ss5, 1, sl5, 2, {0, 0, 0, 0, 0, 0, 0}}, /* Tunnel */
+ {0, 2147483647, 0, 1, 1, 0, -1, -1, -1, sm6, 1, ss6, 1, sl6, 0, {0, 0, 0, 0, 0, 0, 0}}, /* TunelEnd */
+ {10, 2147483647, 0.75f, 1, 1, 2, 8, 47, 48, sm7, 1, ss7, 1, sl7, 0, {0, 0, 0, 0, 0, 0, 0}}, /* CrackStart */
+ {0, 2147483647, 0, 1, 1, 3, 9, -1, -1, sm8, 1, ss8, 1, sl8, 0, {0, 0, 0, 0, 0, 0, 0}}, /* Void */
+ {0, 2147483647, 0, 1, 1, 0, -1, -1, -1, sm9, 1, ss9, 1, sl9, 0, {0, 0, 0, 0, 0, 0, 0}}, /* CrackEnd */
+ {10, 2147483647, 0.6f, 1, 1, 3, 11, -1, -1, sm10, 1, ss10, 1, sl10, 0, {0, 0, 0, 0, 0, 0, 0}}, /* StartFloats */
+ {0, 2147483647, 1.0f, 2, 3, 3, 9, -1, -1, sm11, 2, ss11, 2, sl11, 0, {0, 0, 0, 0, 0, 0, 0}}, /* Floats */
+ {0, 2147483647, 1.0f, 3, 5, 0, -1, -1, -1, sm12, 5, ss12, 4, sl12, 0, {0, 0, 0, 0, 0, 0, 0}}, /* Snowmen fields */
+ {0, 2147483647, 1.0f, 0, 0, 4, -1, 64, 65, sm13, 1, ss13, 1, sl13, 0, {45, 0.7f, 5.0f, 0.1f, 0.75f, 0.95f, 100.0f}}, /* SnowBalls */
+ {5, 2147483647, 1.0f, 3, 6, 0, -1, -1, -1, sm14, 3, ss14, 3, sl14, 0, {0, 0, 0, 0, 0, 0, 0}}, /* Stones */
};
static const uint16_t bs0[] = {0};
static const uint16_t bs1[] = {1,2,3,4,5,7,10};
diff --git a/games/snowrider/src/data.h b/games/snowrider/src/data.h
index bde1ecd0..acd55987 100644
--- a/games/snowrider/src/data.h
+++ b/games/snowrider/src/data.h
@@ -16,15 +16,16 @@ enum { C_BOX, C_SPHERE, C_CAPSULE, C_MESH };
enum { L_SURFACE = 1, L_OBSTACLE = 2, L_BREAK = 4, L_GIFT = 8 };
typedef struct { uint8_t kind, layer, trigger, dir_or_mesh; float m[12]; float r, h; } Coll;
#define COLL_MESH(c) ((c)->dir_or_mesh)
-/* flags: 1 gift, 2 breaks into pieces (chunks[pieces]), 4 a physics body, 16 a snowball spawner at spawner */
-enum { PF_GIFT = 1, PF_BREAK = 2, PF_BODY = 4, PF_SPAWNER = 16 };
+/* flags: 1 gift, 2 breaks into pieces (chunks[pieces]), 4 a physics body, 8 snowballs meeting it go (SnowballDestroy),
+ * 16 a snowball spawner at spawner */
+enum { PF_GIFT = 1, PF_BREAK = 2, PF_BODY = 4, PF_BALL_END = 8, PF_SPAWNER = 16 };
typedef struct { const Part *parts; const Coll *colls; uint8_t nparts, ncolls, flags; int16_t pieces, rand; float spawner[3]; } Prefab;
typedef struct { uint16_t prefab; float pos[3], rot[4], scale[3]; } Obj;
typedef struct { const Obj *obj; uint16_t n; } Chunk;
/* modifiers: tunnel (list: tunnels put in chunk 1 and 2), crack start (a ramp chunk, b side ramp chunk), next (the
* structure after it is next), snowballs (a start chunk, b end chunk, a spawner rolling ball) */
enum { MOD_NONE, MOD_TUNNEL, MOD_CRACKSTART, MOD_NEXT, MOD_SNOWBALLS };
-typedef struct { uint16_t prefab; float interval, speed, randomness, min_size, max_size; } Balls;
+typedef struct { uint16_t prefab; float interval, speed, randomness, min_size, max_size, force; } Balls;
typedef struct { int32_t min_score, max_score; float prob; uint8_t min_len, max_len, mod; int16_t next, a, b;
const uint16_t *mid; uint8_t nmid; const uint16_t *side; uint8_t nside; const uint16_t *list; uint8_t nlist; Balls balls; } Struct;
typedef struct { uint8_t min_len, max_len; const uint16_t *structs; uint8_t n; } Biome;
@@ -63,9 +64,10 @@ extern const uint8_t palette888[][3];
#define SLED_JUMPSPEED 3.5f
/* the scene */
#define GRAVITY_ACC 6.0f
+#define PHYS_GRAVITY 3.0f
#define POINT_POS {0, -0.009f, 0.36f}
-#define NRAYS 4
-#define RAYS {{0, 0.2f, 0.6f}, {0.2f, 0.2f, 0.6f}, {-0.2f, 0.2f, 0.6f}, {0, 0.05f, 0.6f}}
+#define NRAYS 3
+#define RAYS {{0, 0.2f, 0.6f}, {0.2f, 0.2f, 0.6f}, {-0.2f, 0.2f, 0.6f}}
#define RAY_LEN 1.0f
#define CAM_ROT_AMPLIFY {-0.2f, 0.15f, 0.25f}
#define CAM_OFFSET {0, 0.5f, -0.8f}
diff --git a/games/snowrider/src/draw.c b/games/snowrider/src/draw.c
index d65d4dfd..04d54269 100644
--- a/games/snowrider/src/draw.c
+++ b/games/snowrider/src/draw.c
@@ -11,10 +11,11 @@
#include "../../common/np_text.h"
#define VIEW 62.0f /* metres ahead drawn */
-#define LOD_FAR 22.0f /* the far meshes past this */
+#define LOD_FAR 22.0f /* the far meshes past this, at most */
#define SHADES 32
static uint16_t shade_lut[NCOLOURS][SHADES];
+static float lod = LOD_FAR; /* (nearer when the polygons did not all fit last frame) */
static uint16_t sky_lut[64];
static float focal;
static const float light[3] = LIGHT_DIR;
@@ -74,8 +75,14 @@ static void sky(void) {
if ((int)(e0 * 64) == (int)(e1 * 64)) {
uint16_t c = sky_at(e0);
for (int x = 0; x < SCREEN_W; x++) row[x] = c;
- } else
- for (int x = 0; x < SCREEN_W; x++) row[x] = sky_at(e0 + (e1 - e0) * (float)x / SCREEN_W);
+ } else {
+ /* (a leaning camera: the height steps along the row, in 1/65536 of the table's) */
+ int32_t i = (int32_t)((e0 * 64 + 16) * 65536), di = (int32_t)((e1 - e0) * 64 * 65536 / SCREEN_W);
+ for (int x = 0; x < SCREEN_W; x++, i += di) {
+ int k = i >> 16;
+ row[x] = sky_lut[k < 0 ? 0 : k > 63 ? 63 : k];
+ }
+ }
}
}
@@ -133,7 +140,7 @@ static void draw_prefab(int prefab, const float m[12]) {
if (vz + r < 0.1f || vz - r > VIEW) continue;
if (fabsf(vx) - r * 1.5f > (vz + r) * (SCREEN_W / 2 + 8) / focal) continue;
if (fabsf(vy) - r * 1.5f > (vz + r) * (SCREEN_H / 2 + 8) / focal) continue;
- draw_mesh(&rmeshes[vz - r > LOD_FAR ? pt->far : pt->near], W);
+ draw_mesh(&rmeshes[vz - r > lod ? pt->far : pt->near], W);
}
}
@@ -143,20 +150,22 @@ static V3 to_cam(float x, float y, float z) {
return (V3){R[0] * dx + R[1] * dy + R[2] * dz, R[3] * dx + R[4] * dy + R[5] * dz, R[6] * dx + R[7] * dy + R[8] * dz};
}
-/* the sled's shadow: its box laid on the snow under it, pushed away from the sun by its height over the snow */
+/* the sled's shadow (the sun's): the bottom of its box, each corner cast along the sun's light onto the snow under it */
static void sled_shadow(int k) {
const Skin *sk = &skins[k];
float m[12];
sled_model_matrix(m);
- float ground = sled.py + 0.02f, lift = (sled.y + sled.model_y + sk->box_c[1]) - ground;
- if (lift < 0) lift = 0;
- float sx = -light[0] / light[1] * lift, sz = -light[2] / light[1] * lift;
V3 p[4];
for (int i = 0; i < 4; i++) {
- float c[3] = {sk->box_c[0] + (i == 1 || i == 2 ? sk->box_h[0] : -sk->box_h[0]) * 0.9f, sk->box_c[1],
- sk->box_c[2] + (i >= 2 ? -sk->box_h[2] : sk->box_h[2]) * 0.9f}, w[3];
+ float c[3] = {sk->box_c[0] + (i == 1 || i == 2 ? sk->box_h[0] : -sk->box_h[0]) * 0.9f, sk->box_c[1] - sk->box_h[1],
+ sk->box_c[2] + (i >= 2 ? -sk->box_h[2] : sk->box_h[2]) * 0.9f}, w[3], dn[3] = {0, -1, 0};
m_point(m, c, w);
- p[i] = to_cam(w[0] + sx, ground, w[2] + sz);
+ float o[3] = {w[0], w[1] + 0.3f, w[2]};
+ Hit h;
+ if (!ray_cast(o, dn, 6, L_SURFACE, &h)) return; /* (over a hole: no snow to fall on) */
+ float lift = w[1] - h.p[1];
+ lift = lift < 0 ? 0 : lift;
+ p[i] = to_cam(w[0] - light[0] / light[1] * lift, h.p[1] + 0.02f, w[2] - light[2] / light[1] * lift);
}
r_poly_cam(p, 4, 0x2945, P_ALPHA | P_TWOSIDED, 70);
}
@@ -173,7 +182,7 @@ static void draw_world(void) {
sled_model_matrix(m);
int k = screen == S_SLEDS ? shop_skin : skin;
draw_prefab(skins[k].prefab, m);
- if (sled.pgrounded || sled.py > sled.y - 3) sled_shadow(k);
+ sled_shadow(k);
}
for (int i = 0; i < MAXP_PIECES; i++)
if (pieces[i].alive) {
@@ -183,15 +192,18 @@ static void draw_world(void) {
}
for (int i = 0; i < MAXB; i++)
if (balls[i].alive) draw_prefab(ball_inst[i].prefab, ball_inst[i].m);
- /* the slope, nearest structures first */
+ /* the slope, nearest first 5 m at a time: when the polygons do not all fit, the farthest are left out */
float z = cam_pos[2];
- for (int pass = 0; pass < 2; pass++)
+ for (int band = 0; band * 5 < VIEW + 20; band++)
for (int i = 0; i < MAXI; i++) {
const Inst *in = &insts[i];
if (!in->alive) continue;
- bool near = in->lo[2] < z + 25 && in->hi[2] > z - 10;
- if (near == (pass == 0)) draw_prefab(in->prefab, in->m);
+ float d = fmaxf(fmaxf(in->lo[2] - z, z - in->hi[2]), 0);
+ if ((int)(d / 5) == band) draw_prefab(in->prefab, in->m);
}
+ /* (the far meshes come nearer while it is full, and go back out as room comes back) */
+ if (r_full()) lod = fmaxf(lod - 1, 4);
+ else if (r_count() < 1300) lod = fminf(lod + 0.25f, LOD_FAR);
}
/* ---------------------------------------------------------------- over the picture */
@@ -345,18 +357,24 @@ static void overlay(void) {
number(s, score);
outlined(&np_font_title, SCREEN_W / 2, score_pop > 0 ? 44 : 40, s, WHITE);
}
- gifts_counter(mode == M_PLAY ? gifts_game : gifts);
+ /* (the play screen's gifts are all of them; the end screen has the run's) */
+ if (mode == M_PLAY) gifts_counter(gifts);
if (mode == M_END && end_wait > 1.2f) {
gfx_fill_alpha(0, 0, SCREEN_W, SCREEN_H, 0, 80);
- panel(70, 40, 180, 172);
- gfx_text_center(&np_font_body, 160, 66, best_now ? T("New best!") : T("Score"), best_now ? GOLD : WHITE, 256);
+ panel(70, 34, 180, 186);
+ gfx_text_center(&np_font_body, 160, 58, best_now ? T("New best!") : T("Score"), best_now ? GOLD : WHITE, 256);
number(s, score);
- gfx_text_center(&np_font_title, 160, 102, s, WHITE, 256);
+ gfx_text_center(&np_font_title, 160, 92, s, WHITE, 256);
number(s, best);
- gfx_text(&np_font_body, 92, 130, T("Best"), WHITE, 200);
- gfx_text_right(&np_font_body, 228, 130, s, GOLD, 256);
- choice(160, 166, 140, T("Play again"), sel == 0);
- choice(160, 196, 140, T("Menu"), sel == 1);
+ gfx_text(&np_font_body, 92, 118, T("Best"), WHITE, 200);
+ gfx_text_right(&np_font_body, 228, 118, s, GOLD, 256);
+ s[0] = '+';
+ number(s + 1, gifts_game);
+ int w = gfx_text_width(&np_font_body, s);
+ gift_icon(160 - (w + 22) / 2, 128, 16);
+ gfx_text(&np_font_body, 160 - (w + 22) / 2 + 22, 144, s, WHITE, 256);
+ choice(160, 178, 140, T("Play again"), sel == 0);
+ choice(160, 206, 140, T("Menu"), sel == 1);
}
}
if (screen == S_GUIDE) {
@@ -377,6 +395,7 @@ static void overlay(void) {
else
choice(160, 132, 130, T("No"), sel == 0), choice(160, 162, 130, T("Yes"), sel == 1);
}
+ if (fade > 0) gfx_fill_alpha(0, 0, SCREEN_W, SCREEN_H, 0, (int)(fade * 256)); /* (over everything) */
}
void draw_frame(void) {
diff --git a/games/snowrider/src/game.c b/games/snowrider/src/game.c
index 3a71c021..27abd989 100644
--- a/games/snowrider/src/game.c
+++ b/games/snowrider/src/game.c
@@ -1,7 +1,7 @@
/* Snow Rider 3D: the sled, the camera and the game's moments, as the game's scripts have them.
*
* PlayerControl steers (left and right turn the sled up to 120 degrees, held jump jumps whenever it lands),
- * drives it ahead at a speed growing with the score, and ends the run when one of its four collision rays meets
+ * drives it ahead at a speed growing with the score, and ends the run when one of its three collision rays meets
* an obstacle or it falls. SledgePoint keeps the sled's point on the snow, with its gravity and its jump.
* CameraControlC follows the sled's camera point from behind, leaning with the turns and the slopes. A crash
* breaks the sled into its pieces, slows time down (SlowMotion) and turns the camera around them. */
@@ -62,6 +62,9 @@ static void shake_step(float unscaled) {
cam_offset[1] = (noise1(n + 517.3f) * 2 - 1) * 0.1f * (1 - fade);
}
+/* ---------------------------------------------------------------- the screen from black (TransitionControl) */
+float fade = 1; /* black over the picture (draw.c): from 1 at the start and on the way to the menu, to 0 in 1 s */
+
/* ---------------------------------------------------------------- slow motion */
static float slow_from, slow_to = 1, slow_time, slow_p = 1;
static void slow(float time, float amount) { slow_from = time_scale, slow_to = amount, slow_time = time, slow_p = time > 0 ? 0 : 1; }
@@ -165,7 +168,7 @@ static void control(uint32_t keys, float dt) {
static void end_run(void);
-/* the four rays ahead of the sled, swept as far as it goes in a step */
+/* the three rays ahead of the sled (the game switches its fourth, low one off), swept as far as it goes in a step */
static bool collision(float dt) {
float m[12], sweep = sled.speed * dt > RAY_LEN ? sled.speed * dt : RAY_LEN, f0[3] = {0, 0, 1}, f[3];
sled_model_matrix(m);
@@ -182,14 +185,16 @@ static bool collision(float dt) {
static void touched(Inst *in, const Coll *c) {
const Prefab *pf = &prefabs[in->prefab];
- float at[3] = {in->m[3], in->m[7], in->m[11]}, push[3] = {0, 0, 0};
- /* (its turn, without its size) */
- float sx = sqrtf(in->m[0] * in->m[0] + in->m[4] * in->m[4] + in->m[8] * in->m[8]);
- float sy = sqrtf(in->m[1] * in->m[1] + in->m[5] * in->m[5] + in->m[9] * in->m[9]);
- float sz = sqrtf(in->m[2] * in->m[2] + in->m[6] * in->m[6] + in->m[10] * in->m[10]);
- float r00 = in->m[0] / sx, r11 = in->m[5] / sy, r22 = in->m[10] / sz;
+ float at[3] = {in->m[3], in->m[7], in->m[11]}, push[3] = {0, 0, 0}, im[12];
+ /* (its turn, without its size: Transform.rotation, which a mirrored chunk's -1 does not turn, so that undone) */
+ float mirror = m_det(in->m) < 0 ? -1 : 1;
+ for (int i = 0; i < 12; i++) im[i] = i < 3 ? in->m[i] * mirror : in->m[i];
+ float sx = sqrtf(im[0] * im[0] + im[4] * im[4] + im[8] * im[8]);
+ float sy = sqrtf(im[1] * im[1] + im[5] * im[5] + im[9] * im[9]);
+ float sz = sqrtf(im[2] * im[2] + im[6] * im[6] + im[10] * im[10]);
+ float r00 = im[0] / sx, r11 = im[5] / sy, r22 = im[10] / sz;
float w = sqrtf(fmaxf(0, 1 + r00 + r11 + r22)) / 2, k = w > 1e-4f ? 1 / (4 * w) : 0;
- Quat q = {(in->m[9] / sy - in->m[6] / sz) * k, (in->m[2] / sz - in->m[8] / sx) * k, (in->m[4] / sx - in->m[1] / sy) * k, w};
+ Quat q = {(im[9] / sy - im[6] / sz) * k, (im[2] / sz - im[8] / sx) * k, (im[4] / sx - im[1] / sy) * k, w};
if (w <= 1e-4f) q = (Quat){0, 0, 0, 1};
if (c->layer & L_BREAK) shake(6);
if (c->layer & L_GIFT) gifts++, gifts_game++;
@@ -313,9 +318,8 @@ static void pieces_step(float dt) {
/* ---------------------------------------------------------------- the camera (CameraControlC) */
static float pivot[3], start_pos[3], cam_local[3];
static Quat pivot_rot, start_rot, cam_local_rot = {0, 0, 0, 1};
-static float start_time, end_rx, end_ry, end_dir;
+static float start_time, end_rx, end_ry, end_dir, end_pivot[3];
static bool locked;
-static int end_piece;
static void cam_intro(void) {
pivot[0] = 2.5f, pivot[1] = 10, pivot[2] = 10;
@@ -324,11 +328,21 @@ static void cam_intro(void) {
cam_local_rot = (Quat){0, 0, 0, 1};
}
+/* OnMain: the pivot at the camp's CameraPoint, turned as it is, the camera 2 m ahead of it */
static void cam_main(void) {
+ const float p[3] = CAMP_CAM_POINT, q[4] = CAMP_CAM_ROT;
+ for (int k = 0; k < 3; k++) pivot[k] = p[k];
+ pivot_rot = (Quat){q[0], q[1], q[2], q[3]};
+ cam_local[0] = 0, cam_local[1] = 0, cam_local[2] = 2;
+ cam_local_rot = (Quat){0, 0, 0, 1};
+}
+
+/* MainControl: it turns smoothly to the menu's angle, the sleds' (OnSleds: (1 - 1) * 72 - 6); (back from the
+ * sleds' own camera, the pivot and camera go back too) */
+static void cam_main_step(void) {
const float p[3] = CAMP_CAM_POINT;
for (int k = 0; k < 3; k++) pivot[k] = p[k];
- /* MainControl turns the pivot to the menu's angle: (1 - 1) * 72 - 6 */
- pivot_rot = q_euler(0, -6, 0);
+ pivot_rot = q_lerp(pivot_rot, q_euler(0, -6, 0), blend(0.1f));
cam_local[0] = 0, cam_local[1] = 0, cam_local[2] = 2;
cam_local_rot = (Quat){0, 0, 0, 1};
}
@@ -375,15 +389,27 @@ static void choose_angle(void) {
end_dir = end_ry < 0 ? 1 : -1;
}
+/* EndRoutine: the camera turns around the broken sled's PhysicsBody (its pieces' empty PlayerCameraPivot, which
+ * stays where it was left: it has no body). The camera's place is its own way ahead at the crash, backwards twice,
+ * and its turn the PhysicsBody's, both taken in the turning pivot: it looks at the pivot from where it came. */
+static void cam_end_start(void) {
+ const Chunk *c = &chunks[skins[skin].pieces];
+ const Obj *o = &c->obj[0];
+ for (int i = 0; i < c->n; i++)
+ if (!prefabs[c->obj[i].prefab].nparts && !prefabs[c->obj[i].prefab].ncolls) o = &c->obj[i];
+ float m[12];
+ sled_model_matrix(m);
+ for (int k = 0; k < 3; k++) end_pivot[k] = m[k * 4 + 3] + o->pos[k], cam_local[k] = cam_rot[6 + k] * -2;
+ cam_local_rot = q_mul(q_mul(sled.yaw, sled.pitch), (Quat){o->rot[0], o->rot[1], o->rot[2], o->rot[3]});
+ choose_angle();
+}
+
+/* EndControl */
static void cam_end(float dt) {
- Piece *p = &pieces[end_piece];
if (end_ry > -70 && end_ry < 70) end_ry += 30 * end_dir * dt;
else choose_angle();
pivot_rot = q_euler(end_rx, end_ry, 0);
- if (p->alive)
- for (int k = 0; k < 3; k++) pivot[k] = p->p[k];
- cam_local[0] = 0, cam_local[1] = 0, cam_local[2] = -2;
- cam_local_rot = (Quat){0, 0, 0, 1};
+ for (int k = 0; k < 3; k++) pivot[k] = end_pivot[k];
}
/* the sleds: turning slowly around the sled shown (as the shop's stand turns its sleds) */
@@ -422,6 +448,7 @@ static void go_main(void) {
sled.prev_h = sled.py;
cam_main();
slow(0, 1);
+ fade = 1;
}
static void go_play(void) {
@@ -444,11 +471,8 @@ static void end_run(void) {
float m[12];
sled_model_matrix(m);
float at[3] = {m[3], m[7], m[11]}, push[3] = {0, 0, 0};
- int first = 0;
- while (first < MAXP_PIECES && pieces[first].alive) first++;
pieces_spawn(skins[skin].pieces, at, q_mul(sled.yaw, sled.pitch), push);
- end_piece = first < MAXP_PIECES ? first : 0;
- choose_angle();
+ cam_end_start();
shake(3);
slow(0.3f, 0.05f);
end_wait = 0;
@@ -476,7 +500,7 @@ void game_step(uint32_t keys, uint32_t hit) {
if (up) sel = (sel + n - 1) % n;
if (down) sel = (sel + 1) % n;
if (screen == S_PAUSE && (ok || back)) {
- if (back || sel == 0) screen = S_NONE;
+ if (back || sel == 0) screen = S_NONE, time_scale = 0.02f, slow(1, 1); /* (GUIControl: time comes back in 1 s) */
else if (sel == 1) go_main(), go_play();
else screen = S_ASK, sel = 0;
} else if (screen == S_ASK && (ok || back)) {
@@ -528,6 +552,7 @@ void game_step(uint32_t keys, uint32_t hit) {
float dt = DT_REF * time_scale;
game_time += dt;
shake_step(DT_REF);
+ fade = fade > DT_REF ? fade - DT_REF : 0;
if (mode == M_END) {
if (end_wait < 1.2f && end_wait + DT_REF >= 1.2f) sel = 0;
end_wait += DT_REF;
@@ -550,6 +575,6 @@ void game_step(uint32_t keys, uint32_t hit) {
if (mode == M_PLAY) cam_play();
else if (mode == M_END) cam_end(dt);
else if (mode == M_MAIN && screen == S_SLEDS) cam_show();
- else if (mode == M_MAIN) cam_main();
+ else if (mode == M_MAIN) cam_main_step();
cam_apply();
}
diff --git a/games/snowrider/src/r3d.c b/games/snowrider/src/r3d.c
index 6bd2b655..4c3222af 100644
--- a/games/snowrider/src/r3d.c
+++ b/games/snowrider/src/r3d.c
@@ -88,15 +88,18 @@ bool r_project(V3 p, float *sx, float *sy) {
}
#ifdef HOST
+int r_dropped; /* (polygons left out this frame: the list was full) */
uint16_t r_heat[SCREEN_W * SCREEN_H]; /* (pixels tried at each place, this frame) */
#endif
void r_begin(void) {
npolys = nverts = nattr = nuv = nalpha = 0;
#ifdef HOST
+ r_dropped = 0;
for (int i = 0; i < SCREEN_W * SCREEN_H; i++) r_heat[i] = 0;
#endif
}
int r_count(void) { return npolys; }
+bool r_full(void) { return npolys >= MAXP * 19 / 20; }
uint32_t r_mix888(uint32_t a, uint32_t b, int t) {
uint32_t rb = (a & 0xFF00FF) * (uint32_t)(256 - t) + (b & 0xFF00FF) * (uint32_t)t;
@@ -145,6 +148,9 @@ static bool fit(const float *x, const float *y, const float *w, float *a, float
/* projects, checks and keeps a polygon in camera space */
static void emit(CV *p, int n, int kind, uint16_t color, int flags, int alpha, uint16_t avg) {
+#ifdef HOST
+ r_dropped += npolys >= MAXP;
+#endif
if (npolys >= MAXP || nverts + MAXN > MAXV || ((kind == K_SHADE || kind == K_TEX) && nattr + MAXN > MAXA)) return;
CV b1[MAXN], b2[MAXN];
int behind = 0;
diff --git a/games/snowrider/src/r3d.h b/games/snowrider/src/r3d.h
index 75201f35..492483e9 100644
--- a/games/snowrider/src/r3d.h
+++ b/games/snowrider/src/r3d.h
@@ -101,6 +101,7 @@ void r_box(V3 c, V3 ax, V3 ay, V3 az, const uint32_t *rgb6, int skip);
/* an axis-aligned box from (x0,y0,z0) to (x1,y1,z1), one colour lit by face */
void r_cube(float x0, float y0, float z0, float x1, float y1, float z1, uint32_t rgb, int skip);
int r_count(void); /* polygons this frame */
+bool r_full(void); /* the list is (nearly) full: what comes next may be left out */
/* sine and cosine (short series: no C library) */
void r_sincos(float a, float *s, float *c);
diff --git a/games/snowrider/src/sr.h b/games/snowrider/src/sr.h
index 2069d372..1d2f9112 100644
--- a/games/snowrider/src/sr.h
+++ b/games/snowrider/src/sr.h
@@ -64,13 +64,14 @@ void world_start(void); /* GGen.GenerateStartLevel */
bool world_update(float target_z); /* GGen.Update: true when a structure was made (OnGenChunk) */
void world_camp(bool on); /* CampControl */
void world_balls(float dt); /* the snowballs rolling */
-/* snowballs: drawn like the rest */
+/* snowballs (x, y their middle, r their collider's radius, k the ground's slope under them): drawn like the rest */
typedef struct {
- float x, y, z, r, vx, spin;
+ float x, y, z, r, vx, vy, k, spin;
int8_t dir;
- bool alive;
+ uint8_t slot;
+ bool alive, ground;
} Ball;
-#define MAXB 14
+#define MAXB 24
extern Ball balls[MAXB];
extern uint16_t ball_prefab;
extern Inst ball_inst[MAXB];
@@ -97,6 +98,7 @@ enum { S_NONE, S_PAUSE, S_ASK, S_SLEDS, S_END, S_GUIDE };
extern bool guide_read;
extern float score_pop, end_wait;
extern float time_scale;
+extern float fade;
typedef struct {
float x, y, z; /* the Sledge's place (y stays) */
float hrot, vrot; /* where it is steered, and the slope's angle */
diff --git a/games/snowrider/src/world.c b/games/snowrider/src/world.c
index 7c689ffd..824a6646 100644
--- a/games/snowrider/src/world.c
+++ b/games/snowrider/src/world.c
@@ -22,14 +22,15 @@ uint16_t ball_prefab;
static struct {
int index, first, n;
bool used;
- float spawner[3];
- bool has_spawner;
+ float spawner[3], end_lo[3], end_hi[3]; /* the snowballs' spawner, the box where they go (SnowballDestroy) */
+ bool has_spawner, has_end;
int balls_dir;
- float ball_timer, ball_interval, ball_speed, ball_random, ball_min, ball_max;
+ float ball_timer;
+ const Balls *bp;
} slots[NSLOTS];
-/* GGen's state (currentStruct and currentStructLength stay from a run to the next, as there) */
-static int gift_chunk, cur_biome = -1, biome_len, cur_struct, struct_len;
+/* GGen's state (giftChunk, currentStruct and currentStructLength stay from a run to the next, as there) */
+static int gift_chunk = -1, cur_biome = -1, biome_len, cur_struct, struct_len;
int struct_index;
float generate_distance;
static int chunk_data[STRUCT_W];
@@ -76,19 +77,22 @@ static Inst *place(Inst *in, int prefab, const float m[12]) {
return in;
}
+static void drop_balls(int s) {
+ for (int b = 0; b < MAXB; b++)
+ if (balls[b].slot == s) balls[b].alive = false, ball_inst[b].alive = 0;
+ slots[s].balls_dir = 0;
+}
+
static void drop_slot(int s) {
slots[s].used = false;
for (int i = slots[s].first; i < slots[s].first + slots[s].n; i++) insts[i % MAXI].alive = 0;
- float z0 = slots[s].index * CHUNK_Z;
- for (int b = 0; b < MAXB; b++)
- if (balls[b].alive && balls[b].z >= z0 - 1 && balls[b].z < z0 + CHUNK_Z + 1) balls[b].alive = false;
- slots[s].balls_dir = 0;
+ drop_balls(s);
}
void world_clear(void) {
for (int s = 0; s < NSLOTS; s++) slots[s].used = false;
for (int i = 0; i < MAXI; i++) insts[i].alive = 0;
- for (int b = 0; b < MAXB; b++) balls[b].alive = false;
+ for (int b = 0; b < MAXB; b++) balls[b].alive = false, ball_inst[b].alive = 0;
ninsts = 0;
}
@@ -157,8 +161,10 @@ static void before_apply(void) {
if (score < 31) {
chunk_data[1] = s->list[rnd_int(0, s->nlist)];
chunk_data[2] = s->list[rnd_int(0, s->nlist)];
- } else
- chunk_data[rnd_int(1, 3)] = s->list[rnd_int(0, s->nlist)];
+ } else {
+ int i = rnd_int(1, 3); /* (the place drawn before the tunnel, as C# does) */
+ chunk_data[i] = s->list[rnd_int(0, s->nlist)];
+ }
} else if (s->mod == MOD_CRACKSTART) {
int i = rnd_int(0, STRUCT_W);
chunk_data[i] = i < 1 || i >= STRUCT_W - 1 ? s->b : s->a;
@@ -208,19 +214,23 @@ static void generate_chunk(int j, int chunk_index, float zs) {
m_point(m, prefabs[pre].spawner, slots[slot_now].spawner);
slots[slot_now].has_spawner = true;
}
+ if (prefabs[pre].flags & PF_BALL_END) {
+ for (int k = 0; k < 3; k++) slots[slot_now].end_lo[k] = insts[idx].lo[k], slots[slot_now].end_hi[k] = insts[idx].hi[k];
+ slots[slot_now].has_end = true;
+ }
}
}
+/* SnowBallSpawner.SpawnBall: at rest, dx along the way it rolls from the spawner, its size random (SnowBall.Start) */
static void spawn_ball(int s, float dx) {
- for (int b = 0; b < MAXB; b++)
- if (!balls[b].alive) {
- Ball *bl = &balls[b];
- bl->alive = true, bl->dir = (int8_t)slots[s].balls_dir;
- bl->x = slots[s].spawner[0] + dx * bl->dir, bl->y = slots[s].spawner[1], bl->z = slots[s].spawner[2];
- bl->r = rnd_range(slots[s].ball_min, slots[s].ball_max);
- bl->vx = dx > 0 ? slots[s].ball_speed : 0, bl->spin = 0;
- return;
- }
+ int b = 0;
+ while (b < MAXB && balls[b].alive) b++;
+ if (b == MAXB) return;
+ Ball *bl = &balls[b];
+ bl->alive = true, bl->ground = false, bl->slot = (uint8_t)s, bl->dir = (int8_t)slots[s].balls_dir;
+ bl->x = slots[s].spawner[0] + dx * bl->dir, bl->y = slots[s].spawner[1], bl->z = slots[s].spawner[2];
+ bl->r = rnd_range(slots[s].bp->min_size, slots[s].bp->max_size) * prefabs[slots[s].bp->prefab].colls[0].m[0];
+ bl->vx = bl->vy = bl->k = bl->spin = 0;
}
static void generate_struct(void) {
@@ -235,7 +245,7 @@ static void generate_struct(void) {
s = old;
}
slot_now = s;
- slots[s].used = true, slots[s].index = struct_index, slots[s].first = ninsts, slots[s].n = 0, slots[s].has_spawner = false, slots[s].balls_dir = 0;
+ slots[s].used = true, slots[s].index = struct_index, slots[s].first = ninsts, slots[s].n = 0, slots[s].has_spawner = false, slots[s].has_end = false, slots[s].balls_dir = 0;
choose_struct();
for (int i = 0; i < STRUCT_W; i++) choose_chunk(i);
const Struct *st = &structs[cur_struct];
@@ -254,8 +264,7 @@ static void generate_struct(void) {
if (st->mod == MOD_SNOWBALLS && slots[s].has_spawner) {
const Balls *b = &st->balls;
ball_prefab = b->prefab;
- slots[s].balls_dir = snow_dir, slots[s].ball_interval = b->interval, slots[s].ball_speed = b->speed;
- slots[s].ball_random = b->randomness, slots[s].ball_min = b->min_size, slots[s].ball_max = b->max_size;
+ slots[s].balls_dir = snow_dir, slots[s].bp = b;
slots[s].ball_timer = b->interval * rnd_range(1 - b->randomness, 1 + b->randomness);
for (float d = 0; d < STRUCT_W * CHUNK_X; d += b->speed * b->interval) spawn_ball(s, d);
} else if (st->next >= 0)
@@ -267,7 +276,7 @@ static void generate_struct(void) {
void world_start(void) {
world_clear();
- gift_chunk = rnd_int(0, STRUCT_W - 1);
+ if (gift_chunk < 0) gift_chunk = rnd_int(0, STRUCT_W - 1); /* (GGen.Awake: once) */
struct_index = 0;
generate_distance = 10;
cur_biome = 0;
@@ -285,30 +294,60 @@ bool world_update(float target_z) {
return false;
}
-/* the snowballs: pushed sideways up to 5 m/s, rolling on the ground (Snowball Big has a rigidbody) */
+/* the snowballs: Snowball Big's rigidbody (its z held), falling with Unity's gravity, pushed sideways while slower
+ * than 5 m/s (SnowBall.Update: a force for the frame, so force * dt * fixedDeltaTime a step), rolling on the ground
+ * (a ball rolling gets 5/7 of a push or of the slope's pull, and keeps 5/7 of its speed when it lands), until it
+ * meets its structure's SnowballDestroy */
void world_balls(float dt) {
for (int s = 0; s < NSLOTS; s++)
if (slots[s].used && slots[s].balls_dir) {
+ /* (behind the structures kept in sight, before the camera's: its balls are not seen again) */
+ if (slots[s].index < struct_index - VISIBLE_STRUCTS - 1) {
+ drop_balls(s);
+ continue;
+ }
+ const Balls *bp = slots[s].bp;
slots[s].ball_timer -= dt;
if (slots[s].ball_timer <= 0) {
- slots[s].ball_timer += slots[s].ball_interval * rnd_range(1 - slots[s].ball_random, 1 + slots[s].ball_random);
+ slots[s].ball_timer += bp->interval * rnd_range(1 - bp->randomness, 1 + bp->randomness);
spawn_ball(s, 0);
}
}
+ float fdt = 0.02f * dt / DT_REF; /* (SlowMotion: Time.fixedDeltaTime is 0.02 s times the time scale) */
for (int b = 0; b < MAXB; b++) {
Ball *bl = &balls[b];
if (!bl->alive) continue;
- if (bl->vx < 5) bl->vx += 100 * dt * 0.02f * 60 * dt;
- bl->x += bl->vx * bl->dir * dt;
- bl->spin += bl->vx * dt / bl->r;
- float o[3] = {bl->x, bl->y + 2, bl->z}, d[3] = {0, -1, 0};
- Hit h;
- if (ray_cast(o, d, 6, L_SURFACE, &h)) bl->y = h.p[1];
- if (bl->x < -3 || bl->x > STRUCT_W * CHUNK_X + 3) bl->alive = false;
+ const Balls *bp = slots[bl->slot].bp;
+ float k = bl->k, sp = bl->ground ? fabsf(bl->vx) * sqrtf(1 + k * k) : sqrtf(bl->vx * bl->vx + bl->vy * bl->vy);
+ float push = sp < 5 ? bp->force * dt * fdt * bl->dir : 0;
+ if (bl->ground) bl->vx += (push - PHYS_GRAVITY * k / (1 + k * k) * dt) * 5 / 7;
+ else bl->vx += push, bl->vy -= PHYS_GRAVITY * dt;
+ float x0 = bl->x;
+ bl->x += bl->vx * dt;
+ /* the ground under it */
+ float o[3] = {bl->x, bl->y + bl->r, bl->z}, d[3] = {0, -1, 0}, h = -1e9f;
+ Hit hit;
+ if (ray_cast(o, d, 10, L_SURFACE, &hit)) h = hit.p[1];
+ if (bl->ground && h > bl->y - bl->r - 0.3f) {
+ if (bl->x != x0) bl->k = (h + bl->r - bl->y) / (bl->x - x0);
+ bl->y = h + bl->r;
+ } else {
+ if (bl->ground) bl->ground = false, bl->vy = bl->vx * k;
+ bl->y += bl->vy * dt;
+ if (bl->y - bl->r <= h) bl->y = h + bl->r, bl->vy = 0, bl->vx *= 5.0f / 7, bl->k = 0, bl->ground = true;
+ }
+ bl->spin += (bl->x - x0) / bl->r;
+ /* SnowBall.OnCollisionEnter: SnowballDestroy (or fallen off the world) */
+ const float *lo = slots[bl->slot].end_lo, *hi = slots[bl->slot].end_hi;
float r = bl->r;
- float sc[3] = {r, r, r}, t[3] = {bl->x, bl->y + r * 0.9f, bl->z};
- float m[12];
- m_trs(m, t, q_euler(0, 0, -bl->spin * bl->dir / DEG), sc);
+ if ((slots[bl->slot].has_end && bl->x > lo[0] - r && bl->x < hi[0] + r && bl->y > lo[1] - r && bl->y < hi[1] + r &&
+ bl->z > lo[2] - r && bl->z < hi[2] + r) || bl->y < -20 || fabsf(bl->x - STRUCT_W * CHUNK_X / 2) > 60) {
+ bl->alive = false, ball_inst[b].alive = 0;
+ continue;
+ }
+ float sc[3] = {r / prefabs[ball_prefab].colls[0].m[0], 0, 0}, t[3] = {bl->x, bl->y, bl->z}, m[12];
+ sc[1] = sc[2] = sc[0];
+ m_trs(m, t, q_euler(0, 0, -bl->spin / DEG), sc);
place(&ball_inst[b], ball_prefab, m);
}
}
diff --git a/games/snowrider/tests/play.c b/games/snowrider/tests/play.c
index 5e063b4d..2cbc332b 100644
--- a/games/snowrider/tests/play.c
+++ b/games/snowrider/tests/play.c
@@ -15,6 +15,7 @@ extern uint32_t host_time;
void host_shot(const char *path);
void host_save_dir(const char *d);
bool host_god;
+#define SNOWBALL_SIDE 43 /* SideGroundSnowball in data.c */
/* the autopilot: looks ahead along a fan of headings, steers to the clearest, jumps when it must */
static float clear_along(float yaw) {
@@ -91,6 +92,24 @@ static void test_slope(void) {
CHECK(alive > 50, "instances alive: %d", alive);
}
+static void test_balls(void) {
+ /* the snowballs: they keep coming from their hill (a ball each 0.7 s) and roll across the slope (to the other
+ * side's SnowballDestroy), and leave nothing behind */
+ world_start();
+ int on = 0, ghosts = 0;
+ float z = 0;
+ for (int i = 0; i < 60 * 300; i++) {
+ while (world_update(z += 6 * DT_REF)) {}
+ world_balls(DT_REF);
+ for (int b = 0; b < MAXB; b++) {
+ on += balls[b].alive && balls[b].x > 0 && balls[b].x < STRUCT_W * CHUNK_X && balls[b].z > z;
+ ghosts += ball_inst[b].alive && !balls[b].alive;
+ }
+ }
+ CHECK(on * DT_REF > 180, "snowballs on the slope ahead: %.0f s", on * DT_REF);
+ CHECK(!ghosts, "snowballs gone but still there: %d", ghosts);
+}
+
static void test_ride(const char *dir) {
/* the autopilot through the sled's own physics: points, gifts, and the slope under it all along */
restart(dir);
@@ -122,6 +141,34 @@ static void test_walls(const char *dir) {
}
}
+static void test_sides(void) {
+ /* from the side chunks, rays along the snow outwards and ahead: the walls and banks stop them (collision meshes
+ * with fewer triangles than the game's let them out, the snowballs' side most of all) */
+ int out = 0, out_snow = 0, n = 0;
+ for (uint32_t seed = 1; seed <= 2; seed++) {
+ rnd_seed(seed);
+ world_start();
+ for (float zs = 20; zs < 600; zs += CHUNK_Z) {
+ while (generate_distance < zs + 40) world_update(generate_distance + 1);
+ for (float z = zs + 0.5f; z < zs + CHUNK_Z; z += 0.25f)
+ for (float x = 1.5f; x < STRUCT_W * CHUNK_X; x += x == 4.5f ? 11 : 1) {
+ float o[3] = {x, 5, z}, dn[3] = {0, -1, 0};
+ Hit h;
+ if (!ray_cast(o, dn, 6, L_SURFACE, &h)) continue; /* (a crack) */
+ int pf = h.inst->prefab;
+ float gy = h.p[1], s = x < 10 ? -1 : 1;
+ for (float up = 0.1f; up < 0.4f; up += 0.2f)
+ for (int a = 0; a <= 30; a += 30) {
+ float p[3] = {x, gy + up, z}, d[3] = {s * cosf(a * DEG), 0, sinf(a * DEG)};
+ n++;
+ if (!ray_cast(p, d, 12, L_OBSTACLE | L_SURFACE, &h)) out++, out_snow += pf == SNOWBALL_SIDE;
+ }
+ }
+ }
+ }
+ CHECK(out * 25 < n && out_snow < 30, "rays out of the slope: %d of %d, %d by the snowballs", out, n, out_snow);
+}
+
static void test_jump(const char *dir) {
restart(dir);
play_from_menu();
@@ -191,8 +238,10 @@ static void test_random(const char *dir) {
static int test(const char *dir) {
test_slope();
+ test_balls();
test_ride(dir);
test_walls(dir);
+ test_sides();
test_jump(dir);
test_saves(dir);
test_random(dir);
@@ -239,7 +288,8 @@ static int shots(const char *out, const char *script) {
char p[512];
snprintf(p, sizeof p, "%s/%s.ppm", out, shot);
host_shot(p);
- printf("%s: mode %d screen %d score %d z %.1f x %.1f, %d polygons\n", shot, mode, screen, score, sled.z, sled.x, r_count());
+ extern int r_dropped;
+ printf("%s: mode %d screen %d score %d z %.1f x %.1f, %d polygons (%d left out)\n", shot, mode, screen, score, sled.z, sled.x, r_count(), r_dropped);
shot[0] = 0;
}
if (!more && t > until + 3000) break;
diff --git a/games/snowrider/tools/gen.py b/games/snowrider/tools/gen.py
index 3dce32d0..b05b0906 100644
--- a/games/snowrider/tools/gen.py
+++ b/games/snowrider/tools/gen.py
@@ -106,7 +106,7 @@ def budget(name, n):
('camp_main', 1000, 1000), ('Cylinder', 160, 160), ('campBillboard', 70, 70),
('floating', 110, 50), ('snowball', 40, 20), ('gift', 40, 16), ('fence', 60, 24),
('skull', 60, 24), ('stump', 40, 16), ('root', 40, 16)):
- if key in name:
+ if key in name and not name.startswith('Ground'): # (Ground_WW_RV1_snowball is a wall, not a ball)
return min(n, near), min(n, far)
if name.startswith('Ground'):
return min(n, max(40, int(n * 0.36))), min(n, max(24, int(n * 0.16)))
@@ -197,10 +197,9 @@ def coll_mesh(ref):
return cmesh_key[key]
pos, nrm, uv, tris = unity.mesh(P, ref)
name = mesh_name(ref)
- target = len(tris) if len(tris) <= 260 else max(260, int(len(tris) * 0.4))
- faces = tris if target >= len(tris) else [tuple(f) for f in decimate(pos, None, None, tris, target)]
+ # (all of its triangles: fewer move the walls and ramps by up to 3 m, and leave holes the sled goes through)
pts, remap, out = [], {}, []
- for f in faces:
+ for f in tris:
t = []
for i in f:
k = tuple(round(x, 4) for x in pos[i])
@@ -268,6 +267,8 @@ def prefab(ref):
pf['colls'].append((3, lay, trig, coll_mesh(b['m_Mesh']), n.m, 0, 0))
if n.tag == 'Spawner':
pf['spawner'] = [n.m[i][3] for i in range(3)]
+ if n.tag == 'SnowballDestroy':
+ pf['flags'] |= 8
for c in n.children:
rec(c)
@@ -343,7 +344,7 @@ def struct(ref):
ball = unity.prefab(P, spb['snowballBigPrefab'])
sb = ball.comps['SnowBall'][0]
st['ball'] = (prefab(spb['snowballBigPrefab']), float(spb['interval']), float(spb['speed']), float(spb['randomness']),
- float(sb['minSize']), float(sb['maxSize']))
+ float(sb['minSize']), float(sb['maxSize']), float(sb['force']))
return struct_key[key]
@@ -401,6 +402,9 @@ rays = []
for gid, (c, b, s) in scene.items():
if c == 114 and 'rayLenght' in b:
t = scene[b['m_GameObject']['fileID']]
+ # (an inactive one never woke: its layer mask stays empty and its ray meets nothing)
+ if t[1].get('m_IsActive', '1') != '1':
+ continue
tr = [scene[x['component']['fileID']][1] for x in t[1]['m_Component'] if scene.get(x['component']['fileID'], (0,))[0] == 4][0]
rays.append((unity.v3(tr['m_LocalPosition']), float(b['rayLenght'])))
cp = [scene[x['component']['fileID']][1] for x in scene_obj('Collision Point')[0]['m_Component'] if scene[x['component']['fileID']][0] == 4][0]
@@ -408,6 +412,7 @@ sled = asset('MonoBehaviour/BasicSleds.asset')
floats = P.asset({'guid': GUID['Material/World.mat'], 'fileID': '2100000'})['m_SavedProperties']['m_Floats']
curv = float((floats if isinstance(floats, dict) else {k: v for e in floats for k, v in e.items()}).get('_Curvature', 0.004))
rs = [b for gid, (c, b, s) in scene.items() if c == 104][0]
+phys_g = float(re.search(r'm_Gravity:\s*x: \S+\s*y: (\S+)', open(os.path.join(ROOT, '..', 'ProjectSettings', 'DynamicsManager.asset')).read()).group(1))
amb = rs['m_AmbientSkyColor']
sky = P.asset({'guid': GUID['Material/SkyBox.mat'], 'fileID': '2100000'})['m_SavedProperties']['m_Colors']
sky = sky if isinstance(sky, dict) else {k: v for e in sky for k, v in e.items()}
@@ -481,10 +486,10 @@ for i, st in enumerate(structs):
c.append('static const uint16_t sl%d[] = {%s};' % (i, ','.join(map(str, st['list'] or [0]))))
c.append('const Struct structs[] = {')
for i, st in enumerate(structs):
- ball = st.get('ball', (0, 0, 0, 0, 0, 0))
- c.append(' {%d, %d, %s, %d, %d, %d, %d, %d, %d, sm%d, %d, ss%d, %d, sl%d, %d, {%d, %s, %s, %s, %s, %s}}, /* %s */' % (
+ ball = st.get('ball', (0, 0, 0, 0, 0, 0, 0))
+ c.append(' {%d, %d, %s, %d, %d, %d, %d, %d, %d, sm%d, %d, ss%d, %d, sl%d, %d, {%d, %s}}, /* %s */' % (
st['min'], st['max'], F(st['p']), st['lmin'], st['lmax'], st['mod'], st['next'], st['a'], st['b'], i, len(st['mid']), i,
- len(st['side']), i, len(st['list']), ball[0], F(ball[1]), F(ball[2]), F(ball[3]), F(ball[4]), F(ball[5]), st['name']))
+ len(st['side']), i, len(st['list']), ball[0], ', '.join(F(x) for x in ball[1:]), st['name']))
c.append('};')
for i, (name, lo, hi, ss) in enumerate(biomes):
c.append('static const uint16_t bs%d[] = {%s};' % (i, ','.join(map(str, ss))))
@@ -524,15 +529,16 @@ h = ['/* Made by tools/gen.py from Snow Rider 3D\'s Unity project: do not edit.
'enum { L_SURFACE = 1, L_OBSTACLE = 2, L_BREAK = 4, L_GIFT = 8 };',
'typedef struct { uint8_t kind, layer, trigger, dir_or_mesh; float m[12]; float r, h; } Coll;',
'#define COLL_MESH(c) ((c)->dir_or_mesh)',
- '/* flags: 1 gift, 2 breaks into pieces (chunks[pieces]), 4 a physics body, 16 a snowball spawner at spawner */',
- 'enum { PF_GIFT = 1, PF_BREAK = 2, PF_BODY = 4, PF_SPAWNER = 16 };',
+ '/* flags: 1 gift, 2 breaks into pieces (chunks[pieces]), 4 a physics body, 8 snowballs meeting it go (SnowballDestroy),',
+ ' * 16 a snowball spawner at spawner */',
+ 'enum { PF_GIFT = 1, PF_BREAK = 2, PF_BODY = 4, PF_BALL_END = 8, PF_SPAWNER = 16 };',
'typedef struct { const Part *parts; const Coll *colls; uint8_t nparts, ncolls, flags; int16_t pieces, rand; float spawner[3]; } Prefab;',
'typedef struct { uint16_t prefab; float pos[3], rot[4], scale[3]; } Obj;',
'typedef struct { const Obj *obj; uint16_t n; } Chunk;',
'/* modifiers: tunnel (list: tunnels put in chunk 1 and 2), crack start (a ramp chunk, b side ramp chunk), next (the',
' * structure after it is next), snowballs (a start chunk, b end chunk, a spawner rolling ball) */',
'enum { MOD_NONE, MOD_TUNNEL, MOD_CRACKSTART, MOD_NEXT, MOD_SNOWBALLS };',
- 'typedef struct { uint16_t prefab; float interval, speed, randomness, min_size, max_size; } Balls;',
+ 'typedef struct { uint16_t prefab; float interval, speed, randomness, min_size, max_size, force; } Balls;',
'typedef struct { int32_t min_score, max_score; float prob; uint8_t min_len, max_len, mod; int16_t next, a, b;',
' const uint16_t *mid; uint8_t nmid; const uint16_t *side; uint8_t nside; const uint16_t *list; uint8_t nlist; Balls balls; } Struct;',
'typedef struct { uint8_t min_len, max_len; const uint16_t *structs; uint8_t n; } Biome;',
@@ -552,6 +558,7 @@ h = ['/* Made by tools/gen.py from Snow Rider 3D\'s Unity project: do not edit.
('baseMoveSpeed', 'speedAcceleration', 'speedAccelerationAmplitude', 'rotationSpeed', 'rotationSmoothness', 'modelRotationSmoothness', 'jumpSpeed')] + [
'/* the scene */',
'#define GRAVITY_ACC %s' % F(float(point['gravityAcc'])),
+ '#define PHYS_GRAVITY %s' % F(-phys_g),
'#define POINT_POS {%s}' % V(unity.v3(cp['m_LocalPosition'])),
'#define NRAYS %d' % len(rays), '#define RAYS {%s}' % ', '.join('{%s}' % V(p) for p, l in rays), '#define RAY_LEN %s' % F(rays[0][1]),
'#define CAM_ROT_AMPLIFY {%s}' % V(fl(cam_mb['rotationAmplify'])), '#define CAM_OFFSET {%s}' % V(fl(cam_mb['positionOffset'])),