//
// sub_90064 from 0x90064 to 0x90074 (16 bytes)
//
// 8 xrefs:
// > sub_8FFFA @ 0x90048
// > sub_8FFFA @ 0x90052
// > sub_903B0 @ 0x9050e
// > sub_903B0 @ 0x90518
// > sub_903B0 @ 0x90522
// > ??> @ 0x9085c
// > ??> @ 0x90878
// > ??> @ 0x908b0
//
// 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
//
int __fastcall sub_90064(int result, int a2)
{
do
result += a2;
while ( result - a2 < 0 );
do
result -= a2;
while ( result >= a2 );
return result;
}