//
// sub_CCEDD8 from 0xccedd8 to 0xccee84 (172 bytes)
//
// 2 xrefs:
// > sub_CCEE84 @ 0xcceed4
// > sub_CCEF54 @ 0xccf0b8
//
// 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_CCEDD8(_QWORD *a1, __int64 a2)
{
__int64 result; // x0
if ( (unsigned __int8)sub_CDD49C(a2) )
{
a1[30] = sub_CDB730(a2);
if ( (unsigned __int8)sub_CDD64C(a2) )
goto LABEL_3;
LABEL_6:
a1[31] = 0;
result = (unsigned __int8)sub_CDD6B8(a2);
if ( (_BYTE)result )
goto LABEL_4;
goto LABEL_7;
}
a1[30] = 0;
if ( !(unsigned __int8)sub_CDD64C(a2) )
goto LABEL_6;
LABEL_3:
a1[31] = sub_CDC560(a2);
result = (unsigned __int8)sub_CDD6B8(a2);
if ( (_BYTE)result )
{
LABEL_4:
result = sub_CDC5C8(a2);
a1[32] = result;
return result;
}
LABEL_7:
a1[32] = 0;
return result;
}