//
// cocos2d::CCAnimate::copyWithZone from 0x1800320f0 to 0x1800321ab (187 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800eff30
// > ??> @ 0x18014cf68
// > ??> @ 0x1801ba510
//
// 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=2
struct cocos2d::CCObject *__fastcall cocos2d::CCAnimate::copyWithZone(
cocos2d::CCObject **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 *)sub_1800E4AC0(0x88u);
if ( v6 )
v5 = cocos2d::CCAnimate::CCAnimate(v6);
else
v5 = nullptr;
v7 = (tinyxml2::XMLHandle *)sub_1800E4AC0(8u);
if ( v7 )
v2 = tinyxml2::XMLHandle::XMLHandle(v7, v5);
else
v2 = nullptr;
v4 = v2;
}
cocos2d::CCActionInterval::copyWithZone((cocos2d::CCActionInterval *)this, (struct cocos2d::CCObject **)v2);
v8 = cocos2d::CCObject::copy(*(this + 12));
v9 = cocos2d::CCObject::autorelease(v8);
cocos2d::CCAnimate::initWithAnimation(v5, v9);
if ( v4 )
j_j_free_0(v4);
return v5;
}