//
// getNextRandom from 0x5753ec to 0x575410 (36 bytes)
//
// 3 xrefs:
// > drawLightning @ 0x5754b0
// > drawLightning @ 0x575504
// > ??> @ 0x73a70
//
// 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
//
unsigned __int64 __fastcall getNextRandom(unsigned __int64 *a1)
{
unsigned __int64 v1; // x1
v1 = 1103515245 * *a1 + 12345;
*a1 = v1;
return (v1 >> 16) & 0x7FFF;
}