//
// cocos2d::CCCallFuncN::copyWithZone from 0x18002f760 to 0x18002f83a (218 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800ef1f0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801ba0fc
//
// This function is hookable on this platform (idp: pc, 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 11:21:33 +0000
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCObject *__fastcall cocos2d::CCCallFuncN::copyWithZone(
cocos2d::CCCallFuncN *this,
struct cocos2d::CCZone *a2)
{
tinyxml2::XMLHandle *v2; // rax
tinyxml2::XMLHandle *v4; // rdi
cocos2d::CCAction *v5; // rbx
cocos2d::CCAction *v6; // rax
tinyxml2::XMLHandle *v7; // rax
v2 = a2;
v4 = nullptr;
if ( !a2 || (v5 = *(cocos2d::CCAction **)a2) == nullptr )
{
v6 = (cocos2d::CCAction *)sub_1800E4AC0(0x78u);
v5 = v6;
if ( v6 )
{
cocos2d::CCAction::CCAction(v6);
*((_DWORD *)v5 + 20) = 0;
*((_QWORD *)v5 + 11) = 0;
*((_DWORD *)v5 + 24) = 0;
*((_QWORD *)v5 + 13) = 0;
*(_QWORD *)v5 = &cocos2d::CCCallFuncN::`vftable'{for `cocos2d::CCCallFunc'};
*((_QWORD *)v5 + 14) = &cocos2d::CCCallFuncN::`vftable'{for `cocos2d::TypeInfo'};
}
else
{
v5 = nullptr;
}
v7 = (tinyxml2::XMLHandle *)sub_1800E4AC0(8u);
if ( v7 )
v2 = tinyxml2::XMLHandle::XMLHandle(v7, v5);
else
v2 = nullptr;
v4 = v2;
}
cocos2d::CCCallFunc::copyWithZone(this, v2);
(*(void (__fastcall **)(cocos2d::CCAction *, _QWORD, _QWORD))(*(_QWORD *)v5 + 128LL))(
v5,
*((_QWORD *)this + 11),
*((_QWORD *)this + 13));
if ( v4 )
j_j_free_0(v4);
return v5;
}