//
// cocos2d::CCMoveTo::copyWithZone from 0x5b80a4 to 0x5b810c (104 bytes)
//
// 0 xrefs:
//
// 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 *cocos2d::CCMoveTo::copyWithZone(cocos2d::CCMoveTo *a1, cocos2d::CCZone *a2)
{
cocos2d::CCZone *v3; // r5
int v4; // r4
cocos2d::CCZone *v5; // r6
v3 = a2;
if ( a2 && (v4 = *(_DWORD *)a2) != 0 )
{
v5 = nullptr;
}
else
{
v4 = operator new(0x70u);
memset((void *)v4, 0, 0x70u);
cocos2d::CCMoveBy::CCMoveBy((cocos2d::CCMoveBy *)v4);
*(_DWORD *)v4 = &off_AA0538;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v4 + 104));
v3 = (cocos2d::CCZone *)operator new(4u);
cocos2d::CCZone::CCZone(v3, (cocos2d::CCObject *)v4);
v5 = v3;
}
cocos2d::CCMoveBy::copyWithZone(a1, v3);
cocos2d::CCMoveTo::initWithDuration(
(cocos2d::CCMoveTo *)v4,
a1->m_fDuration,
(const cocos2d::CCPoint *)&a1[1].m_eObjType);
if ( v5 )
operator delete(v5);
return (cocos2d::CCObject *)v4;
}