//
// sub_1800B62C0 from 0x1800b62c0 to 0x1800b6319 (89 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016e7d8
// > ??> @ 0x1801fd068
//
// 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:59 +0000
//
__int64 __fastcall sub_1800B62C0(__int64 a1)
{
__int64 (__fastcall *v1)(_QWORD); // r10
__int64 result; // rax
v1 = *(__int64 (__fastcall **)(_QWORD))(a1 + 520);
if ( v1 || (v1 = *(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)(a1 + 408) + 70128LL)) != nullptr )
{
result = v1(*(_QWORD *)(a1 + 552));
*(_DWORD *)(a1 + 476) = result;
}
else
{
*(_DWORD *)(a1 + 476) = 0;
return 0;
}
return result;
}