//
// cocos2d::CCAction::copyWithZone from 0x1005f4330 to 0x1005f43bc (140 bytes)
//
// 6 xrefs:
// > cocos2d::CCActionInterval::copyWithZone @ 0x1003b545d
// > cocos2d::CCActionInterval::copyWithZone @ 0x1003b54c2
// > cocos2d::CCActionInstant::copyWithZone @ 0x1007ac417
// > cocos2d::CCActionInstant::copyWithZone @ 0x1007ac465
// > ??> @ 0x10097b8a8
// > ??> @ 0x10097ba30
//
// 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
//
cocos2d::CCObject *__fastcall cocos2d::CCAction::copyWithZone(cocos2d::CCAction *a1, cocos2d::CCZone *a2)
{
char *v2; // rbx
_QWORD *v3; // r15
if ( a2 && (v2 = *(char **)a2) != nullptr )
{
*((_DWORD *)v2 + 18) = a1->m_nTag;
}
else
{
v2 = (char *)operator new(0x50u);
cocos2d::CCObject::CCObject((__int64)v2);
*(_QWORD *)v2 = off_10097B8A8;
*(_OWORD *)(v2 + 56) = 0;
*((_QWORD *)v2 + 9) = 0x3F800000FFFFFFFFLL;
v3 = operator new(8u);
cocos2d::CCZone::CCZone(v3, (__int64)v2);
*((_DWORD *)v2 + 18) = a1->m_nTag;
operator delete(v3);
}
return (cocos2d::CCObject *)v2;
}