//
// cocos2d::CCBezierBy::copyWithZone from 0x5b8570 to 0x5b85c6 (86 bytes)
//
// 1 xrefs:
// > cocos2d::CCBezierTo::copyWithZone @ 0x5b8614
//
// 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::CCBezierBy::copyWithZone(cocos2d::CCBezierBy *a1, cocos2d::CCZone *a2)
{
cocos2d::CCZone *v3; // r5
cocos2d::CCBezierBy *v4; // r4
cocos2d::CCZone *v5; // r6
v3 = a2;
if ( a2 && (v4 = *(cocos2d::CCBezierBy **)a2) != nullptr )
{
v5 = nullptr;
}
else
{
v4 = (cocos2d::CCBezierBy *)operator new(0x78u);
memset(v4, 0, 0x78u);
cocos2d::CCBezierBy::CCBezierBy(v4);
v3 = (cocos2d::CCZone *)operator new(4u);
cocos2d::CCZone::CCZone(v3, v4);
v5 = v3;
}
cocos2d::CCActionInterval::copyWithZone(a1, v3);
cocos2d::CCBezierBy::initWithDuration(v4, a1->m_fDuration, (const cocos2d::_ccBezierConfig *)&a1[1]);
if ( v5 )
operator delete(v5);
return v4;
}