// // GJBaseGameLayer::sortStartPosObjects from 0x99da10 to 0x99da90 (128 bytes) // // 3 xrefs: // > PlayLayer::addLiveStartPosObject @ 0x700520 // > GJBaseGameLayer::processStartPosObjects @ 0x99daa0 // > @ 0x4b6e8 // // 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 12:58:05 +0000 // __int64 __fastcall GJBaseGameLayer::sortStartPosObjects(cocos2d::CCArray **this) { __int64 result; // x0 cocos2d::CCArray *started; // x22 unsigned int v4; // w19 unsigned int v5; // w1 cocos2d::CCArray *v6; // x20 cocos2d::CCObject *v7; // x0 result = cocos2d::CCArray::count(*(this + 1555)); if ( (unsigned int)result > 1 ) { started = rankStartPosObjectsByRepeatedWinner(*(this + 1555)); cocos2d::CCArray::removeAllObjects(*(this + 1555)); result = cocos2d::CCArray::count(started); v4 = result - 1; if ( (int)result - 1 >= 0 ) { do { v5 = v4; v6 = *(this + 1555); --v4; v7 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(started, v5); result = cocos2d::CCArray::addObject(v6, v7); } while ( v4 != -1 ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source