//
// cocos2d::CCAnimation::copyWithZone from 0xb135c4 to 0xb13670 (172 bytes)
//
// 2 xrefs:
// > ??> @ 0x92bc8
// > ??> @ 0x12183f0
//
// 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; // x19
cocos2d::CCAnimation *v5; // x19
_QWORD *v6; // x21
if ( a2 && (v3 = *(cocos2d::CCAnimation **)a2) != nullptr )
{
cocos2d::CCAnimation::initWithAnimationFrames(v3, a1->m_pFrames, a1->m_fDelayPerUnit, a1->m_uLoops);
v3->m_bRestoreOriginalFrame = a1->m_bRestoreOriginalFrame;
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, a1->m_pFrames, a1->m_fDelayPerUnit, a1->m_uLoops);
v5->m_bRestoreOriginalFrame = a1->m_bRestoreOriginalFrame;
operator delete(v6);
return v5;
}
}