//
// GJGameLevel::saveNewScore from 0x1000acdf0 to 0x1000acf54 (356 bytes)
//
// 2 xrefs:
// > GJGameLevel::storeNewLocalScore @ 0x1000acfcc
// > GJGameLevel::storeNewLocalScore @ 0x1000ad038
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall GJGameLevel::saveNewScore(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8)
{
int v8; // w8
int v9; // w8
if ( a2 >= 0 )
v8 = a2;
else
v8 = -a2;
v9 = (int)(967 * ((v8 + 3456) % 0x13435u)
+ 601 * ((a1 + 7890) % 34567)
- 374 * (a6 + a3) % 18477
+ ((374 * (a6 + a3) % 18477) << 6)
+ 27 * (125 * (a7 + a4) % 28452)
+ 87 * (7284 * (a8 + a5) % 62374)
+ 94819)
% 94433;
return (unsigned int)(829 * (v9 ^ (v9 >> 16)) % 77849);
}