//
// cocos2d::CCCatmullRomTo::initWithDuration from 0x180025fd0 to 0x180026029 (89 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801af394
//
// 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
//
// Alternative name is '?initWithDuration@CCCatmullRomBy@cocos2d@@QEAA_NMPEAVCCPointArray@2@@Z'
char __fastcall cocos2d::CCCatmullRomTo::initWithDuration(
cocos2d::CCCatmullRomTo *this,
float a2,
struct cocos2d::CCPointArray *a3)
{
cocos2d::CCObject *v5; // rcx
if ( !cocos2d::CCActionInterval::initWithDuration(this, a2) )
return 0;
if ( a3 )
cocos2d::CCObject::retain(a3);
v5 = *((cocos2d::CCObject **)this + 12);
if ( v5 )
cocos2d::CCObject::release(v5);
*((_QWORD *)this + 12) = a3;
*((_DWORD *)this + 27) = 1056964608;
return 1;
}