//
// sub_1004CE3FC from 0x1004ce3fc to 0x1004ce440 (68 bytes)
//
// 1 xrefs:
// > sub_10045B79C @ 0x10045b7d8
//
// 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_1004CE3FC(unsigned int a1, _QWORD *a2)
{
__int64 result; // x0
__int64 v4; // x8
if ( !a2 )
return 31;
*a2 = 0;
result = 31;
if ( a1 <= 7 )
{
v4 = *((_QWORD *)off_1008524C8 + a1 + 46);
*a2 = v4;
if ( v4 )
return 0;
else
return 31;
}
return result;
}