//
// cocos2d::CCCallFunc::copyWithZone from 0x7bbe64 to 0x7bbed4 (112 bytes)
//
// 3 xrefs:
// > cocos2d::CCCallFuncN::copyWithZone @ 0x7bbf14
// > cocos2d::CCCallFuncND::copyWithZone @ 0x7bbf82
// > cocos2d::CCCallFuncO::copyWithZone @ 0x7bc584
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:16 +0000
//
cocos2d::CCCallFunc *__fastcall cocos2d::CCCallFunc::copyWithZone(
cocos2d::CCScriptEngineManager **this,
cocos2d::CCZone *a2)
{
cocos2d::CCZone *v3; // r6
cocos2d::CCCallFunc *v4; // r4
cocos2d::CCZone *v5; // r7
cocos2d::CCScriptEngineManager *v6; // r0
int v7; // r1
_DWORD *v8; // r0
v3 = a2;
if ( a2 && (v4 = *(cocos2d::CCCallFunc **)a2) != nullptr )
{
v5 = nullptr;
}
else
{
v4 = (cocos2d::CCCallFunc *)operator new(0x58u);
cocos2d::CCCallFunc::CCCallFunc(v4);
v3 = (cocos2d::CCZone *)operator new(4u);
cocos2d::CCZone::CCZone(v3, v4);
v5 = v3;
}
cocos2d::CCActionInstant::copyWithZone((cocos2d::CCActionInstant *)this, (cocos2d::CCActionInstant **)v3);
(*(void (__fastcall **)(cocos2d::CCCallFunc *, _DWORD))(*(_DWORD *)v4 + 60))(v4, *(this + 18));
v6 = *(this + 20);
v7 = (int)*(this + 21);
*((_DWORD *)v4 + 20) = v6;
*((_DWORD *)v4 + 21) = v7;
if ( (int)*(this + 19) > 0 )
{
v8 = (_DWORD *)cocos2d::CCScriptEngineManager::sharedManager(v6);
*((_DWORD *)v4 + 19) = (*(int (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*v8 + 20))(*v8, *(this + 19));
}
if ( v5 )
operator delete(v5);
return v4;
}