//
// cocos2d::CCActionInstant::copyWithZone from 0x1001ad944 to 0x1001ad9cc (136 bytes)
//
// 6 xrefs:
// > cocos2d::CCShow::copyWithZone @ 0x1001adb08
// > cocos2d::CCShow::copyWithZone @ 0x1001adb4c
// > cocos2d::CCHide::copyWithZone @ 0x1001adbc8
// > cocos2d::CCHide::copyWithZone @ 0x1001adc0c
// > cocos2d::CCCallFunc::copyWithZone @ 0x1001ade1c
// > ??> @ 0x1007aed38
//
// 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 *__fastcall cocos2d::CCActionInstant::copyWithZone(cocos2d::CCActionInstant *a1, cocos2d::CCZone *a2)
{
cocos2d::CCObject *v3; // x19
cocos2d::CCZone *v4; // x21
if ( a2 && (v3 = *(cocos2d::CCObject **)a2) != nullptr )
{
cocos2d::CCAction::copyWithZone(a1, a2);
}
else
{
v3 = (cocos2d::CCObject *)operator new(0x58u);
cocos2d::CCAction::CCAction();
v3[1].m_uAutoReleaseCount = 0;
v3->__vftable = (cocos2d::CCObject_vtbl *)&off_1007AED38;
v4 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v4, v3);
cocos2d::CCAction::copyWithZone(a1, v4);
operator delete(v4);
}
return v3;
}