//
// sub_AFBFC from 0xafbfc to 0xafc1c (32 bytes)
//
// 8 xrefs:
// > sub_AF3A8 @ 0xaf5dc
// > sub_AF3A8 @ 0xaf5ec
// > sub_AF3A8 @ 0xaf910
// > sub_AF3A8 @ 0xaf920
// > sub_AF3A8 @ 0xafb94
// > sub_AF3A8 @ 0xafba4
// > sub_AFC44 @ 0xafc50
// > sub_AFC44 @ 0xafc60
//
// 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_AFBFC(__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;
}