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, 1, /*127*/
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, /*159*/
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, 1, 1, 0, 0, 1, 1, /*191*/
1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /*223*/
1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; /*255*/
UCHAR NextSeedTable[] = {
8, 8, 8, 25, 8, 8, 26, 25, 8, 48, 41, 41, 8, 8, 41, 41, 8, 8, 4, 25, 12, 8, 4, 25, 8, 8, 41, 41, 8, 8, 41, 41,
8, 8, 8, 8, 8, 8, 8, 8, 51, 51, 41, 41, 8, 8, 41, 41, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 41, 41, 8, 8, 41, 41,
8, 8, 8, 8, 8, 8, 8, 8, 59, 59, 41, 41, 8, 8, 41, 41, 22, 8, 22, 25, 22, 8, 22, 25, 59, 59, 41, 41, 59, 59, 41, 41,
37, 8, 8, 8, 8, 8, 8, 8, 59, 59, 41, 41, 8, 8, 41, 41, 22, 8, 22, 25, 22, 8, 22, 25, 59, 59, 41, 41, 59, 59, 41, 41,
8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 15, 8, 4, 25, 12, 8, 4, 25, 8, 8, 41, 41, 8, 8, 41, 41,
8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 41, 41, 8, 8, 41, 41,
38, 8, 8, 8, 8, 8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