//
// sub_1004A8BEC from 0x1004a8bec to 0x1004a8c34 (72 bytes)
//
// 1 xrefs:
// > sub_1004CFA1C @ 0x1004cfe90
//
// 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_1004A8BEC(__int64 a1, _DWORD *a2)
{
__int64 result; // x0
__int64 v4; // x8
result = 31;
if ( a1 && a2 )
{
v4 = *((_QWORD *)off_1008524C8 + *(int *)(a1 + 48) + 46);
if ( *(_BYTE *)(v4 + 8) )
{
result = 0;
*a2 = *(_DWORD *)(v4 + 1744);
}
else
{
return 67;
}
}
return result;
}