//
// cocos2d::CCSequence::copyWithZone from 0x180032dc0 to 0x180032f01 (321 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800e9378
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b04d4
//
// 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
cocos2d::CCAction *__fastcall cocos2d::CCSequence::copyWithZone(cocos2d::CCSequence *this, void **a2)
{
struct cocos2d::CCZone *v2; // rax
struct cocos2d::CCZone *v4; // rdi
cocos2d::CCAction *v5; // rbx
cocos2d::CCObject *v6; // rax
struct cocos2d::CCObject *v7; // rsi
cocos2d::CCObject *v8; // rax
struct cocos2d::CCObject *v9; // rax
float v10; // xmm1_4
v2 = (struct cocos2d::CCZone *)a2;
v4 = nullptr;
if ( !a2 || (v5 = (cocos2d::CCAction *)*a2) == nullptr )
{
v5 = (cocos2d::CCAction *)operator new(0x78u);
if ( v5 )
{
*(_OWORD *)&v5->__vftable = 0;
*(_OWORD *)&v5->cocos2d::CCObject::m_nTag = 0;
*(_OWORD *)&v5->m_uIndexInArray = 0;
*(_OWORD *)&v5->m_uOrderOfArrival = 0;
*(_OWORD *)&v5->m_pTarget = 0;
*(_OWORD *)&v5[1].__vftable = 0;
*(_OWORD *)&v5[1].cocos2d::CCObject::m_nTag = 0;
*(_QWORD *)&v5[1].m_uIndexInArray = 0;
cocos2d::CCAction::CCAction(v5);
LODWORD(v5[1].__vftable) = 0;
v5->__vftable = (cocos2d::CCAction_vtbl *)&cocos2d::CCSequence::`vftable';
}
else
{
v5 = nullptr;
}
v2 = (struct cocos2d::CCZone *)operator new(8u);
if ( v2 )
v2 = tinyxml2::XMLHandle::XMLHandle(v2, (struct tinyxml2::XMLNode *)v5);
v4 = v2;
}
cocos2d::CCActionInterval::copyWithZone(this, (struct cocos2d::CCObject **)v2);
v6 = cocos2d::CCObject::copy(*((cocos2d::CCObject **)this + 13));
v7 = cocos2d::CCObject::autorelease(v6);
v8 = cocos2d::CCObject::copy(*((cocos2d::CCObject **)this + 12));
v9 = cocos2d::CCObject::autorelease(v8);
v10 = *(float *)&v9[1].m_uAutoReleaseCount + *(float *)&v7[1].m_uAutoReleaseCount;
*(float *)&v5[1].__vftable = v10;
if ( v10 == 0.0 )
LODWORD(v5[1].__vftable) = 872415232;
v5[1].m_uID = 0;
LOBYTE(v5[1].m_nLuaID) = 1;
*(_QWORD *)&v5[1].cocos2d::CCObject::m_nTag = v9;
cocos2d::CCObject::retain(v9);
*(_QWORD *)&v5[1].m_uAutoReleaseCount = v7;
cocos2d::CCObject::retain(v7);
if ( v4 )
j_j_free_0(v4);
return v5;
}