//
// cocos2d::CCCardinalSplineTo::update from 0x7b71cc to 0x7b72ec (288 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:12 +0000
//
int __fastcall cocos2d::CCCardinalSplineTo::update(cocos2d::CCCardinalSplineTo *this, float a2)
{
float v3; // s16
unsigned int v4; // r5
float v5; // s15
int v6; // r0
_BYTE v8[8]; // [sp+14h] [bp-40h] BYREF
_BYTE v9[8]; // [sp+1Ch] [bp-38h] BYREF
_BYTE v10[8]; // [sp+24h] [bp-30h] BYREF
_BYTE v11[8]; // [sp+2Ch] [bp-28h] BYREF
_BYTE v12[8]; // [sp+34h] [bp-20h] BYREF
float v13[2]; // [sp+3Ch] [bp-18h] BYREF
_BYTE v14[8]; // [sp+44h] [bp-10h] BYREF
v3 = 1.0;
if ( a2 == 1.0 )
{
v4 = cocos2d::CCPointArray::count(*((cocos2d::CCPointArray **)this + 20)) - 1;
}
else
{
v5 = *((float *)this + 21);
v4 = (unsigned int)(float)(a2 / v5);
v3 = (float)(a2 - (float)(v5 * (float)v4)) / v5;
}
cocos2d::CCPointArray::getControlPointAtIndex((cocos2d::CCPointArray *)v8, *((_DWORD *)this + 20), v4 - 1);
cocos2d::CCPointArray::getControlPointAtIndex((cocos2d::CCPointArray *)v9, *((_DWORD *)this + 20), v4);
cocos2d::CCPointArray::getControlPointAtIndex((cocos2d::CCPointArray *)v10, *((_DWORD *)this + 20), v4 + 1);
cocos2d::CCPointArray::getControlPointAtIndex((cocos2d::CCPointArray *)v11, *((_DWORD *)this + 20), v4 + 2);
cocos2d::ccCardinalSplineAt(
(cocos2d *)v12,
(cocos2d::CCPoint *)v8,
(cocos2d::CCPoint *)v9,
(cocos2d::CCPoint *)v10,
(cocos2d::CCPoint *)v11,
*((float *)this + 22),
v3);
v6 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 14) + 96))(*((_DWORD *)this + 14));
cocos2d::CCPoint::operator-(v13, v6, (char *)this + 92);
if ( v13[0] != 0.0 || v13[1] != 0.0 )
{
cocos2d::CCPoint::operator+(v14, (char *)this + 100, v13);
cocos2d::CCPoint::operator=((char *)this + 100, v14);
cocos2d::CCPoint::operator+(v14, v12, (char *)this + 100);
cocos2d::CCPoint::operator=(v12, v14);
}
return (*(int (__fastcall **)(cocos2d::CCCardinalSplineTo *, _BYTE *))(*(_DWORD *)this + 60))(this, v12);
}