//
// cocos2d::CCAnimate::copyWithZone from 0x10018d4f8 to 0x10018d590 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007a5570
//
// 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
//
cocos2d::CCObject *__fastcall cocos2d::CCAnimate::copyWithZone(cocos2d::CCAnimate *a1, cocos2d::CCZone *a2)
{
cocos2d::CCZone *v3; // x21
cocos2d::CCAnimate *v4; // x19
cocos2d::CCZone *v5; // x22
cocos2d::CCObject *v6; // x0
cocos2d::CCAnimation *v7; // x0
if ( a2 && (v3 = a2, (v4 = *(cocos2d::CCAnimate **)a2) != nullptr) )
{
v5 = nullptr;
}
else
{
v4 = (cocos2d::CCAnimate *)operator new(0x88u);
cocos2d::CCAnimate::CCAnimate();
v3 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v3, v4);
v5 = v3;
}
cocos2d::CCActionInterval::copyWithZone(a1, v3);
v6 = (cocos2d::CCObject *)sub_10008496C(a1->m_pSplitTimes);
v7 = (cocos2d::CCAnimation *)cocos2d::CCObject::autorelease(v6);
cocos2d::CCAnimate::initWithAnimation(v4, v7);
if ( v5 )
operator delete(v5);
return v4;
}