//
// cocos2d::CCMoveBy::copyWithZone from 0x10018b7ec to 0x10018b8d8 (236 bytes)
//
// 2 xrefs:
// > cocos2d::CCMoveTo::copyWithZone @ 0x10018bbe8
// > ??> @ 0x1007a58c8
//
// 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::CCMoveBy::copyWithZone(cocos2d::CCMoveBy *a1, cocos2d::CCZone *a2)
{
cocos2d::CCZone *v3; // x21
_OWORD *v4; // x19
cocos2d::CCZone *v5; // x22
float m_fDuration; // s0
if ( a2 && (v3 = a2, (v4 = *(_OWORD **)a2) != nullptr) )
{
v5 = nullptr;
}
else
{
v4 = operator new(0x78u);
*v4 = 0u;
v4[1] = 0u;
v4[2] = 0u;
v4[3] = 0u;
v4[4] = 0u;
v4[5] = 0u;
v4[6] = 0u;
*((_QWORD *)v4 + 14) = 0;
cocos2d::CCAction::CCAction();
*((_DWORD *)v4 + 20) = 0;
*(_QWORD *)v4 = &off_1007A58C8;
sub_1000229B0((_OWORD *)((char *)v4 + 92));
sub_1000229B0((_OWORD *)((char *)v4 + 100));
sub_1000229B0((_OWORD *)((char *)v4 + 108));
v3 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v3, v4);
v5 = v3;
}
cocos2d::CCActionInterval::copyWithZone(a1, v3);
m_fDuration = a1->m_fDuration;
if ( m_fDuration == 0.0 )
m_fDuration = 0.00000011921;
*((float *)v4 + 20) = m_fDuration;
*((_DWORD *)v4 + 21) = 0;
*((_BYTE *)v4 + 88) = 1;
sub_1000229D0((_OWORD *)((char *)v4 + 92), (double *)(&a1->m_bFirstTick + 4));
if ( v5 )
operator delete(v5);
return (cocos2d::CCObject *)v4;
}