// // std::__detail::_Mod::__calc from 0x59e8dc to 0x59e90a (46 bytes) // // 3 xrefs: // > std::uniform_int_distribution::operator @ 0x59e942 // > std::uniform_int_distribution::operator @ 0x59e98c // > std::uniform_int_distribution::operator @ 0x59e9a4 // // 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 int __fastcall std::__detail::_Mod::__calc(unsigned int a1) { unsigned int v1; // r4 unsigned int v2; // r0 v1 = 16807 * (a1 % 0x1F31D); v2 = 2836 * (a1 / 0x1F31D); if ( v1 < v2 ) v1 += 0x7FFFFFFF; return v1 - v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source