//
// cocos2d::CCCardinalSplineTo::initWithDuration from 0x180025f60 to 0x180025fc9 (105 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801af388
//
// 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
//
char __fastcall cocos2d::CCCardinalSplineTo::initWithDuration(
cocos2d::CCCardinalSplineTo *this,
float a2,
struct cocos2d::CCPointArray *a3,
float a4)
{
cocos2d::CCObject *v6; // rcx
if ( !cocos2d::CCActionInterval::initWithDuration(this, a2) )
return 0;
if ( a3 )
cocos2d::CCObject::retain(a3);
v6 = *((cocos2d::CCObject **)this + 12);
if ( v6 )
cocos2d::CCObject::release(v6);
*((float *)this + 27) = a4;
*((_QWORD *)this + 12) = a3;
return 1;
}