//
// sub_1004891D0 from 0x1004891d0 to 0x100489240 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x100941e10
//
// 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_1004891D0(_QWORD *a1)
{
cocos2d::CCObject *v2; // rdi
cocos2d::CCObject *v3; // rdi
cocos2d::CCObject *v4; // rdi
*a1 = off_100941E08;
a1[40] = off_1009422E0;
a1[43] = off_100942360;
v2 = (cocos2d::CCObject *)a1[226];
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = (cocos2d::CCObject *)a1[227];
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = (cocos2d::CCObject *)a1[225];
if ( v4 )
cocos2d::CCObject::release(v4);
return cocos2d::CCSprite::dCCSprite(a1);
}