//
// cocos2d::CCSpawn::copyWithZone from 0x180032ff0 to 0x1800330f7 (263 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800e94e0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b04ec
//
// 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
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCObject *__fastcall cocos2d::CCSpawn::copyWithZone(cocos2d::CCSpawn *this, struct cocos2d::CCZone *a2)
{
tinyxml2::XMLHandle *v2; // rax
tinyxml2::XMLHandle *v4; // rsi
struct tinyxml2::XMLNode *v5; // rdi
struct tinyxml2::XMLNode *v6; // rax
tinyxml2::XMLHandle *v7; // rax
cocos2d::CCObject *v8; // rax
struct cocos2d::CCFiniteTimeAction *v9; // rbx
cocos2d::CCObject *v10; // rax
struct cocos2d::CCFiniteTimeAction *v11; // rax
v2 = a2;
v4 = nullptr;
if ( !a2 || (v5 = *(struct tinyxml2::XMLNode **)a2) == nullptr )
{
v6 = (struct tinyxml2::XMLNode *)operator new(0x70u);
v5 = v6;
if ( v6 )
{
*(_OWORD *)v6 = 0;
*((_OWORD *)v6 + 1) = 0;
*((_OWORD *)v6 + 2) = 0;
*((_OWORD *)v6 + 3) = 0;
*((_OWORD *)v6 + 4) = 0;
*((_OWORD *)v6 + 5) = 0;
*((_OWORD *)v6 + 6) = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v6);
*((_DWORD *)v5 + 20) = 0;
*(_QWORD *)v5 = &cocos2d::CCSpawn::`vftable';
}
else
{
v5 = nullptr;
}
v7 = (tinyxml2::XMLHandle *)operator new(8u);
if ( v7 )
v2 = tinyxml2::XMLHandle::XMLHandle(v7, v5);
else
v2 = nullptr;
v4 = v2;
}
cocos2d::CCActionInterval::copyWithZone(this, (struct cocos2d::CCObject **)v2);
v8 = cocos2d::CCObject::copy(*((cocos2d::CCObject **)this + 13));
v9 = (struct cocos2d::CCFiniteTimeAction *)cocos2d::CCObject::autorelease(v8);
v10 = cocos2d::CCObject::copy(*((cocos2d::CCObject **)this + 12));
v11 = (struct cocos2d::CCFiniteTimeAction *)cocos2d::CCObject::autorelease(v10);
cocos2d::CCSpawn::initWithTwoActions((cocos2d::CCSpawn *)v5, v11, v9);
if ( v4 )
j_j_free_0(v4);
return (struct cocos2d::CCObject *)v5;
}