// // GameLevelManager::dataLoaded from 0x10053b450 to 0x10053c907 (5303 bytes) // // 1 xrefs: // > GameManager::dataLoaded @ 0x100389945 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall GameLevelManager::dataLoaded(GameLevelManager *a1, DS_Dictionary *a2) { double v2; // xmm0_8 cocos2d::CCDictionary *DictForKey; // rax cocos2d::CCDictElement *m_pElements; // r15 char *next; // rbx size_t v6; // rax size_t v7; // r12 char *p_dst; // r14 char *v9; // rbx cocos2d::CCObject *m_pObject; // rdi GJGameLevel *v11; // r15 char *v12; // r13 size_t v13; // r14 const void *v14; // rax GJGameLevel *v15; // rax GameStatsManager *v16; // rax cocos2d::CCDictionary *v17; // rbx cocos2d::CCDictionary *m_mainLevels; // rdi GameStatsManager *v19; // rdi cocos2d::CCDictionary *v20; // rax GameLevelManager *v21; // r13 cocos2d::CCDictElement *v22; // r14 cocos2d::CCDictionary *m_onlineLevels; // rsi char *v24; // rbx size_t v25; // rax size_t v26; // r13 char *v27; // r15 char *v28; // rbx cocos2d::CCObject *v29; // rdi GJGameLevel *v30; // r14 char *v31; // r12 size_t v32; // r15 GameStatsManager *v33; // rax GJGameLevel *v34; // rax GJGameLevel *v35; // rbx cocos2d::CCDictionary *v36; // rbx cocos2d::CCDictionary *v37; // rax cocos2d::CCDictElement *v38; // r14 char *v39; // rbx size_t v40; // rax size_t v41; // r13 char *v42; // r15 char *v43; // rbx cocos2d::CCObject *v44; // rdi GJGameLevel *v45; // r14 char *v46; // r12 size_t v47; // r15 const void *v48; // rax GJGameLevel *v49; // rax GJGameLevel *v50; // rbx GameStatsManager *v51; // rax cocos2d::CCDictionary *v52; // rbx cocos2d::CCObject *m_dailyLevels; // rdi cocos2d::CCDictionary *v54; // rax cocos2d::CCDictElement *v55; // r14 char *v56; // rbx size_t v57; // rax size_t v58; // r13 char *v59; // r15 char *v60; // rbx cocos2d::CCObject *v61; // rdi GJGameLevel *v62; // r14 char *v63; // r12 size_t v64; // r15 const void *v65; // rax GJGameLevel *v66; // rax GJGameLevel *v67; // rbx GameStatsManager *v68; // rax cocos2d::CCDictionary *v69; // rbx cocos2d::CCObject *m_gauntletLevels; // rdi cocos2d::CCArray *ArrayForKey; // rbx cocos2d::CCDictionary *v72; // r14 unsigned int v73; // r12d const void *v74; // rax char *v75; // rax char *v76; // r15 cocos2d::CCString *v77; // rax const char *CString; // rbx size_t v79; // rax size_t v80; // r14 char *v81; // r15 __int64 v82; // rax size_t v83; // r13 cocos2d::CCDictElement *v84; // r13 cocos2d::CCDictElement *v85; // rbx size_t v86; // rax size_t v87; // r12 cocos2d::CCDictElement *v88; // r15 char *v89; // rbx cocos2d::CCObject *v90; // rdi cocos2d::CCObject *v91; // rbx size_t v92; // r14 const void *v93; // rax cocos2d::CCObject *v94; // rax cocos2d::CCDictionary *m_favoriteLists; // rdi GameLevelManager *v96; // r14 cocos2d::CCDictionary *v97; // rax cocos2d::CCDictionary *m_followedCreators; // rdi cocos2d::CCDictionary *v99; // rbx cocos2d::CCDictionary *v100; // rdi cocos2d::CCDictionary *v101; // rbx cocos2d::CCDictionary *m_downloadedLevels; // rdi cocos2d::CCDictionary *v103; // rbx cocos2d::CCDictionary *m_searchFilters; // rdi cocos2d::CCDictionary *v105; // rax cocos2d::CCDictionary *m_likedLevels; // rdi cocos2d::CCDictElement *v107; // r15 char *v108; // rbx __int64 v109; // r12 size_t v110; // rax size_t v111; // rbx char *v112; // r13 size_t v113; // r14 __int64 v114; // rbx cocos2d::CCDictionary *v115; // r12 cocos2d::CCString *m_trueString; // r13 size_t v117; // rax size_t v118; // rbx char *v119; // r14 size_t v120; // r12 cocos2d::CCDictionary *v121; // rbx cocos2d::CCDictionary *v122; // rdi cocos2d::CCDictionary *v123; // rax cocos2d::CCDictionary *m_ratedLevels; // rdi cocos2d::CCDictElement *v125; // r15 char *v126; // rbx __int64 v127; // r12 size_t v128; // rax size_t v129; // rbx char *v130; // r13 size_t v131; // r14 __int64 v132; // rbx cocos2d::CCDictionary *v133; // r12 cocos2d::CCString *v134; // r13 size_t v135; // rax size_t v136; // rbx char *v137; // r14 size_t v138; // r12 cocos2d::CCDictionary *v139; // rbx cocos2d::CCObject *v140; // rdi cocos2d::CCDictionary *v141; // rax cocos2d::CCDictionary *m_ratedDemons; // rdi cocos2d::CCDictElement *v143; // r15 char *v144; // rbx __int64 v145; // r12 size_t v146; // rax size_t v147; // rbx char *v148; // r13 size_t v149; // r14 __int64 v150; // rbx cocos2d::CCDictionary *v151; // r12 cocos2d::CCString *v152; // r13 size_t v153; // rax size_t v154; // rbx char *v155; // r14 size_t v156; // r12 cocos2d::CCDictionary *v157; // rbx cocos2d::CCObject *v158; // rdi cocos2d::CCDictionary *v159; // rbx cocos2d::CCObject *m_reportedLevels; // rdi cocos2d::CCDictionary *v161; // rax cocos2d::CCDictionary *m_onlineFolders; // rdi cocos2d::CCDictionary *v163; // rbx cocos2d::CCObject *v164; // rdi cocos2d::CCDictionary *v165; // rax cocos2d::CCDictionary *m_localLevelsFolders; // rdi cocos2d::CCDictionary *v167; // rbx cocos2d::CCObject *v168; // rdi cocos2d::CCArray *v169; // rbx cocos2d::CCObject *m_smartTemplates; // rdi char v171; // [rsp+0h] [rbp-70h] cocos2d::CCArray *v172; // [rsp+8h] [rbp-68h] __int64 v173; // [rsp+10h] [rbp-60h] cocos2d::CCDictionary *v174; // [rsp+10h] [rbp-60h] cocos2d::CCDictionary *v175; // [rsp+10h] [rbp-60h] cocos2d::CCDictionary *v176; // [rsp+10h] [rbp-60h] char *__s; // [rsp+20h] [rbp-50h] char *__sa; // [rsp+20h] [rbp-50h] char *__sb; // [rsp+20h] [rbp-50h] char *__sc; // [rsp+20h] [rbp-50h] char *__sd; // [rsp+20h] [rbp-50h] char *__se; // [rsp+20h] [rbp-50h] char *__sf; // [rsp+20h] [rbp-50h] char *__sg; // [rsp+20h] [rbp-50h] size_t __dst; // [rsp+30h] [rbp-40h] BYREF size_t v188; // [rsp+38h] [rbp-38h] void *__p; // [rsp+40h] [rbp-30h] DictForKey = DS_Dictionary::getDictForKey(a2, "GLM_01", 0); if ( a1->m_mainLevels ) { if ( DictForKey ) { m_pElements = DictForKey->m_pElements; if ( m_pElements ) { next = (char *)m_pElements->hh.next; v6 = strlen(DictForKey->m_pElements->m_szKey); if ( v6 <= 0xFFFFFFFFFFFFFFF7LL ) { v7 = v6; p_dst = (char *)&__dst; do { __s = next; if ( v7 >= 0x17 ) { v12 = p_dst; v13 = (v7 | 7) + 1; if ( (v7 | 7) == 0x17 ) v13 = 26; v9 = (char *)operator new(v13); __p = v9; __dst = v13 + 1; p_dst = v12; v188 = v7; } else { LOBYTE(__dst) = 2 * v7; v9 = (char *)&__dst + 1; if ( !v7 ) { BYTE1(__dst) = 0; m_pObject = m_pElements->m_pObject; if ( m_pObject ) goto LABEL_9; goto LABEL_14; } } memmove(v9, m_pElements, v7); v9[v7] = 0; m_pObject = m_pElements->m_pObject; if ( m_pObject ) { LABEL_9: v11 = (GJGameLevel *)__dynamic_cast( m_pObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); goto LABEL_15; } LABEL_14: v11 = nullptr; LABEL_15: v14 = (const void *)cocos2d::CCDictionary::objectForKey_1((__int64)a1->m_mainLevels, p_dst); if ( v14 ) { v15 = (GJGameLevel *)__dynamic_cast( v14, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); if ( !v11 ) goto LABEL_23; if ( v15 ) { v11 = v15; GJGameLevel::handleStatsConflict(v15); goto LABEL_21; } } else if ( !v11 ) { goto LABEL_23; } cocos2d::CCDictionary::setObject_1((__int64)a1->m_mainLevels, v11, p_dst); LABEL_21: if ( v11->m_normalPercent.random - v11->m_normalPercent.seed >= 100 ) { v16 = GameStatsManager::sharedState(); GameStatsManager::completedLevel(v16, v11); } LABEL_23: if ( (__dst & 1) != 0 ) operator delete(__p); if ( !__s ) goto LABEL_32; m_pElements = (cocos2d::CCDictElement *)__s; next = *((char **)__s + 36); v7 = strlen(__s); } while ( v7 < 0xFFFFFFFFFFFFFFF8LL ); } LABEL_178: sub_100006BF0(v2); } } } else if ( DictForKey ) { v17 = DictForKey; cocos2d::CCObject::retain(DictForKey); m_mainLevels = a1->m_mainLevels; if ( m_mainLevels ) cocos2d::CCObject::release(m_mainLevels); a1->m_mainLevels = v17; } LABEL_32: v19 = (GameStatsManager *)a2; v20 = DS_Dictionary::getDictForKey(a2, "GLM_03", 0); v21 = a1; if ( a1->m_onlineLevels ) { if ( v20 ) { v22 = v20->m_pElements; m_onlineLevels = a1->m_onlineLevels; if ( !v22 ) goto LABEL_69; v24 = (char *)v22->hh.next; v25 = strlen(v20->m_pElements->m_szKey); if ( v25 > 0xFFFFFFFFFFFFFFF7LL ) goto LABEL_178; v26 = v25; v27 = (char *)&__dst; while ( 1 ) { __sa = v24; if ( v26 >= 0x17 ) { v31 = v27; v32 = (v26 | 7) + 1; if ( (v26 | 7) == 0x17 ) v32 = 26; v28 = (char *)operator new(v32); __p = v28; __dst = v32 + 1; v27 = v31; v188 = v26; } else { LOBYTE(__dst) = 2 * v26; v28 = (char *)&__dst + 1; if ( !v26 ) { BYTE1(__dst) = 0; v29 = v22->m_pObject; if ( v29 ) goto LABEL_40; goto LABEL_45; } } memmove(v28, v22, v26); v28[v26] = 0; v29 = v22->m_pObject; if ( v29 ) { LABEL_40: v30 = (GJGameLevel *)__dynamic_cast( v29, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); goto LABEL_46; } LABEL_45: v30 = nullptr; LABEL_46: v21 = a1; v19 = (GameStatsManager *)a1->m_onlineLevels; v33 = (GameStatsManager *)cocos2d::CCDictionary::objectForKey_1((__int64)v19, v27); if ( v33 ) { v19 = v33; v34 = (GJGameLevel *)__dynamic_cast( v33, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); if ( !v30 ) goto LABEL_57; if ( v34 ) { if ( v34->m_levelVersion > v30->m_levelVersion ) v30 = v34; GJGameLevel::handleStatsConflict(v30); cocos2d::CCDictionary::setObject_1((__int64)a1->m_onlineLevels, v30, v27); goto LABEL_55; } } else if ( !v30 ) { goto LABEL_57; } cocos2d::CCDictionary::setObject_1((__int64)a1->m_onlineLevels, v30, v27); LABEL_55: v19 = (GameStatsManager *)a1->m_onlineLevels; v35 = (GJGameLevel *)cocos2d::CCDictionary::objectForKey_1((__int64)v19, v27); if ( v35->m_normalPercent.random - v35->m_normalPercent.seed >= 100 ) { v19 = GameStatsManager::sharedState(); GameStatsManager::completedLevel(v19, v35); } LABEL_57: if ( (__dst & 1) != 0 ) { v19 = (GameStatsManager *)__p; operator delete(__p); } v22 = (cocos2d::CCDictElement *)__sa; if ( !__sa ) { m_onlineLevels = a1->m_onlineLevels; goto LABEL_69; } v24 = *((char **)__sa + 36); v26 = strlen(__sa); if ( v26 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_178; } } m_onlineLevels = a1->m_onlineLevels; } else if ( v20 ) { v36 = v20; cocos2d::CCObject::retain(v20); v19 = (GameStatsManager *)a1->m_onlineLevels; if ( v19 ) cocos2d::CCObject::release(v19); m_onlineLevels = v36; a1->m_onlineLevels = v36; } else { m_onlineLevels = nullptr; } LABEL_69: GameLevelManager::verifyContainerOnlyHasLevels((GameLevelManager *)v19, m_onlineLevels); v37 = DS_Dictionary::getDictForKey(a2, "GLM_10", 0); if ( v21->m_dailyLevels ) { if ( v37 ) { v38 = v37->m_pElements; if ( v38 ) { v39 = (char *)v38->hh.next; v40 = strlen(v37->m_pElements->m_szKey); if ( v40 > 0xFFFFFFFFFFFFFFF7LL ) goto LABEL_178; v41 = v40; v42 = (char *)&__dst; while ( 1 ) { __sb = v39; if ( v41 >= 0x17 ) { v46 = v42; v47 = (v41 | 7) + 1; if ( (v41 | 7) == 0x17 ) v47 = 26; v43 = (char *)operator new(v47); __p = v43; __dst = v47 + 1; v42 = v46; v188 = v41; } else { LOBYTE(__dst) = 2 * v41; v43 = (char *)&__dst + 1; if ( !v41 ) { BYTE1(__dst) = 0; v44 = v38->m_pObject; if ( v44 ) goto LABEL_77; goto LABEL_82; } } memmove(v43, v38, v41); v43[v41] = 0; v44 = v38->m_pObject; if ( v44 ) { LABEL_77: v45 = (GJGameLevel *)__dynamic_cast( v44, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); goto LABEL_83; } LABEL_82: v45 = nullptr; LABEL_83: v21 = a1; v48 = (const void *)cocos2d::CCDictionary::objectForKey_1((__int64)a1->m_dailyLevels, v42); if ( v48 ) { v49 = (GJGameLevel *)__dynamic_cast( v48, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); if ( !v45 ) goto LABEL_94; if ( v49 ) { if ( v49->m_levelVersion > v45->m_levelVersion ) v45 = v49; GJGameLevel::handleStatsConflict(v45); cocos2d::CCDictionary::setObject_1((__int64)a1->m_dailyLevels, v45, v42); goto LABEL_92; } } else if ( !v45 ) { goto LABEL_94; } cocos2d::CCDictionary::setObject_1((__int64)a1->m_dailyLevels, v45, v42); LABEL_92: v50 = (GJGameLevel *)cocos2d::CCDictionary::objectForKey_1((__int64)a1->m_dailyLevels, v42); if ( v50->m_orbCompletion.random - v50->m_orbCompletion.seed >= 100 ) { v51 = GameStatsManager::sharedState(); GameStatsManager::completedLevel(v51, v50); } LABEL_94: if ( (__dst & 1) != 0 ) operator delete(__p); v38 = (cocos2d::CCDictElement *)__sb; if ( !__sb ) break; v39 = *((char **)__sb + 36); v41 = strlen(__sb); if ( v41 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_178; } } } } else if ( v37 ) { v52 = v37; cocos2d::CCObject::retain(v37); m_dailyLevels = v21->m_dailyLevels; if ( m_dailyLevels ) cocos2d::CCObject::release(m_dailyLevels); v21->m_dailyLevels = v52; } v54 = DS_Dictionary::getDictForKey(a2, "GLM_16", 0); if ( v21->m_gauntletLevels ) { if ( v54 ) { v55 = v54->m_pElements; if ( v55 ) { v56 = (char *)v55->hh.next; v57 = strlen(v54->m_pElements->m_szKey); if ( v57 > 0xFFFFFFFFFFFFFFF7LL ) goto LABEL_178; v58 = v57; v59 = (char *)&__dst; while ( 1 ) { __sc = v56; if ( v58 >= 0x17 ) { v63 = v59; v64 = (v58 | 7) + 1; if ( (v58 | 7) == 0x17 ) v64 = 26; v60 = (char *)operator new(v64); __p = v60; __dst = v64 + 1; v59 = v63; v188 = v58; } else { LOBYTE(__dst) = 2 * v58; v60 = (char *)&__dst + 1; if ( !v58 ) { BYTE1(__dst) = 0; v61 = v55->m_pObject; if ( v61 ) goto LABEL_111; goto LABEL_116; } } memmove(v60, v55, v58); v60[v58] = 0; v61 = v55->m_pObject; if ( v61 ) { LABEL_111: v62 = (GJGameLevel *)__dynamic_cast( v61, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); goto LABEL_117; } LABEL_116: v62 = nullptr; LABEL_117: v21 = a1; v65 = (const void *)cocos2d::CCDictionary::objectForKey_1((__int64)a1->m_gauntletLevels, v59); if ( v65 ) { v66 = (GJGameLevel *)__dynamic_cast( v65, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); if ( !v62 ) goto LABEL_128; if ( v66 ) { if ( v66->m_levelVersion > v62->m_levelVersion ) v62 = v66; GJGameLevel::handleStatsConflict(v62); cocos2d::CCDictionary::setObject_1((__int64)a1->m_gauntletLevels, v62, v59); goto LABEL_126; } } else if ( !v62 ) { goto LABEL_128; } cocos2d::CCDictionary::setObject_1((__int64)a1->m_gauntletLevels, v62, v59); LABEL_126: v67 = (GJGameLevel *)cocos2d::CCDictionary::objectForKey_1((__int64)a1->m_gauntletLevels, v59); if ( v67->m_orbCompletion.random - v67->m_orbCompletion.seed >= 100 ) { v68 = GameStatsManager::sharedState(); GameStatsManager::completedLevel(v68, v67); } LABEL_128: if ( (__dst & 1) != 0 ) operator delete(__p); v55 = (cocos2d::CCDictElement *)__sc; if ( !__sc ) break; v56 = *((char **)__sc + 36); v58 = strlen(__sc); if ( v58 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_178; } } } } else if ( v54 ) { v69 = v54; cocos2d::CCObject::retain(v54); m_gauntletLevels = v21->m_gauntletLevels; if ( m_gauntletLevels ) cocos2d::CCObject::release(m_gauntletLevels); v21->m_gauntletLevels = v69; } ArrayForKey = DS_Dictionary::getArrayForKey(a2, "GLM_22", 0); v72 = cocos2d::CCDictionary::create(); if ( (unsigned int)sub_100720070(ArrayForKey) ) { v73 = 0; v173 = (__int64)v72; v172 = ArrayForKey; while ( 1 ) { v74 = (const void *)sub_1007200C0(ArrayForKey, v73); if ( v74 ) { v75 = (char *)__dynamic_cast( v74, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJLevelList, 0); if ( v75 ) break; } LABEL_139: if ( ++v73 >= (unsigned int)sub_100720070(ArrayForKey) ) goto LABEL_152; } v76 = v75; v77 = (cocos2d::CCString *)sub_1007AB580("%i", v171); CString = cocos2d::CCString::getCString(v77); v79 = strlen(CString); if ( v79 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_178; v80 = v79; __sd = v76; if ( v79 >= 0x17 ) { v82 = v79 | 7; v83 = 26; if ( (v80 | 7) != 0x17 ) v83 = v82 + 1; v81 = (char *)operator new(v83); __p = v81; __dst = v83 + 1; v188 = v80; v21 = a1; } else { LOBYTE(__dst) = 2 * v79; v81 = (char *)&__dst + 1; if ( !v79 ) { LABEL_150: v81[v80] = 0; v72 = (cocos2d::CCDictionary *)v173; cocos2d::CCDictionary::setObject_1(v173, (cocos2d::CCObject *)__sd, (char *)&__dst); ArrayForKey = v172; if ( (__dst & 1) != 0 ) operator delete(__p); goto LABEL_139; } } memmove(v81, CString, v80); goto LABEL_150; } LABEL_152: if ( v21->m_favoriteLists ) { if ( v72 ) { v84 = v72->m_pElements; if ( v84 ) { v85 = (cocos2d::CCDictElement *)v84->hh.next; v86 = strlen(v72->m_pElements->m_szKey); if ( v86 > 0xFFFFFFFFFFFFFFF7LL ) goto LABEL_178; v87 = v86; while ( 1 ) { v88 = v85; if ( v87 >= 0x17 ) { v92 = (v87 | 7) + 1; if ( (v87 | 7) == 0x17 ) v92 = 26; v89 = (char *)operator new(v92); __p = v89; __dst = v92 + 1; v188 = v87; } else { LOBYTE(__dst) = 2 * v87; v89 = (char *)&__dst + 1; if ( !v87 ) { BYTE1(__dst) = 0; v90 = v84->m_pObject; if ( v90 ) goto LABEL_160; goto LABEL_165; } } memmove(v89, v84, v87); v89[v87] = 0; v90 = v84->m_pObject; if ( v90 ) { LABEL_160: v91 = (cocos2d::CCObject *)__dynamic_cast( v90, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJLevelList, 0); goto LABEL_166; } LABEL_165: v91 = nullptr; LABEL_166: v93 = (const void *)cocos2d::CCDictionary::objectForKey_1((__int64)a1->m_favoriteLists, (char *)&__dst); if ( !v93 ) { if ( !v91 ) goto LABEL_174; LABEL_173: cocos2d::CCDictionary::setObject_1((__int64)a1->m_favoriteLists, v91, (char *)&__dst); goto LABEL_174; } v94 = (cocos2d::CCObject *)__dynamic_cast( v93, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJLevelList, 0); if ( !v91 ) goto LABEL_174; if ( !v94 ) goto LABEL_173; if ( v94[6].m_nLuaID <= v91[6].m_nLuaID ) v94 = v91; cocos2d::CCDictionary::setObject_1((__int64)a1->m_favoriteLists, v94, (char *)&__dst); LABEL_174: if ( (__dst & 1) != 0 ) operator delete(__p); if ( !v88 ) break; v85 = (cocos2d::CCDictElement *)v88->hh.next; v87 = strlen(v88->m_szKey); v84 = v88; if ( v87 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_178; } } } } else if ( v72 ) { cocos2d::CCObject::retain(v72); m_favoriteLists = a1->m_favoriteLists; if ( m_favoriteLists ) cocos2d::CCObject::release(m_favoriteLists); a1->m_favoriteLists = v72; } v96 = a1; a1->m_activeDailyID = DS_Dictionary::getIntegerForKey(a2, "GLM_11"); a1->m_activeWeeklyID = DS_Dictionary::getIntegerForKey(a2, "GLM_17"); a1->m_activeEventID = DS_Dictionary::getIntegerForKey(a2, "GLM_23"); DS_Dictionary::addBoolValuesToMapForKey(a2, &a1->m_availableFilters, "GLM_09", 0); DS_Dictionary::addBoolValuesToMapForKeySpecial(a2, &a1->m_availableFilters, "GLM_04", 0); v97 = DS_Dictionary::getDictForKey(a2, "GLM_06", 0); m_followedCreators = a1->m_followedCreators; if ( m_followedCreators ) { GameToolbox::mergeDictsSaveLargestInt(m_followedCreators, v97); } else if ( v97 ) { v99 = v97; cocos2d::CCObject::retain(v97); v100 = a1->m_followedCreators; if ( v100 ) cocos2d::CCObject::release(v100); a1->m_followedCreators = v99; } v101 = DS_Dictionary::getDictForKey(a2, "GLM_07", 0); if ( a1->m_downloadedLevels == nullptr && v101 != nullptr ) { cocos2d::CCObject::retain(v101); m_downloadedLevels = a1->m_downloadedLevels; if ( m_downloadedLevels ) cocos2d::CCObject::release(m_downloadedLevels); a1->m_downloadedLevels = v101; } v103 = DS_Dictionary::getDictForKey(a2, "GLM_08", 0); if ( a1->m_searchFilters == nullptr && v103 != nullptr ) { cocos2d::CCObject::retain(v103); m_searchFilters = a1->m_searchFilters; if ( m_searchFilters ) cocos2d::CCObject::release(m_searchFilters); a1->m_searchFilters = v103; } v105 = DS_Dictionary::getDictForKey(a2, "GLM_12", 0); m_likedLevels = a1->m_likedLevels; if ( m_likedLevels ) { v107 = v105->m_pElements; if ( v107 ) { v108 = (char *)v107->hh.next; if ( cocos2d::CCDictionary::count(m_likedLevels) <= 0x3E7 ) { while ( 1 ) { __se = v108; v109 = (__int64)v96->m_likedLevels; v110 = strlen(v107->m_szKey); if ( v110 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_178; v111 = v110; if ( v110 >= 0x17 ) break; LOBYTE(__dst) = 2 * v110; v112 = (char *)&__dst + 1; if ( v110 ) goto LABEL_207; LABEL_208: v112[v111] = 0; v114 = cocos2d::CCDictionary::objectForKey_1(v109, (char *)&__dst); v96 = a1; if ( (__dst & 1) != 0 ) operator delete(__p); if ( v114 ) goto LABEL_221; v115 = a1->m_likedLevels; m_trueString = a1->m_trueString; v117 = strlen(v107->m_szKey); if ( v117 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_178; v118 = v117; if ( v117 >= 0x17 ) { v174 = a1->m_likedLevels; v120 = (v117 | 7) + 1; if ( (v117 | 7) == 0x17 ) v120 = 26; v119 = (char *)operator new(v120); __p = v119; __dst = v120 + 1; v115 = v174; v188 = v118; LABEL_218: memmove(v119, v107, v118); goto LABEL_219; } LOBYTE(__dst) = 2 * v117; v119 = (char *)&__dst + 1; if ( v117 ) goto LABEL_218; LABEL_219: v119[v118] = 0; cocos2d::CCDictionary::setObject_1((__int64)v115, m_trueString, (char *)&__dst); v96 = a1; if ( (__dst & 1) != 0 ) operator delete(__p); LABEL_221: v107 = (cocos2d::CCDictElement *)__se; if ( __se ) { v108 = *((char **)__se + 36); if ( cocos2d::CCDictionary::count(v96->m_likedLevels) <= 0x3E7 ) continue; } goto LABEL_228; } v113 = (v110 | 7) + 1; if ( (v110 | 7) == 0x17 ) v113 = 26; v112 = (char *)operator new(v113); __p = v112; __dst = v113 + 1; v188 = v111; LABEL_207: memmove(v112, v107, v111); goto LABEL_208; } } } else if ( v105 ) { v121 = v105; cocos2d::CCObject::retain(v105); v122 = a1->m_likedLevels; if ( v122 ) cocos2d::CCObject::release(v122); a1->m_likedLevels = v121; } LABEL_228: v123 = DS_Dictionary::getDictForKey(a2, "GLM_13", 0); m_ratedLevels = v96->m_ratedLevels; if ( m_ratedLevels ) { v125 = v123->m_pElements; if ( v125 ) { v126 = (char *)v125->hh.next; if ( cocos2d::CCDictionary::count(m_ratedLevels) <= 0x3E7 ) { while ( 1 ) { __sf = v126; v127 = (__int64)v96->m_ratedLevels; v128 = strlen(v125->m_szKey); if ( v128 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_178; v129 = v128; if ( v128 >= 0x17 ) break; LOBYTE(__dst) = 2 * v128; v130 = (char *)&__dst + 1; if ( v128 ) goto LABEL_238; LABEL_239: v130[v129] = 0; v132 = cocos2d::CCDictionary::objectForKey_1(v127, (char *)&__dst); v96 = a1; if ( (__dst & 1) != 0 ) operator delete(__p); if ( v132 ) goto LABEL_252; v133 = a1->m_ratedLevels; v134 = a1->m_trueString; v135 = strlen(v125->m_szKey); if ( v135 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_178; v136 = v135; if ( v135 >= 0x17 ) { v175 = a1->m_ratedLevels; v138 = (v135 | 7) + 1; if ( (v135 | 7) == 0x17 ) v138 = 26; v137 = (char *)operator new(v138); __p = v137; __dst = v138 + 1; v133 = v175; v188 = v136; LABEL_249: memmove(v137, v125, v136); goto LABEL_250; } LOBYTE(__dst) = 2 * v135; v137 = (char *)&__dst + 1; if ( v135 ) goto LABEL_249; LABEL_250: v137[v136] = 0; cocos2d::CCDictionary::setObject_1((__int64)v133, v134, (char *)&__dst); v96 = a1; if ( (__dst & 1) != 0 ) operator delete(__p); LABEL_252: v125 = (cocos2d::CCDictElement *)__sf; if ( __sf ) { v126 = *((char **)__sf + 36); if ( cocos2d::CCDictionary::count(v96->m_ratedLevels) <= 0x3E7 ) continue; } goto LABEL_259; } v131 = (v128 | 7) + 1; if ( (v128 | 7) == 0x17 ) v131 = 26; v130 = (char *)operator new(v131); __p = v130; __dst = v131 + 1; v188 = v129; LABEL_238: memmove(v130, v125, v129); goto LABEL_239; } } } else if ( v123 ) { v139 = v123; cocos2d::CCObject::retain(v123); v140 = v96->m_ratedLevels; if ( v140 ) cocos2d::CCObject::release(v140); v96->m_ratedLevels = v139; } LABEL_259: v141 = DS_Dictionary::getDictForKey(a2, "GLM_15", 0); m_ratedDemons = v96->m_ratedDemons; if ( m_ratedDemons ) { v143 = v141->m_pElements; if ( v143 ) { v144 = (char *)v143->hh.next; if ( cocos2d::CCDictionary::count(m_ratedDemons) <= 0x3E7 ) { while ( 1 ) { __sg = v144; v145 = (__int64)v96->m_ratedDemons; v146 = strlen(v143->m_szKey); if ( v146 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_178; v147 = v146; if ( v146 >= 0x17 ) break; LOBYTE(__dst) = 2 * v146; v148 = (char *)&__dst + 1; if ( v146 ) goto LABEL_269; LABEL_270: v148[v147] = 0; v150 = cocos2d::CCDictionary::objectForKey_1(v145, (char *)&__dst); v96 = a1; if ( (__dst & 1) != 0 ) operator delete(__p); if ( v150 ) goto LABEL_283; v151 = a1->m_ratedDemons; v152 = a1->m_trueString; v153 = strlen(v143->m_szKey); if ( v153 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_178; v154 = v153; if ( v153 >= 0x17 ) { v176 = a1->m_ratedDemons; v156 = (v153 | 7) + 1; if ( (v153 | 7) == 0x17 ) v156 = 26; v155 = (char *)operator new(v156); __p = v155; __dst = v156 + 1; v151 = v176; v188 = v154; LABEL_280: memmove(v155, v143, v154); goto LABEL_281; } LOBYTE(__dst) = 2 * v153; v155 = (char *)&__dst + 1; if ( v153 ) goto LABEL_280; LABEL_281: v155[v154] = 0; cocos2d::CCDictionary::setObject_1((__int64)v151, v152, (char *)&__dst); v96 = a1; if ( (__dst & 1) != 0 ) operator delete(__p); LABEL_283: v143 = (cocos2d::CCDictElement *)__sg; if ( __sg ) { v144 = *((char **)__sg + 36); if ( cocos2d::CCDictionary::count(v96->m_ratedDemons) <= 0x3E7 ) continue; } goto LABEL_290; } v149 = (v146 | 7) + 1; if ( (v146 | 7) == 0x17 ) v149 = 26; v148 = (char *)operator new(v149); __p = v148; __dst = v149 + 1; v188 = v147; LABEL_269: memmove(v148, v143, v147); goto LABEL_270; } } } else if ( v141 ) { v157 = v141; cocos2d::CCObject::retain(v141); v158 = v96->m_ratedDemons; if ( v158 ) cocos2d::CCObject::release(v158); v96->m_ratedDemons = v157; } LABEL_290: v159 = DS_Dictionary::getDictForKey(a2, "GLM_14", 0); if ( v96->m_reportedLevels == nullptr && v159 != nullptr ) { cocos2d::CCObject::retain(v159); m_reportedLevels = v96->m_reportedLevels; if ( m_reportedLevels ) cocos2d::CCObject::release(m_reportedLevels); v96->m_reportedLevels = v159; } v161 = DS_Dictionary::getDictForKey(a2, "GLM_18", 0); m_onlineFolders = v96->m_onlineFolders; if ( m_onlineFolders ) { GameToolbox::mergeDictsSkipConflict(m_onlineFolders, v161); } else if ( v161 ) { v163 = v161; cocos2d::CCObject::retain(v161); v164 = v96->m_onlineFolders; if ( v164 ) cocos2d::CCObject::release(v164); v96->m_onlineFolders = v163; } v165 = DS_Dictionary::getDictForKey(a2, "GLM_19", 0); m_localLevelsFolders = v96->m_localLevelsFolders; if ( m_localLevelsFolders ) { GameToolbox::mergeDictsSkipConflict(m_localLevelsFolders, v165); } else if ( v165 ) { v167 = v165; cocos2d::CCObject::retain(v165); v168 = v96->m_localLevelsFolders; if ( v168 ) cocos2d::CCObject::release(v168); v96->m_localLevelsFolders = v167; } v169 = DS_Dictionary::getArrayForKey(a2, "GLM_20", 0); if ( v96->m_smartTemplates == nullptr && v169 != nullptr ) { cocos2d::CCObject::retain(v169); m_smartTemplates = v96->m_smartTemplates; if ( m_smartTemplates ) cocos2d::CCObject::release(m_smartTemplates); v96->m_smartTemplates = v169; } v96->m_leaderboardType = Top100; GameLevelManager::limitSavedLevels(v96); GameLevelManager::purgeUnusedLevels(v96); GameLevelManager::updateUsernames(v96); }
GD Web Decomp Icon

GD Web Decomp

Raw Source