//
// sub_CF0EE8 from 0xcf0ee8 to 0xcf0f68 (128 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
//
_QWORD *__fastcall sub_CF0EE8(_QWORD *result, __int64 a2, __int64 a3)
{
_QWORD *v3; // x20
int v4; // w21
char *v5; // x19
__int64 v6; // x0
v3 = result;
v4 = a2;
v5 = (char *)result + *(_QWORD *)(*result - 24LL);
if ( v5[228] )
{
*((_DWORD *)v5 + 56) = a2;
}
else
{
v6 = *((_QWORD *)v5 + 30);
if ( !v6 )
sub_D13870(0, a2, a3);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 80LL))(v6, 32);
*((_DWORD *)v5 + 56) = v4;
v5[228] = 1;
return v3;
}
return result;
}