//
// cocos2d::CCCardinalSplineBy::reverse from 0xab5fd0 to 0xab61a0 (464 bytes)
//
// 3 xrefs:
// > ??> @ 0x2b368
// > ??> @ 0x11fb7a0
// > ??> @ 0x11fb920
//
// 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
//
cocos2d::CCActionInterval *cocos2d::CCCardinalSplineBy::reverse(cocos2d::CCCardinalSplineBy *a1)
{
unsigned int v2; // w20
cocos2d::CCPointArray *v3; // x24
unsigned int v4; // w2
float v5; // s0
float v6; // s1
unsigned int v7; // w20
cocos2d::CCPointArray *v8; // x23
unsigned int v9; // w0
unsigned int v10; // w0
float v11; // s0
float v12; // s1
float v13; // s0
float v14; // s1
unsigned int v15; // w2
float v16; // s0
float v17; // s1
cocos2d::CCPoint v19; // [xsp+50h] [xbp+50h] BYREF
_BYTE v20[8]; // [xsp+58h] [xbp+58h] BYREF
cocos2d::CCPoint v21; // [xsp+60h] [xbp+60h] BYREF
cocos2d::CCPoint ControlPointAtIndex; // 0:kr10_8.8
v2 = 1;
v3 = (cocos2d::CCPointArray *)cocos2d::CCObject::copy((cocos2d::CCObject *)a1[1].__vftable);
cocos2d::CCPointArray::getControlPointAtIndex(v3, 0);
while ( v2 < cocos2d::CCPointArray::count(v3) )
{
cocos2d::CCPointArray::getControlPointAtIndex(v3, v2);
cocos2d::CCPoint::operator-(&v21, v20, &v19);
v4 = v2++;
cocos2d::CCPointArray::replaceControlPoint(v3, &v21, v4);
cocos2d::CCPoint::operator=(&v19, v5, v6);
}
v7 = 1;
v8 = cocos2d::CCPointArray::reverse(v3);
cocos2d::CCObject::release(v3);
v9 = cocos2d::CCPointArray::count(v8);
ControlPointAtIndex = cocos2d::CCPointArray::getControlPointAtIndex(v8, v9 - 1);
cocos2d::CCPoint::operator=(&v19, ControlPointAtIndex.x, ControlPointAtIndex.y);
v10 = cocos2d::CCPointArray::count(v8);
cocos2d::CCPointArray::removeControlPointAtIndex(v8, v10 - 1);
cocos2d::CCPoint::operator-(&v21, &v19);
cocos2d::CCPoint::operator=(&v19, v11, v12);
cocos2d::CCPointArray::insertControlPoint(v8, &v19, 0);
while ( v7 < cocos2d::CCPointArray::count(v8) )
{
cocos2d::CCPointArray::getControlPointAtIndex(v8, v7);
cocos2d::CCPoint::operator-(&v21, v20);
cocos2d::CCPoint::operator=(v20, v13, v14);
cocos2d::CCPoint::operator+(&v21, v20, &v19);
v15 = v7++;
cocos2d::CCPointArray::replaceControlPoint(v8, &v21, v15);
cocos2d::CCPoint::operator=(&v19, v16, v17);
}
return cocos2d::CCCardinalSplineBy::create(a1->m_fDuration, v8, *(float *)&a1[1].m_nLuaID);
}