//
// cocos2d::CCCallFunc::copyWithZone from 0xd2f814 to 0xd2f904 (240 bytes)
//
// 8 xrefs:
// > cocos2d::CCCallFuncN::copyWithZone @ 0xd2f924
// > cocos2d::CCCallFuncN::copyWithZone @ 0xd2f9ac
// > cocos2d::CCCallFuncND::copyWithZone @ 0xd2fa08
// > cocos2d::CCCallFuncND::copyWithZone @ 0xd2fab8
// > cocos2d::CCCallFuncO::copyWithZone @ 0xd30418
// > cocos2d::CCCallFuncO::copyWithZone @ 0xd3047c
// > ??> @ 0x576a0
// > ??> @ 0x15132e0
//
// 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::CCCallFunc::copyWithZone(cocos2d::CCCallFunc *this, cocos2d::CCZone *a2)
{
cocos2d::CCZone *v3; // x21
__int64 v4; // x19
cocos2d::CCZone *v5; // x22
__int64 v6; // x3
cocos2d::CCScriptEngineManager *v7; // x0
_QWORD *v8; // x0
v3 = a2;
if ( !a2 || (v4 = *(_QWORD *)a2, v5 = nullptr, !*(_QWORD *)a2) )
{
v4 = operator new(0x78u);
cocos2d::CCActionInstant::CCActionInstant((cocos2d::CCActionInstant *)v4);
*(_QWORD *)(v4 + 88) = 0;
*(_DWORD *)(v4 + 96) = 0;
*(_QWORD *)v4 = &off_15132E0;
*(_QWORD *)(v4 + 104) = 0;
*(_QWORD *)(v4 + 112) = 0;
v3 = (cocos2d::CCZone *)operator new(8u);
v5 = v3;
cocos2d::CCZone::CCZone(v3, (cocos2d::CCObject *)v4);
}
cocos2d::CCActionInstant::copyWithZone(this, v3);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 120LL))(v4, *((_QWORD *)this + 11));
v6 = *((_QWORD *)this + 14);
*(_QWORD *)(v4 + 104) = *((_QWORD *)this + 13);
*(_QWORD *)(v4 + 112) = v6;
v7 = (cocos2d::CCScriptEngineManager *)*((unsigned int *)this + 24);
if ( (int)v7 > 0 )
{
v8 = (_QWORD *)cocos2d::CCScriptEngineManager::sharedManager(v7);
*(_DWORD *)(v4 + 96) = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v8 + 40LL))(
*v8,
*((unsigned int *)this + 24));
}
if ( v5 )
operator delete(v5);
return v4;
}