//
// cocos2d::CCShow::copyWithZone from 0x18002f720 to 0x18002f7dd (189 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800e8db8
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0048
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
struct cocos2d::CCObject *__fastcall cocos2d::CCShow::copyWithZone(
cocos2d::CCShow *this,
struct cocos2d::CCObject **a2)
{
struct cocos2d::CCObject *v3; // rbx
cocos2d::CCAction *v5; // rax
struct tinyxml2::XMLNode *v6; // rbx
struct cocos2d::CCObject **v7; // rdi
tinyxml2::XMLHandle *v8; // rax
if ( a2 && (v3 = *a2) != nullptr )
{
cocos2d::CCActionInstant::copyWithZone(this, a2);
return v3;
}
else
{
v5 = (cocos2d::CCAction *)operator new(0x58u);
v6 = (struct tinyxml2::XMLNode *)v5;
if ( v5 )
{
cocos2d::CCAction::CCAction(v5);
v7 = nullptr;
*((_DWORD *)v6 + 20) = 0;
*(_QWORD *)v6 = &cocos2d::CCShow::`vftable';
}
else
{
v7 = nullptr;
v6 = nullptr;
}
v8 = (tinyxml2::XMLHandle *)operator new(8u);
if ( v8 )
v7 = (struct cocos2d::CCObject **)tinyxml2::XMLHandle::XMLHandle(v8, v6);
cocos2d::CCActionInstant::copyWithZone(this, v7);
if ( v7 )
j_j_free_0(v7);
return (struct cocos2d::CCObject *)v6;
}
}