//
// cocos2d::CCCallFuncN::copyWithZone from 0xd2f904 to 0xd2f9e8 (228 bytes)
//
// 2 xrefs:
// > ??> @ 0xd7830
// > ??> @ 0x1513380
//
// 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
//
__int64 __fastcall cocos2d::CCCallFuncN::copyWithZone(cocos2d::CCCallFuncN *this, cocos2d::CCZone *a2)
{
__int64 v3; // x19
__int64 v5; // x19
cocos2d::CCZone *v6; // x21
if ( a2 && (v3 = *(_QWORD *)a2) != 0 )
{
cocos2d::CCCallFunc::copyWithZone(this, a2);
(*(void (__fastcall **)(__int64, _QWORD, _QWORD, _QWORD))(*(_QWORD *)v3 + 144LL))(
v3,
*((_QWORD *)this + 11),
*((_QWORD *)this + 13),
*((_QWORD *)this + 14));
return v3;
}
else
{
v5 = operator new(0x80u);
cocos2d::CCActionInstant::CCActionInstant((cocos2d::CCActionInstant *)v5);
*(_QWORD *)(v5 + 88) = 0;
*(_DWORD *)(v5 + 96) = 0;
*(_QWORD *)(v5 + 104) = 0;
*(_QWORD *)(v5 + 112) = 0;
*(_QWORD *)v5 = &off_1513380;
*(_QWORD *)(v5 + 120) = &off_1513428;
v6 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v6, (cocos2d::CCObject *)v5);
cocos2d::CCCallFunc::copyWithZone(this, v6);
(*(void (__fastcall **)(__int64, _QWORD, _QWORD, _QWORD))(*(_QWORD *)v5 + 144LL))(
v5,
*((_QWORD *)this + 11),
*((_QWORD *)this + 13),
*((_QWORD *)this + 14));
operator delete(v6);
return v5;
}
}