//
// cocos2d::CCAnimate::copyWithZone from 0xd368e4 to 0xd36998 (180 bytes)
//
// 2 xrefs:
// > ??> @ 0x964f0
// > ??> @ 0x1514710
//
// 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 13:07:23 +0000
//
cocos2d::CCAnimation **__fastcall cocos2d::CCAnimate::copyWithZone(cocos2d::CCObject **this, cocos2d::CCZone *a2)
{
cocos2d::CCAnimation **v3; // x19
cocos2d::CCObject *v4; // x0
cocos2d::CCAnimation *v5; // x0
cocos2d::CCAnimate *v7; // x19
cocos2d::CCZone *v8; // x21
cocos2d::CCObject *v9; // x0
cocos2d::CCAnimation *v10; // x0
if ( a2 && (v3 = *(cocos2d::CCAnimation ***)a2) != nullptr )
{
cocos2d::CCActionInterval::copyWithZone((cocos2d::CCActionInterval *)this, a2);
v4 = (cocos2d::CCObject *)cocos2d::CCObject::copy(*(this + 12));
v5 = (cocos2d::CCAnimation *)cocos2d::CCObject::autorelease(v4);
cocos2d::CCAnimate::initWithAnimation(v3, v5);
return v3;
}
else
{
v7 = (cocos2d::CCAnimate *)operator new(0x88u);
cocos2d::CCAnimate::CCAnimate(v7);
v8 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v8, v7);
cocos2d::CCActionInterval::copyWithZone((cocos2d::CCActionInterval *)this, v8);
v9 = (cocos2d::CCObject *)cocos2d::CCObject::copy(*(this + 12));
v10 = (cocos2d::CCAnimation *)cocos2d::CCObject::autorelease(v9);
cocos2d::CCAnimate::initWithAnimation((cocos2d::CCAnimation **)v7, v10);
operator delete(v8);
return (cocos2d::CCAnimation **)v7;
}
}