//
// getNextRandom from 0x3c5c60 to 0x3c5c84 (36 bytes)
//
// 2 xrefs:
// > drawLightning @ 0x3c5cfa
// > drawLightning @ 0x3c5d40
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:34 +0000
//
unsigned int __fastcall getNextRandom(unsigned __int64 *a1)
{
unsigned __int64 v1; // r2
v1 = 1103515245 * *a1 + 12345;
*a1 = v1;
return WORD1(v1) & 0x7FFF;
}