//
// cocos2d::CCCardinalSplineTo::initWithDuration from 0xd26f78 to 0xd2700c (148 bytes)
//
// 7 xrefs:
// > cocos2d::CCCardinalSplineTo::create @ 0xd27094
// > cocos2d::CCCardinalSplineTo::copyWithZone @ 0xd27108
// > cocos2d::CCCardinalSplineTo::copyWithZone @ 0xd27160
// > cocos2d::CCCardinalSplineBy::create @ 0xd271f4
// > cocos2d::CCCatmullRomTo::initWithDuration @ 0xd27238
// > cocos2d::CCCatmullRomBy::initWithDuration @ 0xd272e0
// > ??> @ 0x1035b8
//
// 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 13:07:14 +0000
//
__int64 __fastcall cocos2d::CCCardinalSplineTo::initWithDuration(
cocos2d::CCObject **this,
float a2,
cocos2d::CCPointArray *a3,
float a4)
{
unsigned __int8 v7; // w0
unsigned int v8; // w21
cocos2d::CCObject *v10; // x0
cocos2d::CCPointArray::count(a3);
v7 = cocos2d::CCActionInterval::initWithDuration((cocos2d::CCActionInterval *)this, a2);
v8 = v7;
if ( !v7 )
return 0;
if ( a3 )
cocos2d::CCObject::retain(a3);
v10 = *(this + 12);
if ( v10 )
cocos2d::CCObject::release(v10);
*(this + 12) = a3;
*((float *)this + 27) = a4;
return v8;
}