//
// sub_CF2F4C from 0xcf2f4c to 0xcf2f8c (64 bytes)
//
// 1 xrefs:
// > ??> @ 0x121daa8
//
// 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_CF2F4C(__int64 a1)
{
unsigned __int64 v2; // x1
unsigned __int64 v3; // x2
unsigned int *v4; // x0
if ( (*(_DWORD *)(a1 + 64) & 8) == 0 )
return 0xFFFFFFFFLL;
v2 = *(_QWORD *)(a1 + 40);
v3 = *(_QWORD *)(a1 + 24);
if ( v2 )
{
if ( v2 > v3 )
{
*(_QWORD *)(a1 + 24) = v2;
v3 = v2;
}
}
v4 = *(unsigned int **)(a1 + 16);
if ( (unsigned __int64)v4 < v3 )
return *v4;
else
return 0xFFFFFFFFLL;
}