//
// sub_1004E0370 from 0x1004e0370 to 0x1004e0443 (211 bytes)
//
// 2 xrefs:
// > sub_1004E0450 @ 0x1004e045c
// > ??> @ 0x100b612f0
//
// 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
//
void __fastcall sub_1004E0370(_QWORD *__p)
{
_DWORD *v2; // rdi
_DWORD *v3; // rdi
*__p = off_100B612E0;
__p[40] = off_100B61838;
__p[41] = &off_100B618A8;
__p[42] = off_100B618C0;
__p[43] = off_100B618E0;
__p[44] = off_100B61908;
__p[51] = off_100B61938;
__p[54] = off_100B619B8;
__p[68] = off_100B619D8;
__p[83] = &off_100B61A20;
cocos2d::CCNode::removeAllChildrenWithCleanup((__int64)__p, 1);
v2 = (_DWORD *)__p[86];
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = (_DWORD *)__p[87];
if ( v3 )
cocos2d::CCObject::release(v3);
sub_1004936F0((__int64)__p);
operator delete(__p);
}