Checksum function reverse engineering from Banjo-Kazooie and Banjo-Tooie