//
// sub_AE6E4 from 0xae6e4 to 0xae704 (32 bytes)
//
// 8 xrefs:
// > sub_AE634 @ 0xae6ac
// > sub_AE634 @ 0xae6bc
// > sub_AEA84 @ 0xaec38
// > sub_AEA84 @ 0xaec4c
// > sub_AEA84 @ 0xaec5c
// > sub_AEEFC @ 0xaf020
// > sub_AEEFC @ 0xaf050
// > sub_AEEFC @ 0xaf0a0
//
// 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_AE6E4(__int64 result, int a2)
{
do
LODWORD(result) = result + a2;
while ( (int)result - a2 < 0 );
do
result = (unsigned int)(result - a2);
while ( (int)result >= a2 );
return result;
}