//
// sub_CCF4E0 from 0xccf4e0 to 0xccf544 (100 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_CCF4E0(__int64 a1, int a2)
{
__int64 v4; // x0
__int64 result; // x0
if ( *(_BYTE *)(a1 + 228) )
{
result = *(unsigned int *)(a1 + 224);
*(_DWORD *)(a1 + 224) = a2;
}
else
{
v4 = *(_QWORD *)(a1 + 240);
if ( !v4 )
sub_D13870();
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 80LL))(v4, 32);
*(_DWORD *)(a1 + 224) = a2;
*(_BYTE *)(a1 + 228) = 1;
}
return result;
}