//
// sub_CF284C from 0xcf284c to 0xcf2884 (56 bytes)
//
// 1 xrefs:
// > ??> @ 0x121d858
//
// 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_CF284C(__int64 a1)
{
unsigned __int64 v1; // x2
unsigned __int64 v2; // x1
if ( (*(_DWORD *)(a1 + 64) & 8) == 0 )
return -1;
v1 = *(_QWORD *)(a1 + 40);
v2 = *(_QWORD *)(a1 + 24);
if ( v1 )
{
if ( v1 > v2 )
{
*(_QWORD *)(a1 + 24) = v1;
v2 = v1;
}
}
return v2 - *(_QWORD *)(a1 + 16);
}