//
// cocos2d::CCAnimation::copyWithZone from 0xd84d70 to 0xd84e1c (172 bytes)
//
// 2 xrefs:
// > ??> @ 0xc1f48
// > ??> @ 0x152e230
//
// 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:08:12 +0000
//
cocos2d::CCAnimation *__fastcall cocos2d::CCAnimation::copyWithZone(
cocos2d::CCAnimation *this,
cocos2d::CCAnimation **a2)
{
cocos2d::CCAnimation *v3; // x19
cocos2d::CCAnimation *v5; // x19
_QWORD *v6; // x21
if ( a2 && (v3 = *a2) != nullptr )
{
cocos2d::CCAnimation::initWithAnimationFrames(
v3,
*((cocos2d::CCArray **)this + 9),
*((float *)this + 15),
*((_DWORD *)this + 21));
*((_BYTE *)v3 + 80) = *((_BYTE *)this + 80);
return v3;
}
else
{
v5 = (cocos2d::CCAnimation *)operator new(0x58u);
cocos2d::CCAnimation::CCAnimation(v5);
v6 = (_QWORD *)operator new(8u);
cocos2d::CCZone::CCZone(v6, v5);
cocos2d::CCAnimation::initWithAnimationFrames(
v5,
*((cocos2d::CCArray **)this + 9),
*((float *)this + 15),
*((_DWORD *)this + 21));
*((_BYTE *)v5 + 80) = *((_BYTE *)this + 80);
operator delete(v6);
return v5;
}
}