//
// sub_CCF6B8 from 0xccf6b8 to 0xccf764 (172 bytes)
//
// 2 xrefs:
// > sub_CCF764 @ 0xccf7b4
// > sub_CCF834 @ 0xccf9a8
//
// 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_CCF6B8(_QWORD *a1, __int64 a2)
{
__int64 result; // x0
if ( (unsigned __int8)sub_CFFB08(a2) )
{
a1[30] = sub_CFDB80(a2);
if ( (unsigned __int8)sub_CFFCB8(a2) )
goto LABEL_3;
LABEL_6:
a1[31] = 0;
result = (unsigned __int8)sub_CFFD24(a2);
if ( (_BYTE)result )
goto LABEL_4;
goto LABEL_7;
}
a1[30] = 0;
if ( !(unsigned __int8)sub_CFFCB8(a2) )
goto LABEL_6;
LABEL_3:
a1[31] = sub_CFE894(a2);
result = (unsigned __int8)sub_CFFD24(a2);
if ( (_BYTE)result )
{
LABEL_4:
result = sub_CFE8FC(a2);
a1[32] = result;
return result;
}
LABEL_7:
a1[32] = 0;
return result;
}