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