//
// sub_1800BBE40 from 0x1800bbe40 to 0x1800bbe84 (68 bytes)
//
// 3 xrefs:
// > sub_1800FB700 @ 0x1800fb800
// > sub_1800FBCA0 @ 0x1800fc100
// > ??> @ 0x1801fd638
//
// 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_1800BBE40(__int64 a1, char *a2, __int64 a3, unsigned int *a4)
{
__int64 v4; // rax
__int64 result; // rax
__int64 v8; // [rsp+30h] [rbp+8h] BYREF
v4 = *(_QWORD *)(a1 + 40);
v8 = 0;
result = (*(__int64 (__fastcall **)(__int64, __int64 *))(v4 + 88))(a1, &v8);
if ( !(_DWORD)result )
return sub_1800BB9D0(v8, a2, *a4);
return result;
}