//
// sub_1800BBE40 from 0x1800bbe40 to 0x1800bbe84 (68 bytes)
//
// 3 xrefs:
// > sub_1800FB700 @ 0x1800fb800
// > sub_1800FBCA0 @ 0x1800fc100
// > ??> @ 0x1801fd638
//
// 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:54:01 +0000
//
__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;
}