//
// sub_CCEB54 from 0xcceb54 to 0xccebe4 (144 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_CCEB54(__int64 a1, char a2)
{
_BYTE *v4; // x20
__int64 result; // x0
if ( *(_BYTE *)(a1 + 225) )
{
result = *(unsigned __int8 *)(a1 + 224);
*(_BYTE *)(a1 + 224) = a2;
}
else
{
v4 = *(_BYTE **)(a1 + 240);
if ( !v4 )
sub_D13870();
if ( v4[56] )
{
result = (unsigned __int8)v4[89];
}
else
{
sub_D204B0(*(_QWORD *)(a1 + 240));
result = (*(unsigned __int8 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v4 + 48LL))(v4, 32);
}
*(_BYTE *)(a1 + 224) = a2;
*(_BYTE *)(a1 + 225) = 1;
}
return result;
}