// // cocos2d::CCArray::reverseObjects from 0xad470c to 0xad4784 (120 bytes) // // 2 xrefs: // > LevelEditorLayer::reverseKeyframeAnimationOrder @ 0x662ba8 // > @ 0xad598 // // 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 *__fastcall cocos2d::CCArray::reverseObjects(cocos2d::CCArray *this, __int64 a2, __int64 a3, unsigned int a4) { cocos2d *result; // x0 unsigned int v6; // w19 unsigned int v7; // w20 int v8; // w21 unsigned int v9; // w19 cocos2d::_ccArray *v10; // x1 unsigned int v11; // w2 result = (cocos2d *)this->data; v6 = *(_DWORD *)result; if ( *(_DWORD *)result > 1u ) { v7 = v6 - 1; v8 = (int)(float)((float)v6 * 0.5); if ( v8 > 0 ) { v9 = 0; while ( 1 ) { v10 = (cocos2d::_ccArray *)v9; v11 = v7; ++v9; --v7; result = (cocos2d *)cocos2d::ccArraySwapObjectsAtIndexes(result, v10, v11, a4); if ( v9 == v8 ) break; result = (cocos2d *)this->data; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source