//
// cocos2d::CCCallFuncO::copyWithZone from 0x1002430f4 to 0x1002431ac (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x100906260
//
// 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 11:01:25 +0000
//
_DWORD *__fastcall cocos2d::CCCallFuncO::copyWithZone(_QWORD *a1, void **a2)
{
_DWORD *v3; // x19
void **v4; // x21
if ( a2 && (v3 = *a2) != nullptr )
{
v4 = nullptr;
}
else
{
v3 = operator new(0x88u);
cocos2d::CCAction::CCAction();
v3[20] = 0;
*((_QWORD *)v3 + 11) = 0;
v3[24] = 0;
*((_QWORD *)v3 + 13) = 0;
*((_QWORD *)v3 + 14) = 0;
*(_QWORD *)v3 = off_100906260;
*((_QWORD *)v3 + 15) = &off_100906308;
*((_QWORD *)v3 + 16) = 0;
v4 = (void **)operator new(8u);
cocos2d::CCZone::CCZone(v4, v3);
a2 = v4;
}
cocos2d::CCCallFunc::copyWithZone((__int64)a1, a2);
(*(void (__fastcall **)(_DWORD *, _QWORD, _QWORD, _QWORD, _QWORD))(*(_QWORD *)v3 + 144LL))(
v3,
a1[11],
a1[13],
a1[14],
a1[16]);
if ( v4 )
operator delete(v4);
return v3;
}