//
// sub_A1300 from 0xa1300 to 0xa1390 (144 bytes)
//
// 2 xrefs:
// > sub_A12B4 @ 0xa12d4
// > sub_A12B4 @ 0xa12e4
//
// 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_A1300(__int64 a1)
{
__int64 result; // x0
int v3; // [xsp+8h] [xbp-8h]
int v4; // [xsp+Ch] [xbp-4h] BYREF
*(_QWORD *)(a1 + 328) = 0;
*(_QWORD *)(a1 + 360) = 0;
*(_DWORD *)(a1 + 24) = 0;
*(_QWORD *)(a1 + 8) = 0;
*(_DWORD *)(a1 + 40) = 1000;
*(_OWORD *)(a1 + 288) = 0u;
*(_OWORD *)(a1 + 304) = 0u;
if ( (unsigned int)sub_A1390() )
return sub_A1C6C(*(_QWORD *)(a1 + 368), 0);
result = sub_E0A30(*(_QWORD *)(a1 + 368));
if ( !(_DWORD)result )
{
result = sub_E0A98(*(_QWORD *)(a1 + 368), &v4);
if ( !(_DWORD)result )
{
result = sub_E0A5C(*(_QWORD *)(a1 + 368), (unsigned int)(v3 + v4));
if ( !(_DWORD)result )
return sub_A1C6C(*(_QWORD *)(a1 + 368), 0);
}
}
return result;
}