//
// sub_14016D0E0 from 0x14016d0e0 to 0x14016d22a (330 bytes)
//
// 3 xrefs:
// > GJGameLevel::saveNewScore @ 0x14016d2e2
// > GJGameLevel::saveNewScore @ 0x14016d391
// > ??> @ 0x1406cadf4
//
// 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 sub_14016D0E0(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8)
{
int v8; // r10d
int v9; // ecx
v8 = -a2;
if ( a2 > 0 )
v8 = a2;
v9 = 87 * (7284 * (a5 + a8) % 62374)
+ 63 * (374 * (a3 + a6) % 18477)
+ 27 * (125 * (a4 + a7) % 28452)
+ 967 * ((v8 + 3456) % 78901)
+ 601 * ((a1 + 7890) % 34567)
+ 94819;
return (unsigned int)(829 * ((v9 % 94433) ^ ((v9 % 94433) >> 16)) % 77849);
}