//
// sub_1005CEFD0 from 0x1005cefd0 to 0x1005cf028 (88 bytes)
//
// 3 xrefs:
// > ??> @ 0x10083a858
// > ??> @ 0x10083a930
// > ??> @ 0x10083aab8
//
// 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_1005CEFD0(int a1, __int64 *a2)
{
__int64 v4; // x0
if ( a1 == 2 )
{
sub_1005CEB40(*a2);
*a2 = 0;
return 2;
}
else if ( a1 )
{
return 1;
}
else
{
v4 = sub_1005CE9A8();
*a2 = v4;
if ( v4 )
return 2;
else
return 0;
}
}