//
// cocos2d::CCBezierTo::copyWithZone from 0x10018c23c to 0x10018c2e4 (168 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007a5aa8
//
// 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::CCBezierTo::copyWithZone(cocos2d::CCBezierTo *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(0xA0u);
*(_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;
*(_OWORD *)&v4[2].__vftable = 0u;
*(_OWORD *)&v4[2].m_nTag = 0u;
*(_OWORD *)&v4[2].m_uIndexInArray = 0u;
sub_10018DA28();
v3 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v3, v4);
v5 = v3;
}
cocos2d::CCBezierBy::copyWithZone(a1, v3);
cocos2d::CCBezierBy::initWithDuration((__int64)v4, (double *)(&a1->m_bFirstTick + 4), a1->m_fDuration);
if ( v5 )
operator delete(v5);
return v4;
}