// // cocos2d::CCCardinalSplineBy::reverse from 0x5b11c8 to 0x5b12e6 (286 bytes) // // 0 xrefs: // // 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; // r5 cocos2d::CCPointArray *v3; // r8 int v4; // r2 bool v5; // r3 cocos2d::CCPointArray *v6; // r5 unsigned int v7; // r0 unsigned int v8; // r8 int v9; // r2 bool v10; // r3 unsigned int v11; // r0 int v12; // r2 bool v13; // r3 int v14; // r2 bool v15; // r3 int v16; // r2 bool v17; // r3 cocos2d::CCPoint v19; // [sp+4h] [bp-1Ch] BYREF cocos2d::CCPoint v20; // [sp+Ch] [bp-14h] BYREF cocos2d::CCPoint v21; // [sp+14h] [bp-Ch] BYREF v2 = 1; v3 = (cocos2d::CCPointArray *)cocos2d::CCObject::copy((cocos2d::CCObject *)a1[1].__vftable); cocos2d::CCPointArray::getControlPointAtIndex(&v19, v3, 0); while ( v2 < cocos2d::CCPointArray::count(v3) ) { cocos2d::CCPointArray::getControlPointAtIndex(&v20, v3, v2); cocos2d::CCPoint::operator-(&v21, &v20, &v19); cocos2d::CCPointArray::replaceControlPoint(v3, &v21, v2++); cocos2d::CCPoint::operator=((PlayerObject *)&v19, COERCE_FLOAT(&v20), v4, v5); } v6 = cocos2d::CCPointArray::reverse(v3); cocos2d::CCObject::release(v3); v7 = cocos2d::CCPointArray::count(v6); v8 = 1; cocos2d::CCPointArray::getControlPointAtIndex(&v21, v6, v7 - 1); cocos2d::CCPoint::operator=((PlayerObject *)&v19, COERCE_FLOAT(&v21), v9, v10); v11 = cocos2d::CCPointArray::count(v6); cocos2d::CCPointArray::removeControlPointAtIndex(v6, v11 - 1); cocos2d::CCPoint::operator-(&v21, &v19); cocos2d::CCPoint::operator=((PlayerObject *)&v19, COERCE_FLOAT(&v21), v12, v13); cocos2d::CCPointArray::insertControlPoint(v6, &v19, 0); while ( v8 < cocos2d::CCPointArray::count(v6) ) { cocos2d::CCPointArray::getControlPointAtIndex(&v20, v6, v8); cocos2d::CCPoint::operator-(&v21, &v20); cocos2d::CCPoint::operator=((PlayerObject *)&v20, COERCE_FLOAT(&v21), v14, v15); cocos2d::CCPoint::operator+(&v21, &v20, &v19); cocos2d::CCPointArray::replaceControlPoint(v6, &v21, v8++); cocos2d::CCPoint::operator=((PlayerObject *)&v19, COERCE_FLOAT(&v21), v16, v17); } return cocos2d::CCCardinalSplineBy::create(a1->m_fDuration, v6, *(float *)&a1[1].m_nLuaID); }
GD Web Decomp Icon

GD Web Decomp

Raw Source