//
// cocos2d::CCPlace::copyWithZone from 0x18002fca0 to 0x18002fd81 (225 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800ef0f0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801ba144
//
// 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=3
struct cocos2d::CCObject *__fastcall cocos2d::CCPlace::copyWithZone(
cocos2d::CCPlace *this,
struct cocos2d::CCObject **a2)
{
struct cocos2d::CCObject *v3; // rbx
cocos2d::CCAction *v5; // rax
cocos2d::CCAction *v6; // rbx
struct cocos2d::CCObject **v7; // rdi
tinyxml2::XMLHandle *v8; // rax
if ( a2 && (v3 = *a2) != nullptr )
{
cocos2d::CCActionInstant::copyWithZone(this, a2);
cocos2d::CCSize::operator=((_DWORD *)v3 + 22, (_DWORD *)this + 22);
return v3;
}
else
{
v5 = (cocos2d::CCAction *)sub_1800E4AC0(0x60u);
v6 = v5;
if ( v5 )
{
cocos2d::CCAction::CCAction(v5);
v7 = nullptr;
*((_DWORD *)v6 + 20) = 0;
*(_QWORD *)v6 = &cocos2d::CCPlace::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCAction *)((char *)v6 + 88));
}
else
{
v7 = nullptr;
v6 = nullptr;
}
v8 = (tinyxml2::XMLHandle *)sub_1800E4AC0(8u);
if ( v8 )
v7 = (struct cocos2d::CCObject **)tinyxml2::XMLHandle::XMLHandle(v8, v6);
cocos2d::CCActionInstant::copyWithZone(this, v7);
cocos2d::CCSize::operator=((_DWORD *)v6 + 22, (_DWORD *)this + 22);
if ( v7 )
j_j_free_0(v7);
return v6;
}
}