//
// sub_1004B4ED0 from 0x1004b4ed0 to 0x1004b4f74 (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x10094aa88
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1004B4ED0(_QWORD *a1)
{
cocos2d::CCObject *v2; // rdi
cocos2d::CCObject *v3; // rdi
cocos2d::CCObject *v4; // rdi
*(a1 - 40) = off_100948C20;
*a1 = off_1009490A0;
a1[1] = &off_100949110;
a1[2] = off_100949128;
a1[3] = off_100949148;
a1[4] = off_100949168;
v2 = (cocos2d::CCObject *)a1[6];
if ( v2 )
{
cocos2d::CCObject::release(v2);
a1[6] = 0;
}
v3 = (cocos2d::CCObject *)a1[7];
if ( v3 )
{
cocos2d::CCObject::release(v3);
a1[7] = 0;
}
v4 = (cocos2d::CCObject *)a1[8];
if ( v4 )
{
cocos2d::CCObject::release(v4);
a1[8] = 0;
}
return cocos2d::CCNode::dCCNode((__int64)(a1 - 40));
}