//
// sub_1001CB664 from 0x1001cb664 to 0x1001cb698 (52 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007ba210
//
// 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_1001CB664(__int64 result)
{
int v1; // w9
v1 = *(_DWORD *)(result + 56);
if ( (v1 & 0x80000000) == 0 && v1 < *(_DWORD *)(result + 16) )
{
*(_DWORD *)(result + 56) = v1 + 1;
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(result - 696) + 1328LL))(result - 696);
}
return result;
}