//
// cocos2d::CCBezierBy::copyWithZone from 0x1800321b0 to 0x1800322cc (284 bytes)
//
// 4 xrefs:
// > cocos2d::CCBezierTo::copyWithZone @ 0x180032356
// > ??> @ 0x1800ef990
// > ??> @ 0x18014cf68
// > ??> @ 0x1801ba51c
//
// This function is hookable on this platform (idp: pc, 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:21:33 +0000
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCObject *__fastcall cocos2d::CCBezierBy::copyWithZone(
cocos2d::CCBezierBy *this,
cocos2d::CCBezierBy **a2)
{
struct cocos2d::CCZone *v2; // rax
struct cocos2d::CCZone *v4; // rsi
cocos2d::CCBezierBy *v5; // rdi
__int64 v6; // rax
float v7; // xmm1_4
v2 = (struct cocos2d::CCZone *)a2;
v4 = nullptr;
if ( !a2 || (v5 = *a2) == nullptr )
{
v6 = sub_1800E4AC0(0x88u);
if ( v6 )
{
*(_OWORD *)v6 = 0;
*(_OWORD *)(v6 + 16) = 0;
*(_OWORD *)(v6 + 32) = 0;
*(_OWORD *)(v6 + 48) = 0;
*(_OWORD *)(v6 + 64) = 0;
*(_OWORD *)(v6 + 80) = 0;
*(_OWORD *)(v6 + 96) = 0;
*(_OWORD *)(v6 + 112) = 0;
*(_QWORD *)(v6 + 128) = 0;
v5 = cocos2d::CCBezierBy::CCBezierBy((cocos2d::CCBezierBy *)v6);
}
else
{
v5 = nullptr;
}
v2 = (struct cocos2d::CCZone *)sub_1800E4AC0(8u);
if ( v2 )
v2 = tinyxml2::XMLHandle::XMLHandle(v2, v5);
v4 = v2;
}
cocos2d::CCActionInterval::copyWithZone(this, (struct cocos2d::CCObject **)v2);
v7 = *((float *)this + 20);
*((float *)v5 + 20) = v7;
if ( v7 == 0.0 )
*((_DWORD *)v5 + 20) = 872415232;
*((_DWORD *)v5 + 22) = 0;
*((_BYTE *)v5 + 92) = 1;
cocos2d::CCSize::operator=((_DWORD *)v5 + 24, (_DWORD *)this + 24);
cocos2d::CCSize::operator=((_DWORD *)v5 + 26, (_DWORD *)this + 26);
cocos2d::CCSize::operator=((_DWORD *)v5 + 28, (_DWORD *)this + 28);
if ( v4 )
j_j_free_0(v4);
return v5;
}