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udHJpZXMgPSA0MjsKKwkJCWJyZWFrOworCQljYXNlIENISVBfUkVEV09PRDoKKwkJCW51bV9wc19ncHJzID0gOTM7CisJCQludW1fdnNfZ3BycyA9IDQ2OworCQkJbnVtX3RlbXBfZ3BycyA9IDQ7CisJCQludW1fZ3NfZ3BycyA9IDMxOworCQkJbnVtX2VzX2dwcnMgPSAzMTsKKwkJCW51bV9oc19ncHJzID0gMjM7CisJCQludW1fbHNfZ3BycyA9IDIzOworCQkJbnVtX3BzX3RocmVhZHMgPSAxMjg7CisJCQludW1fdnNfdGhyZWFkcyA9IDIwOworCQkJbnVtX2dzX3RocmVhZHMgPSAyMDsKKwkJCW51bV9lc190aHJlYWRzID0gMjA7CisJCQludW1faHNfdGhyZWFkcyA9IDIwOworCQkJbnVtX2xzX3RocmVhZHMgPSAyMDsKKwkJCW51bV9wc19zdGFja19lbnRyaWVzID0gNDI7CisJCQludW1fdnNfc3RhY2tfZW50cmllcyA9IDQyOworCQkJbnVtX2dzX3N0YWNrX2VudHJpZXMgPSA0MjsKKwkJCW51bV9lc19zdGFja19lbnRyaWVzID0gNDI7CisJCQludW1faHNfc3RhY2tfZW50cmllcyA9IDQyOworCQkJbnVtX2xzX3N0YWNrX2VudHJpZXMgPSA0MjsKKwkJCWJyZWFrOworCQljYXNlIENISVBfSlVOSVBFUjoKKwkJCW51bV9wc19ncHJzID0gOTM7CisJCQludW1fdnNfZ3BycyA9IDQ2OworCQkJbnVtX3RlbXBfZ3BycyA9IDQ7CisJCQludW1fZ3NfZ3BycyA9IDMxOworCQkJbnVtX2VzX2dwcnMgPSAzMTsKKwkJCW51bV9oc19ncHJzID0gMjM7CisJCQludW1fbHNfZ3BycyA9IDIzOworCQkJbnVtX3BzX3RocmVhZHMgPSAxMjg7CisJCQludW1fdnNfdGhyZWFkcyA9IDIwOworCQkJbnVtX2dzX3RocmVhZHMgPSAyMDsKKwkJCW51bV9lc190aHJlYWRzID0gMjA7CisJCQludW1faHNfdGhyZWFkcyA9IDIwOworCQkJbnVtX2xzX3RocmVhZHMgPSAyMDsKKwkJCW51bV9wc19zdGFja19lbnRyaWVzID0gODU7CisJCQludW1fdnNfc3RhY2tfZW50cmllcyA9IDg1OworCQkJbnVtX2dzX3N0YWNrX2VudHJpZXMgPSA4NTsKKwkJCW51bV9lc19zdGFja19lbnRyaWVzID0gODU7CisJCQludW1faHNfc3RhY2tfZW50cmllcyA9IDg1OworCQkJbnVtX2xzX3N0YWNrX2VudHJpZXMgPSA4NTsKKwkJCWJyZWFrOworCQljYXNlIENISVBfQ1lQUkVTUzoKKwkJY2FzZSBDSElQX0hFTUxPQ0s6CisJCQludW1fcHNfZ3BycyA9IDkzOworCQkJbnVtX3ZzX2dwcnMgPSA0NjsKKwkJCW51bV90ZW1wX2dwcnMgPSA0OworCQkJbnVtX2dzX2dwcnMgPSAzMTsKKwkJCW51bV9lc19ncHJzID0gMzE7CisJCQludW1faHNfZ3BycyA9IDIzOworCQkJbnVtX2xzX2dwcnMgPSAyMzsKKwkJCW51bV9wc190aHJlYWRzID0gMTI4OworCQkJbnVtX3ZzX3RocmVhZHMgPSAyMDsKKwkJCW51bV9nc190aHJlYWRzID0gMjA7CisJCQludW1fZXNfdGhyZWFkcyA9IDIwOworCQkJbnVtX2hzX3RocmVhZHMgPSAyMDsKKwkJCW51bV9sc190aHJlYWRzID0gMjA7CisJCQludW1fcHNfc3RhY2tfZW50cmllcyA9IDg1OworCQkJbnVtX3ZzX3N0YWNrX2VudHJpZXMgPSA4NTsKKwkJCW51bV9nc19zdGFja19lbnRyaWVzID0gODU7CisJCQludW1fZXNfc3RhY2tfZW50cmllcyA9IDg1OworCQkJbnVtX2hzX3N0YWNrX2VudHJpZXMgPSA4NTsKKwkJCW51bV9sc19zdGFja19lbnRyaWVzID0gODU7CisJCQlicmVhazsKKwkJY2FzZSBDSElQX1BBTE06CisJCQludW1fcHNfZ3BycyA9IDkzOworCQkJbnVtX3ZzX2dwcnMgPSA0NjsKKwkJCW51bV90ZW1wX2dwcnMgPSA0OworCQkJbnVtX2dzX2dwcnMgPSAzMTsKKwkJCW51bV9lc19ncHJzID0gMzE7CisJCQludW1faHNfZ3BycyA9IDIzOworCQkJbnVtX2xzX2dwcnMgPSAyMzsKKwkJCW51bV9wc190aHJlYWRzID0gOTY7CisJCQludW1fdnNfdGhyZWFkcyA9IDE2OworCQkJbnVtX2dzX3RocmVhZHMgPSAxNjsKKwkJCW51bV9lc190aHJlYWRzID0gMTY7CisJCQludW1faHNfdGhyZWFkcyA9IDE2OworCQkJbnVtX2xzX3RocmVhZHMgPSAxNjsKKwkJCW51bV9wc19zdGFja19lbnRyaWVzID0gNDI7CisJCQludW1fdnNfc3RhY2tfZW50cmllcyA9IDQyOworCQkJbnVtX2dzX3N0YWNrX2VudHJpZXMgPSA0MjsKKwkJCW51bV9lc19zdGFja19lbnRyaWVzID0gNDI7CisJCQludW1faHNfc3RhY2tfZW50cmllcyA9IDQyOworCQkJbnVtX2xzX3N0YWNrX2VudHJpZXMgPSA0MjsKKwkJCWJyZWFrOworCQljYXNlIENISVBfU1VNTzoKKwkJCW51bV9wc19ncHJzID0gOTM7CisJCQludW1fdnNfZ3BycyA9IDQ2OworCQkJbnVtX3RlbXBfZ3BycyA9IDQ7CisJCQludW1fZ3NfZ3BycyA9IDMxOworCQkJbnVtX2VzX2dwcnMgPSAzMTsKKwkJCW51bV9oc19ncHJzID0gMjM7CisJCQludW1fbHNfZ3BycyA9IDIzOworCQkJbnVtX3BzX3RocmVhZHMgPSA5NjsKKwkJCW51bV92c190aHJlYWRzID0gMjU7CisJCQludW1fZ3NfdGhyZWFkcyA9IDI1OworCQkJbnVtX2VzX3RocmVhZHMgPSAyNTsKKwkJCW51bV9oc190aHJlYWRzID0gMjU7CisJCQludW1fbHNfdGhyZWFkcyA9IDI1OworCQkJbnVtX3BzX3N0YWNrX2VudHJpZXMgPSA0MjsKKwkJCW51bV92c19zdGFja19lbnRyaWVzID0gNDI7CisJCQludW1fZ3Nfc3RhY2tfZW50cmll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NfdGhyZWFkcyA9IDIwOworCQkJbnVtX2dzX3RocmVhZHMgPSAyMDsKKwkJCW51bV9lc190aHJlYWRzID0gMjA7CisJCQludW1faHNfdGhyZWFkcyA9IDIwOworCQkJbnVtX2xzX3RocmVhZHMgPSAyMDsKKwkJCW51bV9wc19zdGFja19lbnRyaWVzID0gODU7CisJCQludW1fdnNfc3RhY2tfZW50cmllcyA9IDg1OworCQkJbnVtX2dzX3N0YWNrX2VudHJpZXMgPSA4NTsKKwkJCW51bV9lc19zdGFja19lbnRyaWVzID0gODU7CisJCQludW1faHNfc3RhY2tfZW50cmllcyA9IDg1OworCQkJbnVtX2xzX3N0YWNrX2VudHJpZXMgPSA4NTsKKwkJCWJyZWFrOworCQljYXNlIENISVBfVFVSS1M6CisJCQludW1fcHNfZ3BycyA9IDkzOworCQkJbnVtX3ZzX2dwcnMgPSA0NjsKKwkJCW51bV90ZW1wX2dwcnMgPSA0OworCQkJbnVtX2dzX2dwcnMgPSAzMTsKKwkJCW51bV9lc19ncHJzID0gMzE7CisJCQludW1faHNfZ3BycyA9IDIzOworCQkJbnVtX2xzX2dwcnMgPSAyMzsKKwkJCW51bV9wc190aHJlYWRzID0gMTI4OworCQkJbnVtX3ZzX3RocmVhZHMgPSAyMDsKKwkJCW51bV9nc190aHJlYWRzID0gMjA7CisJCQludW1fZXNfdGhyZWFkcyA9IDIwOworCQkJbnVtX2hzX3RocmVhZHMgPSAyMDsKKwkJCW51bV9sc190aHJlYWRzID0gMjA7CisJCQludW1fcHNfc3RhY2tfZW50cmllcyA9IDQyOworCQkJbnVtX3ZzX3N0YWNrX2VudHJpZXMgPSA0MjsKKwkJCW51bV9nc19zdGFja19lbnRyaWVzID0gNDI7CisJCQludW1fZXNfc3RhY2tfZW50cmllcyA9IDQyOworCQkJbnVtX2hzX3N0YWNrX2VudHJpZXMgPSA0MjsKKwkJCW51bV9sc19zdGFja19lbnRyaWVzID0gNDI7CisJCQlicmVhazsKKwkJY2FzZSBDSElQX0NBSUN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