//
// cocos2d::CCBezierBy::copyWithZone from 0x1003b99b0 to 0x1003b9aec (316 bytes)
//
// 2 xrefs:
// > cocos2d::CCBezierTo::copyWithZone @ 0x1003b9f72
// > ??> @ 0x10092a300
//
// 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::CCBezierBy::copyWithZone(cocos2d::CCBezierBy *a1, cocos2d::CCZone *a2)
{
_OWORD *v2; // rbx
cocos2d::CCZone *v3; // r15
__m128 m_fDuration_low; // xmm0
__m128 v5; // xmm1
if ( a2 && (v2 = *(_OWORD **)a2) != nullptr )
{
v3 = nullptr;
}
else
{
v2 = operator new(0x88u);
*v2 = 0;
v2[1] = 0;
v2[2] = 0;
v2[3] = 0;
v2[4] = 0;
v2[5] = 0;
v2[6] = 0;
v2[7] = 0;
*((_QWORD *)v2 + 16) = 0;
cocos2d::CCAction::CCAction(v2);
*((_DWORD *)v2 + 20) = 0;
*(_QWORD *)v2 = off_10092A300;
sub_10028CC30((_OWORD *)((char *)v2 + 92));
sub_10028CC30((_OWORD *)((char *)v2 + 100));
sub_10028CC30((_OWORD *)((char *)v2 + 108));
sub_10028CC30((_OWORD *)((char *)v2 + 116));
sub_10028CC30((_OWORD *)((char *)v2 + 124));
v3 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v3, (__int64)v2);
a2 = v3;
}
cocos2d::CCActionInterval::copyWithZone(a1, a2);
m_fDuration_low = (__m128)LODWORD(a1->m_fDuration);
v5 = _mm_cmpeq_ss((__m128)0LL, m_fDuration_low);
*((_QWORD *)v2 + 10) = _mm_andnot_ps(v5, m_fDuration_low).u32[0] | v5.i32[0] & 0x34000000;
*((_BYTE *)v2 + 88) = 1;
sub_10028CC90((_OWORD *)((char *)v2 + 92), (double *)(&a1->m_bFirstTick + 4));
sub_10028CC90((_OWORD *)((char *)v2 + 100), (double *)((char *)&a1[1].__vftable + 4));
sub_10028CC90((_OWORD *)((char *)v2 + 108), (double *)&a1[1].m_nLuaID);
if ( v3 )
operator delete(v3);
return (cocos2d::CCObject *)v2;
}