//
// sub_100004430 from 0x100004430 to 0x100004478 (72 bytes)
//
// 4 xrefs:
// > GJSmartTemplate::init @ 0x1000043d4
// > GJSmartTemplate::dataLoaded @ 0x1000084dc
// > cocos2d::CCAnimationFrame::copyWithZone @ 0x1001a4124
// > cocos2d::CCAnimation::initWithSpriteFrames @ 0x1001a42a8
//
// 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
//
void __fastcall sub_100004430(__int64 a1, cocos2d::CCObject *a2)
{
cocos2d::CCObject *v3; // x0
v3 = *(cocos2d::CCObject **)(a1 + 56);
if ( v3 != a2 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v3 = *(cocos2d::CCObject **)(a1 + 56);
}
if ( v3 )
cocos2d::CCObject::release(v3);
*(_QWORD *)(a1 + 56) = a2;
}
}