//
// cocos2d::CCRemoveSelf::copyWithZone from 0xabdf34 to 0xabdfe0 (172 bytes)
//
// 2 xrefs:
// > ??> @ 0x8b950
// > ??> @ 0x11fd790
//
// 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::CCRemoveSelf::copyWithZone(cocos2d::CCRemoveSelf *a1, cocos2d::CCZone *a2)
{
cocos2d::CCRemoveSelf *v3; // x19
cocos2d::CCRemoveSelf *v5; // x19
cocos2d::CCZone *v6; // x21
if ( a2 && (v3 = *(cocos2d::CCRemoveSelf **)a2) != nullptr )
{
cocos2d::CCActionInstant::copyWithZone(a1, a2);
cocos2d::CCRemoveSelf::init(v3, *((_BYTE *)&a1->m_fDuration + 4));
return v3;
}
else
{
v5 = (cocos2d::CCRemoveSelf *)operator new(0x58u);
cocos2d::CCActionInstant::CCActionInstant(v5);
v5->__vftable = (cocos2d::CCRemoveSelf_vtbl *)&off_11FD790;
v6 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v6, v5);
cocos2d::CCActionInstant::copyWithZone(a1, v6);
cocos2d::CCRemoveSelf::init(v5, *((_BYTE *)&a1->m_fDuration + 4));
operator delete(v6);
return v5;
}
}