//
// cocos2d::CCCallFuncND::copyWithZone from 0xd2f9e8 to 0xd2faf8 (272 bytes)
//
// 2 xrefs:
// > ??> @ 0x4bdc0
// > ??> @ 0x1513440
//
// 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::CCCallFuncND::copyWithZone(
cocos2d::CCCallFuncND *this,
cocos2d::CCZone *a2)
{
__int64 v3; // x19
cocos2d::CCActionInstant *v5; // x0
cocos2d::CCActionInstant *v6; // x19
cocos2d::CCZone *v7; // x21
if ( a2 && (v3 = *(_QWORD *)a2) != 0 )
{
cocos2d::CCCallFunc::copyWithZone(this, a2);
(*(void (__fastcall **)(__int64, _QWORD, _QWORD, _QWORD, _QWORD))(*(_QWORD *)v3 + 152LL))(
v3,
*((_QWORD *)this + 11),
*((_QWORD *)this + 13),
*((_QWORD *)this + 14),
*((_QWORD *)this + 16));
return (cocos2d::CCActionInstant *)v3;
}
else
{
v5 = (cocos2d::CCActionInstant *)operator new(0x88u);
*((_QWORD *)v5 + 16) = 0;
*(_QWORD *)v5 = 0;
*((_QWORD *)v5 + 1) = 0;
*((_QWORD *)v5 + 2) = 0;
*((_QWORD *)v5 + 3) = 0;
*((_QWORD *)v5 + 4) = 0;
*((_QWORD *)v5 + 5) = 0;
*((_QWORD *)v5 + 6) = 0;
*((_QWORD *)v5 + 7) = 0;
*((_QWORD *)v5 + 8) = 0;
*((_QWORD *)v5 + 9) = 0;
*((_QWORD *)v5 + 10) = 0;
*((_QWORD *)v5 + 11) = 0;
*((_QWORD *)v5 + 12) = 0;
*((_QWORD *)v5 + 13) = 0;
*((_QWORD *)v5 + 14) = 0;
*((_QWORD *)v5 + 15) = 0;
v6 = v5;
cocos2d::CCActionInstant::CCActionInstant(v5);
*((_QWORD *)v6 + 11) = 0;
*((_DWORD *)v6 + 24) = 0;
*((_QWORD *)v6 + 13) = 0;
*((_QWORD *)v6 + 14) = 0;
*(_QWORD *)v6 = &off_1513440;
*((_QWORD *)v6 + 15) = &off_15134F0;
v7 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v7, v6);
cocos2d::CCCallFunc::copyWithZone(this, v7);
(*(void (__fastcall **)(cocos2d::CCActionInstant *, _QWORD, _QWORD, _QWORD, _QWORD))(*(_QWORD *)v6 + 152LL))(
v6,
*((_QWORD *)this + 11),
*((_QWORD *)this + 13),
*((_QWORD *)this + 14),
*((_QWORD *)this + 16));
operator delete(v7);
return v6;
}
}