//
// sub_1800B62C0 from 0x1800b62c0 to 0x1800b6319 (89 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016e7d8
// > ??> @ 0x1801fd068
//
// 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_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;
}