//
// sub_CEE250 from 0xcee250 to 0xcee3f8 (424 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_CEE250(_QWORD *a1, __int64 a2)
{
__int64 v4; // x0
int v5; // w3
char *v6; // x20
__int64 v7; // x0
char v9; // [xsp+4Fh] [xbp+4Fh] BYREF
_BYTE v10[8]; // [xsp+50h] [xbp+50h] BYREF
_QWORD *v11; // [xsp+58h] [xbp+58h]
sub_CEE150((__int64)v10, a1);
if ( !a2 || !v10[0] )
{
if ( a2 )
goto LABEL_4;
v5 = 1;
LABEL_11:
sub_CCE830((__int64)a1 + *(_QWORD *)(*a1 - 24LL), v5 | *(_DWORD *)((char *)a1 + *(_QWORD *)(*a1 - 24LL) + 32));
goto LABEL_4;
}
v4 = sub_CF9F68(a2, *(_QWORD *)((char *)a1 + *(_QWORD *)(*a1 - 24LL) + 232), &v9);
v5 = 4;
if ( !v4 )
goto LABEL_11;
LABEL_4:
v6 = (char *)v11 + *(_QWORD *)(*v11 - 24LL);
if ( (*((_DWORD *)v6 + 6) & 0x2000) == 0 )
return a1;
if ( std::uncaught_exception() )
return a1;
v7 = *((_QWORD *)v6 + 29);
if ( !v7 || (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v7 + 48LL))(v7) != -1 )
return a1;
sub_CCE830((__int64)v11 + *(_QWORD *)(*v11 - 24LL), *(_DWORD *)((char *)v11 + *(_QWORD *)(*v11 - 24LL) + 32) | 1);
return a1;
}