//
// sub_CF2884 from 0xcf2884 to 0xcf28c8 (68 bytes)
//
// 1 xrefs:
// > ??> @ 0x121d868
//
// 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_CF2884(__int64 a1)
{
unsigned __int64 v1; // x1
unsigned __int64 v2; // x2
unsigned __int8 *v3; // x0
if ( (*(_DWORD *)(a1 + 64) & 8) == 0 )
return 0xFFFFFFFFLL;
v1 = *(_QWORD *)(a1 + 40);
v2 = *(_QWORD *)(a1 + 24);
if ( v1 )
{
if ( v1 > v2 )
{
*(_QWORD *)(a1 + 24) = v1;
v2 = v1;
}
}
v3 = *(unsigned __int8 **)(a1 + 16);
if ( (unsigned __int64)v3 < v2 )
return *v3;
else
return 0xFFFFFFFFLL;
}