//
// sub_1800E55A0 from 0x1800e55a0 to 0x1800e5623 (131 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800e559f
// > sub_1800E5438 @ 0x1800e5483
// > sub_1800E5624 @ 0x1800e56d0
// > ??> @ 0x1801c55c8
//
// 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:38 +0000
//
__int64 __fastcall sub_1800E55A0(char a1)
{
char v3; // bl
__int64 v4; // rcx
cocos2d::CCComponent *v5; // rcx
unsigned int v6; // ebx
void *v7; // rdx
__int64 v8; // rcx
if ( dword_1801B6788 <= 0 )
return 0;
--dword_1801B6788;
v3 = sub_1800E4DC8();
if ( dword_1801B6738 != 2 )
{
sub_1800E5974(7);
__debugbreak();
JUMPOUT(0x1800E5623LL);
}
sub_1800E4EF0();
sub_1800E4DBC();
sub_1800E5BF4(v4);
dword_1801B6738 = 0;
sub_1800E5094(v3);
LOBYTE(v5) = a1;
v6 = (unsigned __int8)sub_1800E50B8(v5, nullptr);
sub_1800E4F20(v8, v7);
return v6;
}