//
// cocos2d::CCBezierTo::copyWithZone from 0x10021f1c8 to 0x10021f270 (168 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008fc0f0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:01:07 +0000
//
_OWORD *__fastcall cocos2d::CCBezierTo::copyWithZone(__int64 a1, void **a2)
{
void **v3; // x21
_OWORD *v4; // x19
void **v5; // x22
if ( a2 && (v3 = a2, (v4 = *a2) != nullptr) )
{
v5 = nullptr;
}
else
{
v4 = operator new(0xA0u);
*v4 = 0u;
v4[1] = 0u;
v4[2] = 0u;
v4[3] = 0u;
v4[4] = 0u;
v4[5] = 0u;
v4[6] = 0u;
v4[7] = 0u;
v4[8] = 0u;
v4[9] = 0u;
sub_100220C28();
v3 = (void **)operator new(8u);
cocos2d::CCZone::CCZone(v3, v4);
v5 = v3;
}
cocos2d::CCBezierBy::copyWithZone(a1, v3);
cocos2d::CCBezierBy::initWithDuration((__int64)v4, (double *)(a1 + 92), *(float *)(a1 + 80));
if ( v5 )
operator delete(v5);
return v4;
}