//
// sub_100004430 from 0x100004430 to 0x100004478 (72 bytes)
//
// 5 xrefs:
// > GJSmartTemplate::init @ 0x1000043d4
// > GJSmartTemplate::dataLoaded @ 0x1000084dc
// > cocos2d::CCAnimationFrame::copyWithZone @ 0x100238f54
// > cocos2d::CCAnimation::initWithSpriteFrames @ 0x100239154
// > sub_100239338 @ 0x100239388
//
// This function is hookable on this platform (idp: arm, 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 10:57:09 +0000
//
__int64 __fastcall sub_100004430(__int64 a1, __int64 a2)
{
__int64 result; // x0
result = *(_QWORD *)(a1 + 56);
if ( result != a2 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
result = *(_QWORD *)(a1 + 56);
}
if ( result )
result = cocos2d::CCObject::release();
*(_QWORD *)(a1 + 56) = a2;
}
return result;
}