// // GameLevelManager::dataLoaded from 0x860174 to 0x861030 (3772 bytes) // // 2 xrefs: // > GameManager::dataLoaded @ 0x727a0c // > @ 0x5fd58 // // 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:55:36 +0000 // __int64 __fastcall GameLevelManager::dataLoaded(GameLevelManager *this, DS_Dictionary *a2) { cocos2d::CCObject *DictForKey; // x0 cocos2d::CCObject *v5; // x19 __int64 v6; // x21 __int64 i; // x24 size_t v8; // x0 const void *v9; // x0 GJGameLevel *v10; // x21 const void *v11; // x0 GJGameLevel *v12; // x0 GJGameLevel *v13; // x25 GameStatsManager *NormalPercent; // x0 cocos2d::CCObject *v15; // x0 cocos2d::CCDictionary *v16; // x19 cocos2d::CCDictionary *v17; // x1 __int64 v18; // x21 __int64 j; // x24 size_t v20; // x0 const void *v21; // x0 GJGameLevel *v22; // x21 const void *v23; // x0 GJGameLevel *v24; // x0 GJGameLevel *v25; // x1 GJGameLevel *v26; // x0 GJGameLevel *v27; // x21 GameStatsManager *v28; // x0 GameStatsManager *v29; // x0 cocos2d::CCObject *v30; // x0 cocos2d::CCObject *v31; // x19 __int64 v32; // x21 __int64 k; // x24 size_t v34; // x0 const void *v35; // x0 GJGameLevel *v36; // x21 const void *v37; // x0 GJGameLevel *v38; // x0 GJGameLevel *v39; // x1 GJGameLevel *v40; // x0 GJGameLevel *v41; // x21 GameStatsManager *v42; // x0 GameStatsManager *v43; // x0 cocos2d::CCObject *v44; // x0 cocos2d::CCObject *v45; // x19 __int64 v46; // x21 __int64 m; // x24 size_t v48; // x0 const void *v49; // x0 GJGameLevel *v50; // x21 const void *v51; // x0 GJGameLevel *v52; // x0 GJGameLevel *v53; // x1 GJGameLevel *v54; // x0 GJGameLevel *v55; // x21 GameStatsManager *v56; // x0 GameStatsManager *v57; // x0 unsigned int v58; // w21 cocos2d::CCDictionary *ArrayForKey; // x25 cocos2d::CCObject *v60; // x28 const void *v61; // x0 cocos2d::CCObject *v62; // x0 cocos2d::CCObject *v63; // x24 const char *LevelListKey; // x0 size_t v65; // x0 __int64 v66; // x21 __int64 n; // x24 size_t v68; // x0 const void *v69; // x0 cocos2d::CCObject *v70; // x21 const void *v71; // x0 cocos2d::CCObject *v72; // x0 cocos2d::CCObject *v73; // x1 GameStatsManager *v74; // x0 _BOOL4 v75; // w4 int v76; // w5 int v77; // w6 int v78; // w7 int v79; // w4 int v80; // w5 int v81; // w6 int v82; // w7 cocos2d::CCObject *v83; // x0 cocos2d::CCDictionary *v84; // x21 cocos2d::CCObject *v85; // x0 cocos2d::CCObject *v86; // x19 cocos2d::CCObject *v87; // x0 cocos2d::CCObject *v88; // x0 cocos2d::CCObject *v89; // x19 cocos2d::CCObject *v90; // x0 cocos2d::CCObject *v91; // x0 cocos2d::CCObject *v92; // x19 __int64 v93; // x24 __int64 v94; // x21 __int64 v95; // x25 size_t v96; // x0 __int64 v97; // x25 cocos2d::CCObject *v98; // x0 cocos2d::CCObject *v99; // x19 __int64 v100; // x24 __int64 v101; // x21 __int64 v102; // x25 size_t v103; // x0 __int64 v104; // x25 cocos2d::CCObject *v105; // x0 cocos2d::CCObject *v106; // x19 __int64 v107; // x24 __int64 v108; // x21 __int64 v109; // x25 size_t v110; // x0 __int64 v111; // x25 cocos2d::CCObject *v112; // x0 cocos2d::CCObject *v113; // x19 cocos2d::CCObject *v114; // x0 cocos2d::CCDictionary *v115; // x0 cocos2d::CCDictionary *v116; // x2 cocos2d::CCObject *v117; // x0 cocos2d::CCDictionary *v118; // x1 GameToolbox *v119; // x2 cocos2d::CCObject *v120; // x0 cocos2d::CCObject *v121; // x19 cocos2d::CCObject *v122; // x0 __int64 v124; // x26 size_t v125; // x0 cocos2d::CCObject *v126; // x25 __int64 v127; // x26 size_t v128; // x0 cocos2d::CCObject *v129; // x25 __int64 v130; // x26 size_t v131; // x0 cocos2d::CCObject *v132; // x25 __int64 v133; // x0 cocos2d::CCString *v134; // x0 cocos2d::CCDictionary *v135; // x2 GameManager *v136; // x0 GameManager *v137; // x0 cocos2d::CCObject *v138; // x0 cocos2d::CCObject *v139; // x0 cocos2d::CCDictionary *v140; // x1 cocos2d::CCObject *v141; // x0 cocos2d::CCObject *v142; // x1 cocos2d::CCObject *v143; // x0 cocos2d::CCObject *v144; // x0 cocos2d::CCObject *v145; // x0 cocos2d::CCObject *v146; // x0 cocos2d::CCObject *v147; // x0 cocos2d::CCObject *v148; // x0 cocos2d::CCObject *v149; // x0 cocos2d::CCObject *v150; // x0 char v151; // [xsp+0h] [xbp+0h] char v152; // [xsp+0h] [xbp+0h] char *v153; // [xsp+68h] [xbp+68h] cocos2d::CCDictionary *v154; // [xsp+68h] [xbp+68h] cocos2d::CCObject *v155; // [xsp+68h] [xbp+68h] __int64 v156; // [xsp+70h] [xbp+70h] BYREF __int64 v157; // [xsp+78h] [xbp+78h] void *v158; // [xsp+80h] [xbp+80h] DictForKey = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GLM_01", 0); v5 = DictForKey; if ( *((_QWORD *)this + 93) ) { if ( DictForKey ) { v6 = *((_QWORD *)DictForKey + 7); if ( v6 ) { for ( i = *(_QWORD *)(v6 + 288); ; i = *(_QWORD *)(i + 288) ) { v156 = 0; v157 = 0; v158 = nullptr; v8 = strlen((const char *)v6); std::string::__init(&v156, (void *)v6, v8); v9 = *(const void **)(v6 + 264); if ( v9 ) v10 = (GJGameLevel *)_dynamic_cast( v9, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); else v10 = nullptr; v11 = (const void *)cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 93), &v156); if ( v11 ) { v12 = (GJGameLevel *)_dynamic_cast( v11, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); v13 = v12; if ( !v10 ) goto LABEL_13; if ( v12 ) { GJGameLevel::handleStatsConflict(v12, v10); goto LABEL_11; } } else if ( !v10 ) { goto LABEL_13; } cocos2d::CCDictionary::setObject(*((_QWORD *)this + 93), v10); v13 = v10; LABEL_11: NormalPercent = (GameStatsManager *)GJGameLevel::getNormalPercent(v13); if ( (int)NormalPercent > 99 ) { v29 = (GameStatsManager *)GameStatsManager::sharedState(NormalPercent); GameStatsManager::completedLevel(v29, v13); } LABEL_13: if ( (v156 & 1) != 0 ) { operator delete(v158); if ( !i ) break; } else if ( !i ) { break; } v6 = i; } } } } else if ( DictForKey ) { cocos2d::CCObject::retain(DictForKey); v148 = *((cocos2d::CCObject **)this + 93); if ( v148 ) cocos2d::CCObject::release(v148); *((_QWORD *)this + 93) = v5; } v15 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GLM_03", 0); v16 = v15; v17 = *((cocos2d::CCDictionary **)this + 95); if ( v17 ) { if ( v15 ) { v18 = *((_QWORD *)v15 + 7); if ( v18 ) { for ( j = *(_QWORD *)(v18 + 288); ; j = *(_QWORD *)(j + 288) ) { v156 = 0; v157 = 0; v158 = nullptr; v20 = strlen((const char *)v18); std::string::__init(&v156, (void *)v18, v20); v21 = *(const void **)(v18 + 264); if ( v21 ) v22 = (GJGameLevel *)_dynamic_cast( v21, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); else v22 = nullptr; v23 = (const void *)cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 95), &v156); if ( v23 ) { v24 = (GJGameLevel *)_dynamic_cast( v23, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); v25 = v24; if ( !v22 ) goto LABEL_31; if ( v24 ) { if ( *((_DWORD *)v24 + 197) > *((_DWORD *)v22 + 197) ) { v26 = v22; v22 = v25; v25 = v26; } GJGameLevel::handleStatsConflict(v22, v25); } } else if ( !v22 ) { goto LABEL_31; } cocos2d::CCDictionary::setObject(*((_QWORD *)this + 95), v22); v27 = (GJGameLevel *)cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 95), &v156); v28 = (GameStatsManager *)GJGameLevel::getNormalPercent(v27); if ( (int)v28 > 99 ) { v43 = (GameStatsManager *)GameStatsManager::sharedState(v28); GameStatsManager::completedLevel(v43, v27); } LABEL_31: if ( (v156 & 1) != 0 ) { operator delete(v158); if ( !j ) { LABEL_38: v17 = *((cocos2d::CCDictionary **)this + 95); break; } } else if ( !j ) { goto LABEL_38; } v18 = j; } } } } else if ( v15 ) { cocos2d::CCObject::retain(v15); v149 = *((cocos2d::CCObject **)this + 95); if ( v149 ) cocos2d::CCObject::release(v149); *((_QWORD *)this + 95) = v16; v17 = v16; } GameLevelManager::verifyContainerOnlyHasLevels(this, v17); v30 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GLM_10", 0); v31 = v30; if ( *((_QWORD *)this + 106) ) { if ( v30 ) { v32 = *((_QWORD *)v30 + 7); if ( v32 ) { for ( k = *(_QWORD *)(v32 + 288); ; k = *(_QWORD *)(k + 288) ) { v156 = 0; v157 = 0; v158 = nullptr; v34 = strlen((const char *)v32); std::string::__init(&v156, (void *)v32, v34); v35 = *(const void **)(v32 + 264); if ( v35 ) v36 = (GJGameLevel *)_dynamic_cast( v35, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); else v36 = nullptr; v37 = (const void *)cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 106), &v156); if ( v37 ) { v38 = (GJGameLevel *)_dynamic_cast( v37, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); v39 = v38; if ( !v36 ) goto LABEL_53; if ( v38 ) { if ( *((_DWORD *)v38 + 197) > *((_DWORD *)v36 + 197) ) { v40 = v36; v36 = v39; v39 = v40; } GJGameLevel::handleStatsConflict(v36, v39); } } else if ( !v36 ) { goto LABEL_53; } cocos2d::CCDictionary::setObject(*((_QWORD *)this + 106), v36); v41 = (GJGameLevel *)cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 106), &v156); v42 = (GameStatsManager *)(unsigned int)(*((_DWORD *)v41 + 216) - *((_DWORD *)v41 + 217)); if ( (int)v42 > 99 ) { v57 = (GameStatsManager *)GameStatsManager::sharedState(v42); GameStatsManager::completedLevel(v57, v41); } LABEL_53: if ( (v156 & 1) != 0 ) { operator delete(v158); if ( !k ) break; } else if ( !k ) { break; } v32 = k; } } } } else if ( v30 ) { cocos2d::CCObject::retain(v30); v150 = *((cocos2d::CCObject **)this + 106); if ( v150 ) cocos2d::CCObject::release(v150); *((_QWORD *)this + 106) = v31; } v44 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GLM_16", 0); v45 = v44; if ( *((_QWORD *)this + 117) ) { if ( v44 ) { v46 = *((_QWORD *)v44 + 7); if ( v46 ) { for ( m = *(_QWORD *)(v46 + 288); ; m = *(_QWORD *)(m + 288) ) { v156 = 0; v157 = 0; v158 = nullptr; v48 = strlen((const char *)v46); std::string::__init(&v156, (void *)v46, v48); v49 = *(const void **)(v46 + 264); if ( v49 ) v50 = (GJGameLevel *)_dynamic_cast( v49, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); else v50 = nullptr; v51 = (const void *)cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 117), &v156); if ( v51 ) { v52 = (GJGameLevel *)_dynamic_cast( v51, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); v53 = v52; if ( !v50 ) goto LABEL_71; if ( v52 ) { if ( *((_DWORD *)v52 + 197) > *((_DWORD *)v50 + 197) ) { v54 = v50; v50 = v53; v53 = v54; } GJGameLevel::handleStatsConflict(v50, v53); } } else if ( !v50 ) { goto LABEL_71; } cocos2d::CCDictionary::setObject(*((_QWORD *)this + 117), v50); v55 = (GJGameLevel *)cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 117), &v156); v56 = (GameStatsManager *)(unsigned int)(*((_DWORD *)v55 + 216) - *((_DWORD *)v55 + 217)); if ( (int)v56 > 99 ) { v74 = (GameStatsManager *)GameStatsManager::sharedState(v56); GameStatsManager::completedLevel(v74, v55); } LABEL_71: if ( (v156 & 1) != 0 ) { operator delete(v158); if ( !m ) break; } else if ( !m ) { break; } v46 = m; } } } } else if ( v44 ) { cocos2d::CCObject::retain(v44); v145 = *((cocos2d::CCObject **)this + 117); if ( v145 ) cocos2d::CCObject::release(v145); *((_QWORD *)this + 117) = v45; } v58 = 0; ArrayForKey = (cocos2d::CCDictionary *)DS_Dictionary::getArrayForKey(a2, "GLM_22", 0); v60 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(ArrayForKey); if ( (unsigned int)cocos2d::CCArray::count(ArrayForKey) ) { do { v61 = (const void *)cocos2d::CCArray::objectAtIndex(ArrayForKey, v58); if ( !v61 ) goto LABEL_85; v62 = (cocos2d::CCObject *)_dynamic_cast( v61, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJLevelList, 0); v63 = v62; if ( !v62 ) goto LABEL_85; LevelListKey = (const char *)GameLevelManager::getLevelListKey(this, (const char *)*((unsigned int *)v62 + 86)); v156 = 0; v157 = 0; v158 = nullptr; v153 = (char *)LevelListKey; v65 = strlen(LevelListKey); std::string::__init(&v156, v153, v65); cocos2d::CCDictionary::setObject((int)v60, v63); if ( (v156 & 1) != 0 ) { ++v58; operator delete(v158); } else { LABEL_85: ++v58; } } while ( v58 < (unsigned int)cocos2d::CCArray::count(ArrayForKey) ); } if ( *((_QWORD *)this + 98) ) { if ( v60 ) { v66 = *((_QWORD *)v60 + 7); if ( v66 ) { for ( n = *(_QWORD *)(v66 + 288); ; n = *(_QWORD *)(n + 288) ) { v156 = 0; v157 = 0; v158 = nullptr; v68 = strlen((const char *)v66); std::string::__init(&v156, (void *)v66, v68); v69 = *(const void **)(v66 + 264); v70 = v69 ? (cocos2d::CCObject *)_dynamic_cast( v69, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJLevelList, 0) : nullptr; v71 = (const void *)cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 98), &v156); if ( !v71 ) break; v72 = (cocos2d::CCObject *)_dynamic_cast( v71, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJLevelList, 0); v73 = v72; if ( !v70 ) goto LABEL_99; if ( !v72 ) goto LABEL_158; if ( *((_DWORD *)v72 + 87) <= *((_DWORD *)v70 + 87) ) v73 = v70; cocos2d::CCDictionary::setObject(*((_QWORD *)this + 98), v73); LABEL_99: if ( (v156 & 1) != 0 ) { operator delete(v158); if ( !n ) goto LABEL_107; } else if ( !n ) { goto LABEL_107; } v66 = n; } if ( !v70 ) goto LABEL_99; LABEL_158: cocos2d::CCDictionary::setObject(*((_QWORD *)this + 98), v70); goto LABEL_99; } } } else if ( v60 ) { cocos2d::CCObject::retain(v60); v143 = *((cocos2d::CCObject **)this + 98); if ( v143 ) cocos2d::CCObject::release(v143); *((_QWORD *)this + 98) = v60; } LABEL_107: *((_DWORD *)this + 216) = DS_Dictionary::getIntegerForKey(a2, "GLM_11"); *((_DWORD *)this + 219) = DS_Dictionary::getIntegerForKey(a2, "GLM_17"); *((_DWORD *)this + 222) = DS_Dictionary::getIntegerForKey(a2, "GLM_23"); *((_DWORD *)this + 229) = DS_Dictionary::getIntegerForKey(a2, "GLM_24"); *((_DWORD *)this + 230) = DS_Dictionary::getIntegerForKey(a2, "GLM_25"); *((_DWORD *)this + 231) = DS_Dictionary::getIntegerForKey(a2, "GLM_26"); *((_DWORD *)this + 232) = DS_Dictionary::getIntegerForKey(a2, "GLM_27"); v75 = DS_Dictionary::getIntegerForKey(a2, "GLM_28") != 0; *((_BYTE *)this + 932) = v75; DS_Dictionary::addBoolValuesToMapForKey((int)a2, (_DWORD)this + 944, "GLM_09", 0, v75, v76, v77, v78, v151); DS_Dictionary::addBoolValuesToMapForKeySpecial((int)a2, (_DWORD)this + 944, "GLM_04", 0, v79, v80, v81, v82, v152); v83 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GLM_06", 0); v84 = v83; if ( *((_QWORD *)this + 97) ) { v156 = 0; v157 = 0; v158 = nullptr; std::string::__init(&v156, "gv_", 3u); std::string::append((__int64)&v156, "0241", 4u); if ( (unsigned int)cocos2d::CCDictionary::count(v84) ) { v133 = DS_Dictionary::getDictForKey(a2, "valueKeeper", 0); v134 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v133, &v156); if ( !(unsigned __int8)cocos2d::CCString::boolValue(v134) ) { v136 = (GameManager *)GameToolbox::mergeDictsSaveLargestInt(*((GameToolbox **)this + 97), v84, v135); v137 = (GameManager *)GameManager::sharedState(v136); GameManager::setGameVariable(v137, "0241", 0); } } if ( (v156 & 1) != 0 ) operator delete(v158); } else if ( v83 ) { cocos2d::CCObject::retain(v83); v138 = *((cocos2d::CCObject **)this + 97); if ( v138 ) cocos2d::CCObject::release(v138); *((_QWORD *)this + 97) = v84; } v85 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GLM_07", 0); v86 = v85; if ( v85 && !*((_QWORD *)this + 99) ) { cocos2d::CCObject::retain(v85); v87 = *((cocos2d::CCObject **)this + 99); if ( v87 ) cocos2d::CCObject::release(v87); *((_QWORD *)this + 99) = v86; } v88 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GLM_08", 0); v89 = v88; if ( v88 && !*((_QWORD *)this + 94) ) { cocos2d::CCObject::retain(v88); v90 = *((cocos2d::CCObject **)this + 94); if ( v90 ) cocos2d::CCObject::release(v90); *((_QWORD *)this + 94) = v89; } v91 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GLM_12", 0); v92 = v91; if ( *((_QWORD *)this + 100) ) { v93 = *((_QWORD *)v91 + 7); if ( v93 ) { v94 = *(_QWORD *)(v93 + 288); if ( (unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 100)) <= 0x3E7 ) { while ( 1 ) { v156 = 0; v157 = 0; v158 = nullptr; v95 = *((_QWORD *)this + 100); v96 = strlen((const char *)v93); std::string::__init(&v156, (void *)v93, v96); v97 = cocos2d::CCDictionary::objectForKey(v95, &v156); if ( (v156 & 1) != 0 ) { operator delete(v158); if ( !v97 ) { LABEL_161: v156 = 0; v157 = 0; v158 = nullptr; v124 = *((_QWORD *)this + 100); v125 = strlen((const char *)v93); v126 = *((cocos2d::CCObject **)this + 189); std::string::__init(&v156, (void *)v93, v125); cocos2d::CCDictionary::setObject(v124, v126); if ( (v156 & 1) != 0 ) operator delete(v158); } } else if ( !v97 ) { goto LABEL_161; } if ( v94 ) { v93 = v94; v94 = *(_QWORD *)(v94 + 288); if ( (unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 100)) <= 0x3E7 ) continue; } break; } } } } else if ( v91 ) { cocos2d::CCObject::retain(v91); v147 = *((cocos2d::CCObject **)this + 100); if ( v147 ) cocos2d::CCObject::release(v147); *((_QWORD *)this + 100) = v92; } v98 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GLM_13", 0); v99 = v98; if ( *((_QWORD *)this + 101) ) { v100 = *((_QWORD *)v98 + 7); if ( v100 ) { v101 = *(_QWORD *)(v100 + 288); if ( (unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 101)) <= 0x3E7 ) { while ( 1 ) { v156 = 0; v157 = 0; v158 = nullptr; v102 = *((_QWORD *)this + 101); v103 = strlen((const char *)v100); std::string::__init(&v156, (void *)v100, v103); v104 = cocos2d::CCDictionary::objectForKey(v102, &v156); if ( (v156 & 1) != 0 ) { operator delete(v158); if ( !v104 ) { LABEL_164: v156 = 0; v157 = 0; v158 = nullptr; v127 = *((_QWORD *)this + 101); v128 = strlen((const char *)v100); v129 = *((cocos2d::CCObject **)this + 189); std::string::__init(&v156, (void *)v100, v128); cocos2d::CCDictionary::setObject(v127, v129); if ( (v156 & 1) != 0 ) operator delete(v158); } } else if ( !v104 ) { goto LABEL_164; } if ( v101 ) { v100 = v101; v101 = *(_QWORD *)(v101 + 288); if ( (unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 101)) <= 0x3E7 ) continue; } break; } } } } else if ( v98 ) { cocos2d::CCObject::retain(v98); v144 = *((cocos2d::CCObject **)this + 101); if ( v144 ) cocos2d::CCObject::release(v144); *((_QWORD *)this + 101) = v99; } v105 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GLM_15", 0); v106 = v105; if ( *((_QWORD *)this + 102) ) { v107 = *((_QWORD *)v105 + 7); if ( v107 ) { v108 = *(_QWORD *)(v107 + 288); if ( (unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 102)) <= 0x3E7 ) { while ( 1 ) { v156 = 0; v157 = 0; v158 = nullptr; v109 = *((_QWORD *)this + 102); v110 = strlen((const char *)v107); std::string::__init(&v156, (void *)v107, v110); v111 = cocos2d::CCDictionary::objectForKey(v109, &v156); if ( (v156 & 1) != 0 ) { operator delete(v158); if ( !v111 ) { LABEL_167: v156 = 0; v157 = 0; v158 = nullptr; v130 = *((_QWORD *)this + 102); v131 = strlen((const char *)v107); v132 = *((cocos2d::CCObject **)this + 189); std::string::__init(&v156, (void *)v107, v131); cocos2d::CCDictionary::setObject(v130, v132); if ( (v156 & 1) != 0 ) operator delete(v158); } } else if ( !v111 ) { goto LABEL_167; } if ( v108 ) { v107 = v108; v108 = *(_QWORD *)(v108 + 288); if ( (unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 102)) <= 0x3E7 ) continue; } break; } } } } else if ( v105 ) { cocos2d::CCObject::retain(v105); v146 = *((cocos2d::CCObject **)this + 102); if ( v146 ) cocos2d::CCObject::release(v146); *((_QWORD *)this + 102) = v106; } v112 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GLM_14", 0); v113 = v112; if ( v112 && !*((_QWORD *)this + 103) ) { cocos2d::CCObject::retain(v112); v114 = *((cocos2d::CCObject **)this + 103); if ( v114 ) cocos2d::CCObject::release(v114); *((_QWORD *)this + 103) = v113; } v115 = (cocos2d::CCDictionary *)DS_Dictionary::getDictForKey(a2, "GLM_18", 0); v116 = *((cocos2d::CCDictionary **)this + 104); if ( v116 ) { GameToolbox::mergeDictsSkipConflict(*((GameToolbox **)this + 104), v115, v116); } else { v154 = v115; if ( v115 ) { cocos2d::CCObject::retain(v115); v139 = *((cocos2d::CCObject **)this + 104); v140 = v154; if ( v139 ) { cocos2d::CCObject::release(v139); v140 = v154; } *((_QWORD *)this + 104) = v140; v117 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GLM_19", 0); v118 = v117; v119 = *((GameToolbox **)this + 105); if ( v119 ) goto LABEL_150; goto LABEL_179; } } v117 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "GLM_19", 0); v118 = v117; v119 = *((GameToolbox **)this + 105); if ( v119 ) { LABEL_150: GameToolbox::mergeDictsSkipConflict(v119, v118, v119); goto LABEL_151; } LABEL_179: v155 = v117; if ( v117 ) { cocos2d::CCObject::retain(v117); v141 = *((cocos2d::CCObject **)this + 105); v142 = v155; if ( v141 ) { cocos2d::CCObject::release(v141); v142 = v155; } *((_QWORD *)this + 105) = v142; } LABEL_151: v120 = (cocos2d::CCObject *)DS_Dictionary::getArrayForKey(a2, "GLM_20", 0); v121 = v120; if ( v120 && !*((_QWORD *)this + 190) ) { cocos2d::CCObject::retain(v120); v122 = *((cocos2d::CCObject **)this + 190); if ( v122 ) cocos2d::CCObject::release(v122); *((_QWORD *)this + 190) = v121; } *((_DWORD *)this + 302) = 1; GameLevelManager::limitSavedLevels((cocos2d::CCDictionary **)this); GameLevelManager::purgeUnusedLevels((cocos2d::CCDictionary **)this); GameLevelManager::updateUsernames(this); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source