//
// cocos2d::CCAnimate::copyWithZone from 0x180031a80 to 0x180031b3b (187 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800e9ed0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b03f0
//
// 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::CCAnimate *__fastcall cocos2d::CCAnimate::copyWithZone(cocos2d::CCAnimate *this, cocos2d::CCAnimate **a2)
{
tinyxml2::XMLHandle *v2; // rax
tinyxml2::XMLHandle *v4; // rdi
cocos2d::CCAnimate *v5; // rbx
cocos2d::CCAnimate *v6; // rax
tinyxml2::XMLHandle *v7; // rax
cocos2d::CCObject *v8; // rax
struct cocos2d::CCAnimation *v9; // rax
v2 = (tinyxml2::XMLHandle *)a2;
v4 = nullptr;
if ( !a2 || (v5 = *a2) == nullptr )
{
v6 = (cocos2d::CCAnimate *)operator new(0x88u);
if ( v6 )
v5 = cocos2d::CCAnimate::CCAnimate(v6);
else
v5 = nullptr;
v7 = (tinyxml2::XMLHandle *)operator new(8u);
if ( v7 )
v2 = tinyxml2::XMLHandle::XMLHandle(v7, (struct tinyxml2::XMLNode *)v5);
else
v2 = nullptr;
v4 = v2;
}
cocos2d::CCActionInterval::copyWithZone(this, (struct cocos2d::CCObject **)v2);
v8 = cocos2d::CCObject::copy((cocos2d::CCObject *)this->m_pSplitTimes);
v9 = (struct cocos2d::CCAnimation *)cocos2d::CCObject::autorelease(v8);
cocos2d::CCAnimate::initWithAnimation(v5, v9);
if ( v4 )
j_j_free_0(v4);
return v5;
}