//
// sub_1004627A0 from 0x1004627a0 to 0x100462908 (360 bytes)
//
// 4 xrefs:
// > sub_100462910 @ 0x100462915
// > sub_100462920 @ 0x10046292c
// > sub_100462940 @ 0x100462949
// > sub_100462960 @ 0x100462973
//
// 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:30:26 +0000
//
__int64 __fastcall sub_1004627A0(_QWORD *a1)
{
__int64 v2; // rdi
__int64 v3; // rdi
__int64 v4; // rdi
__int64 v5; // rdi
__int64 v6; // rdi
__int64 v7; // rdi
__int64 v8; // rdi
__int64 v9; // rdi
__int64 v10; // rdi
void *v11; // rdi
*a1 = off_100B440F0;
a1[40] = off_100B44668;
a1[41] = &off_100B446D8;
a1[42] = off_100B446F0;
a1[43] = off_100B44710;
a1[44] = off_100B44738;
a1[51] = off_100B44768;
a1[54] = off_100B447E8;
a1[68] = off_100B44808;
a1[83] = &off_100B44850;
a1[84] = off_100B44868;
cocos2d::CCNode::removeAllChildrenWithCleanup((__int64)a1, 1);
v2 = a1[85];
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = a1[93];
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = a1[94];
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = a1[95];
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = a1[96];
if ( v6 )
cocos2d::CCObject::release(v6);
v7 = a1[120];
if ( v7 )
cocos2d::CCObject::release(v7);
v8 = a1[121];
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = a1[90];
if ( v9 )
cocos2d::CCObject::release(v9);
v10 = a1[87];
if ( v10 )
cocos2d::CCObject::release(v10);
v11 = (void *)a1[112];
if ( v11 )
{
a1[113] = v11;
operator delete(v11);
}
return sub_1004936F0(a1);
}