// // GameLevelManager::getCompletedWeeklyLevels from 0x807dac to 0x807f88 (476 bytes) // // 2 xrefs: // > GameLevelManager::updateUserScore @ 0x852944 // > @ 0x9eec0 // // 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:46 +0000 // __int64 __fastcall GameLevelManager::getCompletedWeeklyLevels(cocos2d::CCDictionary **this) { __int64 v2; // x0 unsigned int *v3; // x1 cocos2d::CCString **v4; // x19 cocos2d::CCString **v5; // x21 cocos2d::CCString *v6; // x27 unsigned int v7; // w26 cocos2d::CCString *v8; // x0 __int64 v9; // x27 const char *CString; // x0 size_t v11; // x0 const void *v12; // x0 GJGameLevel *v13; // x27 GameStatsManager *NormalPercent; // x0 GameStatsManager *v15; // x0 char *v17; // [xsp+68h] [xbp+68h] __int64 v18[2]; // [xsp+70h] [xbp+70h] BYREF void *v19; // [xsp+80h] [xbp+80h] v2 = cocos2d::CCDictionary::allKeys(*(this + 106)); if ( v2 && (v3 = *(unsigned int **)(v2 + 56), *v3) && (v4 = *((cocos2d::CCString ***)v3 + 2), v5 = &v4[*v3 - 1], v4 <= v5) ) { v6 = *v4; v7 = 0; if ( *v4 ) { if ( (unsigned int)cocos2d::CCString::intValue(*v4) - 100001 <= 0x1869F ) goto LABEL_9; while ( 1 ) { do { if ( v5 >= ++v4 ) { v6 = *v4; if ( *v4 ) continue; } return v7; } while ( (unsigned int)cocos2d::CCString::intValue(*v4) - 100001 > 0x1869F ); LABEL_9: v8 = v6; v9 = (__int64)*(this + 106); CString = (const char *)cocos2d::CCString::getCString(v8); v18[0] = 0; v17 = (char *)CString; v18[1] = 0; v19 = nullptr; v11 = strlen(CString); std::string::__init(v18, v17, v11); v12 = (const void *)cocos2d::CCDictionary::objectForKey(v9, v18); if ( v12 ) break; if ( (v18[0] & 1) != 0 ) { v13 = nullptr; LABEL_21: operator delete(v19); LABEL_11: if ( v13 ) { if ( *((_DWORD *)v13 + 237) - *((_DWORD *)v13 + 238) == 10 ) { NormalPercent = (GameStatsManager *)GJGameLevel::getNormalPercent(v13); if ( (_DWORD)NormalPercent == 100 ) { v15 = (GameStatsManager *)GameStatsManager::sharedState(NormalPercent); if ( (unsigned __int8)GameStatsManager::hasCompletedLevel(v15, v13) ) ++v7; } } } } } v13 = (GJGameLevel *)_dynamic_cast( v12, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); if ( (v18[0] & 1) == 0 ) goto LABEL_11; goto LABEL_21; } } else { return 0; } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source