//
// generateBestHash from 0x806068 to 0x8061e4 (380 bytes)
//
// 3 xrefs:
// > GJGameLevel::saveNewScore @ 0x85f7b4
// > GJGameLevel::saveNewScore @ 0x85f820
// > ??> @ 0x87f88
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:54:45 +0000
//
__int64 __fastcall generateBestHash(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8)
{
int v8; // w9
v8 = 601 * ((a1 + 7890) % 34567)
+ 967 * ((int)(abs32(a2) + 3456) % 78901)
+ ((374 * (a3 + a6) % 18477) << 6)
- 374 * (a3 + a6) % 18477
+ 27 * (125 * (a4 + a7) % 28452);
return (unsigned int)(829
* (((v8 + 87 * (7284 * (a5 + a8) % 62374) + 94819) % 94433)
^ (((v8 + 87 * (7284 * (a5 + a8) % 62374) + 94819) % 94433) >> 16))
% 77849);
}