// // GameLevelManager::updateLevelOrders from 0x7ff8f0 to 0x7ffafc (524 bytes) // // 3 xrefs: // > GameLevelManager::encodeDataTo @ 0x808ba8 // > GameLevelManager::encodeDataTo @ 0x808bb0 // > @ 0x41b18 // // 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:54:43 +0000 // __int64 __fastcall GameLevelManager::updateLevelOrders(cocos2d::CCDictionary **this) { unsigned int v2; // w21 cocos2d::CCArray *v3; // x25 cocos2d::CCArray *v4; // x23 int v5; // w0 cocos2d::CCString *v6; // x0 const char *CString; // x0 const char *v8; // x27 size_t v9; // x0 size_t v10; // x20 __int64 v11; // x28 char *v12; // x3 __int64 v13; // x1 unsigned int v14; // w19 int v15; // w20 __int64 v16; // x0 unsigned int v17; // w1 unsigned __int64 v19; // x0 __int64 v20; // x22 char *v21; // x0 cocos2d::CCObject *v22; // [xsp+68h] [xbp+68h] __int64 v23; // [xsp+70h] [xbp+70h] BYREF size_t v24; // [xsp+78h] [xbp+78h] void *v25; // [xsp+80h] [xbp+80h] v2 = 0; v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(_stack_chk_guard); v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(*(this + 95)); if ( (unsigned int)cocos2d::CCArray::count(v4) ) { do { v5 = cocos2d::CCArray::count(v4); v6 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, ~v2 + v5); CString = (const char *)cocos2d::CCString::getCString(v6); v23 = 0; v24 = 0; v8 = CString; v25 = nullptr; v9 = strlen(CString); v10 = v9; v11 = (__int64)*(this + 95); if ( v9 > 0xFFFFFFFFFFFFFFEFLL ) sub_62C79C(); if ( v9 > 0x16 ) { v19 = (v9 + 16) & 0xFFFFFFFFFFFFFFF0LL; v20 = v19 | 1; v21 = (char *)operator new(v19); v23 = v20; v12 = v21; v25 = v21; v24 = v10; } else { LOBYTE(v23) = 2 * v9; v12 = (char *)&v23 + 1; if ( !v9 ) goto LABEL_5; } v12 = (char *)memcpy(v12, v8, v10); LABEL_5: v12[v10] = 0; v13 = cocos2d::CCDictionary::objectForKey(v11, &v23); if ( (v23 & 1) != 0 ) { v22 = (cocos2d::CCObject *)v13; operator delete(v25); v13 = (__int64)v22; if ( !*((_BYTE *)v22 + 1105) ) { LABEL_17: ++v2; cocos2d::CCArray::addObject(v3, (cocos2d::CCObject *)v13); continue; } } else if ( !*(_BYTE *)(v13 + 1105) ) { goto LABEL_17; } *(_DWORD *)(v13 + 632) = 0; ++v2; } while ( v2 < (unsigned int)cocos2d::CCArray::count(v4) ); } if ( (unsigned int)cocos2d::CCArray::count(v3) ) qsort( *(void **)(*((_QWORD *)v3 + 7) + 16LL), **((unsigned int **)v3 + 7), 8u, (int (*)(const void *, const void *))savedLevelCompare); v14 = 0; v15 = cocos2d::CCArray::count(v3); if ( v15 > 0 ) { do { v16 = cocos2d::CCArray::objectAtIndex(v3, v14); v17 = v15 - v14++; *(_DWORD *)(v16 + 632) = v17; } while ( v15 != v14 ); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source