//
// cocos2d::CCCardinalSplineBy::reverse from 0x7b7a10 to 0x7b7b2e (286 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
//
cocos2d::CCCardinalSplineBy *__fastcall cocos2d::CCCardinalSplineBy::reverse(cocos2d::CCObject **this)
{
unsigned int v2; // r5
cocos2d::CCPointArray *v3; // r8
int v4; // r1
cocos2d::CCPointArray *v5; // r5
int v6; // r0
unsigned int v7; // r8
int v8; // r0
float v9; // r3
_BYTE v11[8]; // [sp+4h] [bp-1Ch] BYREF
_BYTE v12[8]; // [sp+Ch] [bp-14h] BYREF
_DWORD v13[2]; // [sp+14h] [bp-Ch] BYREF
v2 = 1;
v3 = (cocos2d::CCPointArray *)cocos2d::CCObject::copy(*(this + 20));
cocos2d::CCPointArray::getControlPointAtIndex((cocos2d::CCPointArray *)v11, (unsigned int)v3, 0);
while ( v2 < cocos2d::CCPointArray::count(v3) )
{
cocos2d::CCPointArray::getControlPointAtIndex((cocos2d::CCPointArray *)v12, (unsigned int)v3, v2);
cocos2d::CCPoint::operator-(v13, v12, v11);
cocos2d::CCPointArray::replaceControlPoint((int)v3, v13, v2++);
cocos2d::CCPoint::operator=(v11, v12);
}
v5 = cocos2d::CCPointArray::reverse(v3, v4);
cocos2d::CCObject::release(v3);
v6 = cocos2d::CCPointArray::count(v5);
v7 = 1;
cocos2d::CCPointArray::getControlPointAtIndex((cocos2d::CCPointArray *)v13, (unsigned int)v5, v6 - 1);
cocos2d::CCPoint::operator=(v11, v13);
v8 = cocos2d::CCPointArray::count(v5);
cocos2d::CCPointArray::removeControlPointAtIndex(v5, v8 - 1);
cocos2d::CCPoint::operator-(v13, v11);
cocos2d::CCPoint::operator=(v11, v13);
cocos2d::CCPointArray::insertControlPoint(v5, (cocos2d::CCPoint *)v11, 0);
while ( v7 < cocos2d::CCPointArray::count(v5) )
{
cocos2d::CCPointArray::getControlPointAtIndex((cocos2d::CCPointArray *)v12, (unsigned int)v5, v7);
cocos2d::CCPoint::operator-(v13, v12);
cocos2d::CCPoint::operator=(v12, v13);
cocos2d::CCPoint::operator+(v13, v12, v11);
cocos2d::CCPointArray::replaceControlPoint((int)v5, v13, v7++);
cocos2d::CCPoint::operator=(v11, v13);
}
return cocos2d::CCCardinalSplineBy::create(*(this + 17), v5, *(this + 22), v9);
}