//
// cocos2d::CCAnimate::copyWithZone from 0x1003a5980 to 0x1003a5a5a (218 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b32380
//
// 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 12:29:21 +0000
//
char *__fastcall cocos2d::CCAnimate::copyWithZone(__int64 a1, void **a2, double a3, __m128 a4)
{
char *v4; // rbx
void **v5; // r15
_QWORD *v6; // rax
__int64 v7; // rax
__int64 v8; // rax
if ( a2 && (v4 = (char *)*a2) != nullptr )
{
v5 = nullptr;
}
else
{
v4 = (char *)operator new(0x88u);
cocos2d::CCAction::CCAction(v4);
*((_DWORD *)v4 + 20) = 0;
*(_QWORD *)v4 = off_100B32380;
*((_QWORD *)v4 + 12) = 0;
v6 = operator new(0x18u);
a3 = 0.0;
*(_OWORD *)v6 = 0;
v6[2] = 0;
*((_QWORD *)v4 + 13) = v6;
*((_DWORD *)v4 + 28) = 0;
*((_QWORD *)v4 + 15) = 0;
*(_QWORD *)(v4 + 126) = 0;
v5 = (void **)operator new(8u);
cocos2d::CCZone::CCZone(v5, (__int64)v4);
a2 = v5;
}
cocos2d::CCActionInterval::copyWithZone(a1, a2);
v7 = sub_1004800C0(*(_QWORD *)(a1 + 96));
v8 = cocos2d::CCObject::autorelease(v7);
cocos2d::CCAnimate::initWithAnimation((__int64)v4, v8, a3, a4);
if ( v5 )
operator delete(v5);
return v4;
}