//
// cocos2d::CCAnimation::copyWithZone from 0x18008ca80 to 0x18008cb46 (198 bytes)
//
// 3 xrefs:
// > ??> @ 0x180109ce8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bfc94
//
// 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:22:06 +0000
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCObject *__fastcall cocos2d::CCAnimation::copyWithZone(
cocos2d::CCAnimation *this,
cocos2d::CCObject **a2)
{
tinyxml2::XMLHandle *v3; // rdi
cocos2d::CCObject *v4; // rbx
cocos2d::CCObject *v5; // rax
tinyxml2::XMLHandle *v6; // rax
v3 = nullptr;
if ( !a2 || (v4 = *a2) == nullptr )
{
v5 = (cocos2d::CCObject *)sub_1800E4AC0(0x58u);
v4 = v5;
if ( v5 )
{
cocos2d::CCObject::CCObject(v5);
*(_QWORD *)v4 = &cocos2d::CCAnimation::`vftable';
*((_QWORD *)v4 + 7) = 0;
*((_DWORD *)v4 + 16) = 0;
*((_QWORD *)v4 + 9) = 0;
*((_BYTE *)v4 + 80) = 0;
*((_DWORD *)v4 + 21) = 0;
}
else
{
v4 = nullptr;
}
v6 = (tinyxml2::XMLHandle *)sub_1800E4AC0(8u);
if ( v6 )
v3 = tinyxml2::XMLHandle::XMLHandle(v6, v4);
}
cocos2d::CCAnimation::initWithAnimationFrames(
v4,
*((struct cocos2d::CCArray **)this + 9),
*((float *)this + 15),
*((_DWORD *)this + 21));
*((_BYTE *)v4 + 80) = *((_BYTE *)this + 80);
if ( v3 )
j_j_free_0(v3);
return v4;
}