// // cocos2d::CCCardinalSplineBy::reverse from 0xd27cd8 to 0xd27ea8 (464 bytes) // // 3 xrefs: // > @ 0x419f8 // > @ 0x15110b0 // > @ 0x1511230 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:07:15 +0000 // cocos2d::CCCardinalSplineBy *__fastcall cocos2d::CCCardinalSplineBy::reverse(cocos2d::CCCardinalSplineBy *this) { unsigned int v2; // w20 cocos2d::CCPointArray *v3; // x24 long double v4; // q0 unsigned int v5; // w2 unsigned int v6; // w20 cocos2d::CCPointArray *v7; // x23 int v8; // w0 int v9; // w0 unsigned int v10; // w2 cocos2d::CCPointArray *v11; // x1 _BYTE v13[8]; // [xsp+50h] [xbp+50h] BYREF _BYTE v14[8]; // [xsp+58h] [xbp+58h] BYREF __int64 v15; // [xsp+60h] [xbp+60h] BYREF v2 = 1; v3 = (cocos2d::CCPointArray *)cocos2d::CCObject::copy(*((cocos2d::CCObject **)this + 12)); cocos2d::CCPointArray::getControlPointAtIndex(v3, 0, (cocos2d::CCPoint *)v13); while ( v2 < (unsigned int)cocos2d::CCPointArray::count(v3) ) { cocos2d::CCPointArray::getControlPointAtIndex(v3, v2, (cocos2d::CCPoint *)v14); cocos2d::CCPoint::operator-(&v15, v14, v13, v4); v5 = v2++; cocos2d::CCPointArray::replaceControlPoint((__int64)v3, &v15, v5); cocos2d::CCPoint::operator=(v13, v14); } v6 = 1; v7 = cocos2d::CCPointArray::reverse(v3); cocos2d::CCObject::release(v3); v8 = cocos2d::CCPointArray::count(v7); cocos2d::CCPointArray::getControlPointAtIndex(v7, (unsigned int)(v8 - 1), (cocos2d::CCPoint *)&v15); cocos2d::CCPoint::operator=(v13, &v15); v9 = cocos2d::CCPointArray::count(v7); cocos2d::CCPointArray::removeControlPointAtIndex(v7, v9 - 1); cocos2d::CCPoint::operator-(&v15, v13); cocos2d::CCPoint::operator=(v13, &v15); cocos2d::CCPointArray::insertControlPoint(v7, (cocos2d::CCPoint *)v13, 0); while ( v6 < (unsigned int)cocos2d::CCPointArray::count(v7) ) { cocos2d::CCPointArray::getControlPointAtIndex(v7, v6, (cocos2d::CCPoint *)v14); cocos2d::CCPoint::operator-(&v15, v14); cocos2d::CCPoint::operator=(v14, &v15); cocos2d::CCPoint::operator+(&v15, v14); v10 = v6++; cocos2d::CCPointArray::replaceControlPoint((__int64)v7, &v15, v10); cocos2d::CCPoint::operator=(v13, &v15); } return cocos2d::CCCardinalSplineBy::create(v7, *((float *)this + 20), v11, *((float *)this + 27)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source