//
// sub_CEE8BC from 0xcee8bc to 0xcee934 (120 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_CEE8BC(_QWORD *result, int a2)
{
char *v2; // x2
int v3; // w3
v2 = (char *)result + *(_QWORD *)(*result - 24LL);
if ( a2 == 8 )
{
*((_DWORD *)v2 + 6) = *((_DWORD *)v2 + 6) & 0xFFFFFFB5 | 0x40;
}
else if ( a2 == 10 )
{
*((_DWORD *)v2 + 6) = *((_DWORD *)v2 + 6) & 0xFFFFFFB5 | 2;
}
else
{
if ( a2 == 16 )
v3 = 8;
else
v3 = 0;
*((_DWORD *)v2 + 6) = v3 | *((_DWORD *)v2 + 6) & 0xFFFFFFB5;
}
return result;
}