//
// sub_AFC8C from 0xafc8c to 0xafcd0 (68 bytes)
//
// 3 xrefs:
// > sub_AFFC4 @ 0xb009c
// > sub_B00B0 @ 0xb0124
// > sub_B0F2C @ 0xb0f34
//
// 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 __int64 __fastcall sub_AFC8C(__int64 a1, __int64 *a2, unsigned __int64 a3)
{
unsigned int v3; // w8
unsigned __int64 v4; // x10
v3 = *((_DWORD *)a2 + 9);
v4 = *a2;
if ( !v3 )
v3 = 1;
if ( *(_QWORD *)(a1 + 24) > v4 )
v4 = *(_QWORD *)(a1 + 24);
if ( v4 <= a3 )
return (a3 - v4) / v3;
else
return -(__int64)((v4 - a3) / v3);
}