//
// cocos2d::CCAnimation::copyWithZone from 0x1002393f8 to 0x1002394a0 (168 bytes)
//
// 1 xrefs:
// > ??> @ 0x100904940
//
// This function is hookable on this platform (idp: arm, 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:01:20 +0000
//
_QWORD *__fastcall cocos2d::CCAnimation::copyWithZone(__int64 a1, void **a2)
{
_QWORD *v3; // x19
void *v4; // x21
if ( a2 && (v3 = *a2) != nullptr )
{
v4 = nullptr;
}
else
{
v3 = operator new(0x58u);
cocos2d::CCObject::CCObject((__int64)v3);
*v3 = off_100904940;
v3[7] = 0;
*((_DWORD *)v3 + 16) = 0;
v3[9] = 0;
*((_BYTE *)v3 + 80) = 0;
*((_DWORD *)v3 + 21) = 0;
v4 = operator new(8u);
cocos2d::CCZone::CCZone(v4, v3);
}
cocos2d::CCAnimation::initWithAnimationFrames(
(__int64)v3,
*(_QWORD *)(a1 + 72),
*(_DWORD *)(a1 + 84),
*(float *)(a1 + 60));
*((_BYTE *)v3 + 80) = *(_BYTE *)(a1 + 80);
if ( v4 )
operator delete(v4);
return v3;
}