// // GameLevelManager::getCompletedDailyLevels from 0x807f88 to 0x808154 (460 bytes) // // 2 xrefs: // > GameLevelManager::updateUserScore @ 0x852aa4 // > @ 0x4c480 // // 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::getCompletedDailyLevels(cocos2d::CCDictionary **this) { __int64 v2; // x0 unsigned int *v3; // x1 cocos2d::CCString **v4; // x19 __int64 v5; // x0 char *v6; // x22 cocos2d::CCString *v7; // x20 unsigned int v8; // w27 cocos2d::CCString *v9; // x0 __int64 v10; // x20 const char *CString; // x0 size_t v12; // x0 const void *v13; // x0 GJGameLevel *v14; // x20 GameStatsManager *NormalPercent; // x0 GameStatsManager *v16; // x0 char *v18; // [xsp+68h] [xbp+68h] __int64 v19[2]; // [xsp+70h] [xbp+70h] BYREF void *v20; // [xsp+80h] [xbp+80h] v2 = cocos2d::CCDictionary::allKeys(*(this + 106)); if ( v2 && (v3 = *(unsigned int **)(v2 + 56), *v3) && (v4 = *((cocos2d::CCString ***)v3 + 2), v5 = 8LL * *v3 - 8, v6 = (char *)v4 + v5, v4 <= (cocos2d::CCString **)((char *)v4 + v5)) ) { v7 = *v4; v8 = 0; if ( *v4 ) { if ( (int)cocos2d::CCString::intValue(*v4) <= 100000 ) goto LABEL_9; while ( 1 ) { do { if ( v6 >= (char *)++v4 ) { v7 = *v4; if ( *v4 ) continue; } return v8; } while ( (int)cocos2d::CCString::intValue(*v4) > 100000 ); LABEL_9: v9 = v7; v10 = (__int64)*(this + 106); CString = (const char *)cocos2d::CCString::getCString(v9); v19[0] = 0; v18 = (char *)CString; v19[1] = 0; v20 = nullptr; v12 = strlen(CString); std::string::__init(v19, v18, v12); v13 = (const void *)cocos2d::CCDictionary::objectForKey(v10, v19); if ( v13 ) break; if ( (v19[0] & 1) != 0 ) { v14 = nullptr; LABEL_21: operator delete(v20); LABEL_11: if ( v14 ) { if ( *((_DWORD *)v14 + 237) - *((_DWORD *)v14 + 238) <= 9 ) { NormalPercent = (GameStatsManager *)GJGameLevel::getNormalPercent(v14); if ( (_DWORD)NormalPercent == 100 ) { v16 = (GameStatsManager *)GameStatsManager::sharedState(NormalPercent); if ( (unsigned __int8)GameStatsManager::hasCompletedLevel(v16, v14) ) ++v8; } } } } } v14 = (GJGameLevel *)_dynamic_cast( v13, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); if ( (v19[0] & 1) == 0 ) goto LABEL_11; goto LABEL_21; } } else { return 0; } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source