//
// sub_1004E02A0 from 0x1004e02a0 to 0x1004e0362 (194 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b61838
//
// 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 12:31:17 +0000
//
__int64 __fastcall sub_1004E02A0(_QWORD *a1)
{
__int64 v2; // rbx
_DWORD *v3; // rdi
_DWORD *v4; // rdi
v2 = (__int64)(a1 - 40);
*(a1 - 40) = off_100B612E0;
*a1 = off_100B61838;
a1[1] = &off_100B618A8;
a1[2] = off_100B618C0;
a1[3] = off_100B618E0;
a1[4] = off_100B61908;
a1[11] = off_100B61938;
a1[14] = off_100B619B8;
a1[28] = off_100B619D8;
a1[43] = &off_100B61A20;
cocos2d::CCNode::removeAllChildrenWithCleanup((__int64)(a1 - 40), 1);
v3 = (_DWORD *)a1[46];
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = (_DWORD *)a1[47];
if ( v4 )
cocos2d::CCObject::release(v4);
return sub_1004936F0(v2);
}