//
// sub_1800B5DD0 from 0x1800b5dd0 to 0x1800b5f0a (314 bytes)
//
// 4 xrefs:
// > ??> @ 0x18016b240
// > ??> @ 0x18018964c
// > ??> @ 0x18018965c
// > ??> @ 0x1801fd020
//
// 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_1800B5DD0(__int64 a1, int a2)
{
__int64 result; // rax
_BYTE v5[2048]; // [rsp+50h] [rbp-828h] BYREF
memset(v5, 0, sizeof(v5));
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 64LL))(a1, 0);
if ( !(_DWORD)result )
{
result = sub_1800B5550(
a1,
a1 + 608,
a1 + 2656,
2047,
a1 + 4736,
0x1000u,
(__int16 *)(a1 + 8832),
(__int64)v5,
2047,
nullptr);
if ( !(_DWORD)result )
{
result = sub_1800B4680(
a1,
a1 + 608,
(const CHAR *)(a1 + 2656),
(__int64)v5,
(_BYTE *)(a1 + 4736),
*(_WORD *)(a1 + 8832),
0,
a2);
if ( !(_DWORD)result )
*(_DWORD *)(a1 + 504) = a2;
}
}
return result;
}