//
// 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 (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
//
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);
}