//
// cocos2d::CCMoveBy::copyWithZone from 0x1800324b0 to 0x1800325d2 (290 bytes)
//
// 4 xrefs:
// > cocos2d::CCMoveTo::copyWithZone @ 0x180032672
// > ??> @ 0x1800e9650
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0468
//
// 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
//
// Hidden C++ exception states: #wind=3
struct cocos2d::CCObject *__fastcall cocos2d::CCMoveBy::copyWithZone(cocos2d::CCMoveBy *this, void **a2)
{
struct cocos2d::CCZone *v2; // rax
struct cocos2d::CCZone *v4; // rdi
void *v5; // rbx
float m_fDuration; // xmm1_4
v2 = (struct cocos2d::CCZone *)a2;
v4 = nullptr;
if ( !a2 || (v5 = *a2) == nullptr )
{
v5 = operator new(0x78u);
if ( v5 )
{
*(_OWORD *)v5 = 0;
*((_OWORD *)v5 + 1) = 0;
*((_OWORD *)v5 + 2) = 0;
*((_OWORD *)v5 + 3) = 0;
*((_OWORD *)v5 + 4) = 0;
*((_OWORD *)v5 + 5) = 0;
*((_OWORD *)v5 + 6) = 0;
*((_QWORD *)v5 + 14) = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);
*((_DWORD *)v5 + 20) = 0;
*(_QWORD *)v5 = &cocos2d::CCMoveBy::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v5 + 12);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v5 + 13);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v5 + 14);
}
else
{
v5 = nullptr;
}
v2 = (struct cocos2d::CCZone *)operator new(8u);
if ( v2 )
v2 = tinyxml2::XMLHandle::XMLHandle(v2, (struct tinyxml2::XMLNode *)v5);
v4 = v2;
}
cocos2d::CCActionInterval::copyWithZone(this, (struct cocos2d::CCObject **)v2);
m_fDuration = this->m_fDuration;
*((float *)v5 + 20) = m_fDuration;
if ( m_fDuration == 0.0 )
*((_DWORD *)v5 + 20) = 872415232;
*((_DWORD *)v5 + 22) = 0;
*((_BYTE *)v5 + 92) = 1;
cocos2d::CCSize::operator=((_DWORD *)v5 + 24, (_DWORD *)this + 24);
if ( v4 )
j_j_free_0(v4);
return (struct cocos2d::CCObject *)v5;
}