//
// cocos2d::CCCardinalSplineTo::startWithTarget from 0x5b09a4 to 0x5b09ec (72 bytes)
//
// 1 xrefs:
// > cocos2d::CCCardinalSplineBy::startWithTarget @ 0x5b09f6
//
// 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
//
void cocos2d::CCCardinalSplineTo::startWithTarget(cocos2d::CCCardinalSplineTo *a1, cocos2d::CCNode *a2)
{
unsigned int v4; // r0
const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // r3
float v6; // r0
int v7; // r2
bool v8; // r3
int v9; // r2
bool v10; // [sp+0h] [bp-4h]
cocos2d::CCActionInterval::startWithTarget(a1, a2);
v4 = cocos2d::CCPointArray::count((cocos2d::CCPointArray *)a1[1].__vftable);
getPosition = a2->getPosition;
*(float *)&a1[1].m_uID = 1.0 / (float)(v4 - 1);
v6 = ((float (__fastcall *)(cocos2d::CCNode *))getPosition)(a2);
cocos2d::CCPoint::operator=(
(PlayerObject *)&a1[1].cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag,
v6,
v7,
v8);
cocos2d::CCPoint::operator=((PlayerObject *)&a1[1].m_uAutoReleaseCount, COERCE_FLOAT(&stru_AC860C), v9, v10);
}