//
// 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 (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:14:36 +0000
//
__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;
}