//
// sub_1004A8C74 from 0x1004a8c74 to 0x1004a8cd4 (96 bytes)
//
// 1 xrefs:
// > sub_1004CFA1C @ 0x1004cfea8
//
// 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_1004A8C74(__int64 a1, _DWORD *a2, _DWORD *a3)
{
__int64 v3; // x8
__int64 result; // x0
if ( !a1 )
return 31;
v3 = *((_QWORD *)off_1008524C8 + *(int *)(a1 + 48) + 46);
if ( !*(_BYTE *)(v3 + 8) )
return 67;
if ( a2 )
*a2 = *(_DWORD *)(v3 + 70460);
result = 0;
if ( a3 )
*a3 = *(_DWORD *)(*(_QWORD *)(v3 + 1648) + 84LL);
return result;
}