//
// sub_1800E1CA0 from 0x1800e1ca0 to 0x1800e1da3 (259 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016d7b8
// > ??> @ 0x1801ff978
//
// 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:16 +0000
//
_QWORD **__fastcall sub_1800E1CA0(_QWORD **Block, char a2)
{
*Block = &off_18016D7B8;
sub_1800E2500(Block + 9275);
*Block[9274] = Block[9273];
Block[9273][1] = Block[9274];
Block[9274] = Block + 9273;
Block[9273] = Block + 9273;
if ( !(unsigned int)sub_180087CB0(Block + 9268) && !(unsigned int)sub_180087D80(Block + 9270) )
{
*((_DWORD *)Block + 18544) = -1;
*((_DWORD *)Block + 18545) = 0;
}
sub_180087D80(Block + 9270);
sub_180087CB0(Block + 9268);
sub_1800D0F30((__int64)(Block + 9158));
Block[9091] = off_18016B198;
sub_1800B63F0((__int64)(Block + 8473));
sub_1800B63F0((__int64)(Block + 8457));
*Block[217] = Block[216];
Block[216][1] = Block[217];
Block[217] = Block + 216;
Block[216] = Block + 216;
if ( (a2 & 1) != 0 )
j_j_free_0(Block);
return Block;
}