//
// cocos2d::CCAction::copyWithZone from 0x5aff20 to 0x5aff58 (56 bytes)
//
// 4 xrefs:
// > cocos2d::CCFollow::copyWithZone @ 0x5affb8
// > cocos2d::CCSpeed::copyWithZone @ 0x5b00c2
// > cocos2d::CCActionInstant::copyWithZone @ 0x5b5600
// > cocos2d::CCActionInterval::copyWithZone @ 0x5b77e0
//
// 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::CCAction::copyWithZone(cocos2d::CCAction *a1, cocos2d::CCZone *a2)
{
cocos2d::CCAction *v3; // r4
cocos2d::CCZone *v4; // r5
if ( a2 && (v3 = *(cocos2d::CCAction **)a2) != nullptr )
{
v4 = nullptr;
}
else
{
v3 = (cocos2d::CCAction *)operator new(0x44u);
cocos2d::CCAction::CCAction(v3);
v4 = (cocos2d::CCZone *)operator new(4u);
cocos2d::CCZone::CCZone(v4, v3);
}
v3->m_nTag = a1->m_nTag;
if ( v4 )
operator delete(v4);
return v3;
}