// // AchievementManager::getAllAchievementsSorted from 0x3b81b4 to 0x3b829a (230 bytes) // // 2 xrefs: // > AchievementManager::init @ 0x3b84a8 // > AchievementManager::init @ 0x3b84b8 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:46:21 +0000 // size_t **__fastcall AchievementManager::getAllAchievementsSorted(cocos2d::CCDictionary **this, int a2) { unsigned int v3; // r6 cocos2d::CCArray *v4; // r8 size_t **v5; // r7 cocos2d::CCString *v6; // r0 const char *CString; // r0 int v8; // r10 size_t v9; // r0 cocos2d::CCObject *v10; // r10 const char *v13; // [sp+Ch] [bp-18h] int v14; // [sp+Ch] [bp-18h] int v15; // [sp+10h] [bp-14h] BYREF int v16; // [sp+14h] [bp-10h] int v17; // [sp+18h] [bp-Ch] v3 = 0; v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(*(this + 67)); v5 = (size_t **)cocos2d::CCArray::create(v4); while ( v3 < cocos2d::CCArray::count(v4) ) { v6 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, v3); CString = (const char *)cocos2d::CCString::getCString(v6); v15 = 0; v16 = 0; v17 = 0; v8 = (int)*(this + 67); v13 = CString; v9 = strlen(CString); std::string::__init(&v15, v13, v9); v10 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v8, &v15); std::string::~string((int)&v15); if ( !a2 || (v15 = 0, v16 = 0, v17 = 0, std::string::__init(&v15, "un", 2u), v14 = cocos2d::CCDictionary::objectForKey(v10, &v15), std::string::~string((int)&v15), !v14) ) { cocos2d::CCArray::addObject((cocos2d::CCArray *)v5, v10); } ++v3; } if ( cocos2d::CCArray::count((cocos2d::CCArray *)v5) ) qsort((void *)v5[13][3], *v5[13], 4u, (int (*)(const void *, const void *))achievementCompare); return v5; }