//
// sub_1800A5860 from 0x1800a5860 to 0x1800a58af (79 bytes)
//
// 2 xrefs:
// > sub_1800A6260 @ 0x1800a62fb
// > ??> @ 0x1801fb778
//
// 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_1800A5860(__int64 a1, __int64 a2)
{
int v3; // eax
if ( !*(_BYTE *)(*(_QWORD *)a1 + 168LL) )
{
v3 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 32LL))(a2, 0);
if ( (int)(v3 + 0x80000000) >= 0 && v3 != -2004287231 )
return 49;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 16LL))(a2);
}
return 0;
}