//
// sub_1004C570C from 0x1004c570c to 0x1004c5748 (60 bytes)
//
// 4 xrefs:
// > ??> @ 0x100828658
// > ??> @ 0x100828800
// > ??> @ 0x1008289a8
// > ??> @ 0x100828b38
//
// 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_1004C570C(__int64 a1, unsigned __int64 a2, unsigned __int64 a3)
{
__int64 v3; // x8
__int64 result; // x0
if ( !(a2 | a3) )
return 31;
if ( a2 )
*(_DWORD *)a2 = 0;
if ( a3 )
*(_DWORD *)a3 = 0;
v3 = *(_QWORD *)(a1 + 96);
if ( !v3 )
return 0;
result = *(_QWORD *)(v3 + 360);
if ( result )
return sub_1004B26A0((_QWORD *)result, (_DWORD *)a2, (_DWORD *)a3);
return result;
}