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