//
// sub_CCEBE4 from 0xccebe4 to 0xccec58 (116 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_CCEBE4(__int64 a1, unsigned __int8 a2, unsigned __int8 a3)
{
__int64 v3; // x3
unsigned int v4; // w20
__int64 v5; // x19
__int64 result; // x0
v3 = *(_QWORD *)(a1 + 240);
v4 = a3;
if ( !v3 )
sub_D13870();
v5 = v3 + a2;
result = *(unsigned __int8 *)(v5 + 313);
if ( !*(_BYTE *)(v5 + 313) )
{
LOBYTE(result) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 64LL))(v3);
if ( v4 == (unsigned __int8)result )
{
return v4;
}
else
{
*(_BYTE *)(v5 + 313) = result;
return (unsigned __int8)result;
}
}
return result;
}