//
// cocos2d::CCRemoveSelf::copyWithZone from 0xd2fc3c to 0xd2fce8 (172 bytes)
//
// 2 xrefs:
// > ??> @ 0xb8f78
// > ??> @ 0x15130a0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:07:19 +0000
//
cocos2d::CCActionInstant *__fastcall cocos2d::CCRemoveSelf::copyWithZone(
cocos2d::CCRemoveSelf *this,
cocos2d::CCZone *a2)
{
cocos2d::CCRemoveSelf *v3; // x19
cocos2d::CCActionInstant *v5; // x19
cocos2d::CCZone *v6; // x21
if ( a2 && (v3 = *(cocos2d::CCRemoveSelf **)a2) != nullptr )
{
cocos2d::CCActionInstant::copyWithZone(this, a2);
cocos2d::CCRemoveSelf::init(v3, *((_BYTE *)this + 84));
return v3;
}
else
{
v5 = (cocos2d::CCActionInstant *)operator new(0x58u);
cocos2d::CCActionInstant::CCActionInstant(v5);
*(_QWORD *)v5 = &off_15130A0;
v6 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v6, v5);
cocos2d::CCActionInstant::copyWithZone(this, v6);
cocos2d::CCRemoveSelf::init(v5, *((_BYTE *)this + 84));
operator delete(v6);
return v5;
}
}