//
// cocos2d::CCCardinalSplineTo::create from 0x1002be520 to 0x1002be5d3 (179 bytes)
//
// 1 xrefs:
// > cocos2d::CCCardinalSplineTo::reverse @ 0x1002bece5
//
// 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 12:28:04 +0000
//
_DWORD *__fastcall cocos2d::CCCardinalSplineTo::create(__int64 a1, float a2, float a3)
{
_DWORD *v4; // rbx
__int64 v5; // rdi
v4 = operator new(0x80u);
cocos2d::CCAction::CCAction(v4);
v4[20] = 0;
*(_QWORD *)v4 = off_100B0EFA8;
*((_OWORD *)v4 + 6) = 0;
sub_1002782A0((_QWORD *)v4 + 14);
sub_1002782A0((_QWORD *)v4 + 15);
if ( (unsigned __int8)cocos2d::CCActionInterval::initWithDuration(v4, a2) )
{
cocos2d::CCObject::retain(a1);
v5 = *((_QWORD *)v4 + 12);
if ( v5 )
cocos2d::CCObject::release(v5);
*((_QWORD *)v4 + 12) = a1;
*((float *)v4 + 27) = a3;
cocos2d::CCObject::autorelease(v4);
}
else
{
cocos2d::CCObject::release(v4);
return nullptr;
}
return v4;
}