//
// cocos2d::CCAnimation::copyWithZone from 0x5e5746 to 0x5e578e (72 bytes)
//
// 0 xrefs:
//
// 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 *cocos2d::CCAnimation::copyWithZone(cocos2d::CCAnimation *a1, cocos2d::CCZone *a2)
{
cocos2d::CCAnimation *v3; // r4
_DWORD *v4; // r6
if ( a2 && (v3 = *(cocos2d::CCAnimation **)a2) != nullptr )
{
v4 = nullptr;
}
else
{
v3 = (cocos2d::CCAnimation *)operator new(0x4Cu);
cocos2d::CCAnimation::CCAnimation(v3);
v4 = (_DWORD *)operator new(4u);
cocos2d::CCZone::CCZone(v4, v3);
}
cocos2d::CCAnimation::initWithAnimationFrames(v3, a1->m_pFrames, a1->m_fDelayPerUnit, a1->m_uLoops);
v3->m_bRestoreOriginalFrame = a1->m_bRestoreOriginalFrame;
if ( v4 )
operator delete(v4);
return v3;
}