//
// sub_1800892E0 from 0x1800892e0 to 0x180089365 (133 bytes)
//
// 3 xrefs:
// > sub_180084AF0 @ 0x180084cc7
// > sub_180084AF0 @ 0x180084f44
// > ??> @ 0x1801bf928
//
// 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 11:22:05 +0000
//
__int64 __fastcall sub_1800892E0(__int64 a1, char a2, char a3, char a4)
{
__int64 v6; // rcx
__int64 result; // rax
v6 = *(_QWORD *)(a1 + 10248);
if ( (unsigned __int64)(v6 + 3) > 0x800 )
{
sub_180083D00(a1, a1, v6);
v6 = 0;
*(_QWORD *)(a1 + 10248) = 0;
}
*(_BYTE *)(v6 + a1) = a2;
*(_BYTE *)(*(_QWORD *)(a1 + 10248) + a1 + 1) = a3;
result = *(_QWORD *)(a1 + 10248);
*(_BYTE *)(result + a1 + 2) = a4;
*(_QWORD *)(a1 + 10248) += 3LL;
return result;
}