//
// cocos2d::CCCallFuncND::copyWithZone from 0x7bbf38 to 0x7bbfaa (114 bytes)
//
// 0 xrefs:
//
// 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
//
_DWORD *__fastcall cocos2d::CCCallFuncND::copyWithZone(
cocos2d::CCScriptEngineManager **this,
cocos2d::CCZone *a2,
int a3)
{
cocos2d::CCZone *v4; // r6
_DWORD *v5; // r4
cocos2d::CCZone *v6; // r7
v4 = a2;
if ( a2 && (v5 = *(_DWORD **)a2) != nullptr )
{
v6 = nullptr;
}
else
{
v5 = (_DWORD *)operator new(0x60u);
memset(v5, 0, 0x60u);
cocos2d::CCCallFunc::CCCallFunc((cocos2d::CCCallFunc *)v5);
*v5 = &off_D037F0;
v5[22] = &off_D03848;
v4 = (cocos2d::CCZone *)operator new(4u);
cocos2d::CCZone::CCZone(v4, (cocos2d::CCObject *)v5);
v6 = v4;
}
cocos2d::CCCallFunc::copyWithZone(this, v4);
(*(void (__fastcall **)(_DWORD *, _DWORD, _DWORD, _DWORD, _DWORD, cocos2d::CCZone *, int))(*v5 + 76))(
v5,
*(this + 18),
*(this + 20),
*(this + 21),
*(this + 23),
a2,
a3);
if ( v6 )
operator delete(v6);
return v5;
}