//
// sub_1800B6430 from 0x1800b6430 to 0x1800b649e (110 bytes)
//
// 3 xrefs:
// > sub_1800D8BF0 @ 0x1800d8c1c
// > sub_18011CD20 @ 0x18011cf12
// > ??> @ 0x1801fd080
//
// 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_1800B6430(int a1, int a2, int a3, int a4, int a5, int a6, char a7)
{
int v7; // ebx
__int64 result; // rax
__int64 v9; // rdx
char v11; // [rsp+30h] [rbp-18h]
v11 = 1;
v7 = 8;
if ( a3 > 0 )
v7 = a3;
result = sub_1800B6530(a1, v7 + a2 + 8, a4, a5, a6, a7, v11);
v9 = result;
if ( result )
{
result = ~(v7 - 1LL) & (result + v7 - 1LL + 8);
*(_QWORD *)(result - 8) = v9;
}
return result;
}