//
// sub_CF9CF8 from 0xcf9cf8 to 0xcf9d48 (80 bytes)
//
// 0 xrefs:
//
// 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_CF9CF8(_QWORD *a1, int a2)
{
unsigned __int64 v3; // x3
__int64 result; // x0
v3 = a1[2];
if ( a1[1] >= v3 )
return (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 88LL))(a1);
result = *(unsigned int *)(v3 - 4);
if ( (_DWORD)result != a2 )
return (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 88LL))(a1);
a1[2] = v3 - 4;
return result;
}