// // GameLevelManager::getSavedLevels from 0x1000ab770 to 0x1000ab89c (300 bytes) // // 5 xrefs: // > GameLevelManager::limitSavedLevels @ 0x1000ae3d0 // > LevelBrowserLayer::loadPage @ 0x1004985fc // > LevelBrowserLayer::FLAlert_Clicked @ 0x10049af40 // > LevelBrowserLayer::FLAlert_Clicked @ 0x10049af74 // > sub_100506380 @ 0x1005063e0 // // 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 10:58:36 +0000 // __int64 __fastcall GameLevelManager::getSavedLevels(__int64 a1, int a2, int a3) { __int64 v6; // x19 __int64 v7; // x23 unsigned int v8; // w25 int v9; // w26 int v10; // w0 __int64 v11; // x0 char *CString; // x0 __int64 v13; // x24 __int64 v14; // x24 void *__p[2]; // [xsp+8h] [xbp-58h] BYREF char v17; // [xsp+1Fh] [xbp-41h] v6 = sub_1002E736C(a1); v7 = cocos2d::CCDictionary::allKeys(*(_QWORD *)(a1 + 760)); if ( (unsigned int)sub_1002E757C(v7) ) { v8 = 0; v9 = -1; do { v10 = sub_1002E757C(v7); v11 = sub_1002E75A0(v7, (unsigned int)(v10 + v9)); CString = (char *)cocos2d::CCString::getCString(v11); v13 = *(_QWORD *)(a1 + 760); sub_100009900(__p, CString); v14 = cocos2d::CCDictionary::objectForKey(v13, __p); if ( v17 < 0 ) operator delete(__p[0]); if ( (*(_BYTE *)(v14 + 1105) & 1) == 0 && (!a2 || *(_BYTE *)(v14 + 912) == 1) && (a3 < 1 || *(_DWORD *)(v14 + 916) == a3) ) { sub_1002E74E0(v6, v14); } ++v8; --v9; } while ( v8 < (unsigned int)sub_1002E757C(v7) ); } if ( (unsigned int)sub_1002E757C(v6) ) qsort( *(void **)(*(_QWORD *)(v6 + 56) + 16LL), **(unsigned int **)(v6 + 56), 8u, (int (__cdecl *)(const void *, const void *))sub_100090E9C); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source