//
// cocos2d::CCRotateTo::copyWithZone from 0x10018b1b8 to 0x10018b27c (196 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007a5780
//
// 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::CCRotateTo::copyWithZone(cocos2d::CCRotateTo *a1, cocos2d::CCZone *a2)
{
cocos2d::CCZone *v3; // x21
cocos2d::CCObject *v4; // x19
cocos2d::CCZone *v5; // x22
if ( a2 && (v3 = a2, (v4 = *(cocos2d::CCObject **)a2) != nullptr) )
{
v5 = nullptr;
}
else
{
v4 = (cocos2d::CCObject *)operator new(0x78u);
*(_OWORD *)&v4->__vftable = 0u;
*(_OWORD *)&v4->m_nTag = 0u;
*(_OWORD *)&v4->m_uIndexInArray = 0u;
*(_OWORD *)&v4->m_uOrderOfArrival = 0u;
*(_OWORD *)&v4[1].m_uID = 0u;
*(_OWORD *)&v4[1].m_uAutoReleaseCount = 0u;
*(_OWORD *)&v4[1].m_unknown2 = 0u;
v4[2].__vftable = nullptr;
cocos2d::CCAction::CCAction();
v4[1].m_uAutoReleaseCount = 0;
v4->__vftable = (cocos2d::CCObject_vtbl *)&off_1007A5780;
v3 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v3, v4);
v5 = v3;
}
cocos2d::CCActionInterval::copyWithZone(a1, v3);
((void (__fastcall *)(cocos2d::CCObject *, float, float, float))v4->__vftable[1].update)(
v4,
a1->m_fDuration,
*((float *)&a1->m_bFirstTick + 1),
*(float *)&a1[1].m_uID);
if ( v5 )
operator delete(v5);
return v4;
}