//
// sub_1800A5800 from 0x1800a5800 to 0x1800a585a (90 bytes)
//
// 2 xrefs:
// > sub_1800A6260 @ 0x1800a62ed
// > ??> @ 0x1801fb76c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:53:53 +0000
//
__int64 __fastcall sub_1800A5800(__int64 *a1, _QWORD *a2)
{
__int64 v2; // rax
int v4; // eax
__int64 v6; // [rsp+30h] [rbp+8h] BYREF
v2 = *a1;
v6 = 0;
v4 = (*(__int64 (__fastcall **)(_QWORD, __int64, __int64 *))(**(_QWORD **)(v2 + 40) + 80LL))(
*(_QWORD *)(v2 + 40),
1,
&v6);
if ( v4 == -2004287229 )
return 55;
if ( v4 < 0 )
return 49;
*a2 = v6;
return 0;
}