// // GJBaseGameLayer::generateTargetGroups from 0x5a9e88 to 0x5aaa68 (3040 bytes) // // 1 xrefs: // > GJBaseGameLayer::updateSpecialGroupData @ 0x5c1520 // // 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:53:25 +0000 // int __fastcall GJBaseGameLayer::generateTargetGroups(GJBaseGameLayer *this) { cocos2d::CCArray *v2; // r0 cocos2d::CCObject *v3; // r0 _DWORD *i; // r0 _DWORD *v5; // r4 _DWORD *v6; // r3 int v7; // r3 _DWORD *v8; // r3 int *v9; // r8 int v10; // r4 int v11; // t1 unsigned int v12; // r4 unsigned int v13; // r6 unsigned int v14; // r9 int v15; // r5 _DWORD *v16; // r3 _DWORD *k; // r8 float v18; // s15 bool v19; // r5 unsigned int v20; // r5 unsigned int v21; // r1 _DWORD *v22; // r3 _BYTE *v23; // r7 unsigned int v24; // r0 int v25; // r1 unsigned int v26; // r0 int v27; // r1 _DWORD *m; // r8 _BYTE *v29; // r0 unsigned int v30; // r4 unsigned int v31; // r6 unsigned int v32; // r2 unsigned int v33; // r5 _DWORD *v34; // r3 unsigned int v35; // r0 int v36; // r1 float v37; // s15 bool v38; // r5 unsigned int v39; // r5 unsigned int v40; // r1 _DWORD *v41; // r3 unsigned int v42; // r0 int v43; // r1 cocos2d::CCObject *Group; // r10 int ii; // r3 int v46; // r4 int v47; // r3 int v48; // r6 unsigned int v49; // r0 float v50; // r0 _DWORD *v51; // r3 int *v52; // r7 int *v53; // r5 int v54; // r8 int v55; // t1 _DWORD *v56; // r3 _DWORD *v57; // r3 int *v58; // r6 int *v59; // r5 cocos2d::CCArray *v60; // r0 cocos2d::CCArray *v61; // r8 cocos2d::CCDictionary *v62; // r7 cocos2d::CCDictionary *v63; // r9 int v64; // r4 _DWORD *v65; // r3 cocos2d::CCArray *v66; // r5 int *v67; // r4 int *v68; // t1 int v69; // r4 int v70; // r5 _DWORD *v71; // r0 int v72; // r4 _DWORD *v73; // r0 _BYTE *v75; // r0 unsigned int v76; // r6 unsigned int v77; // r4 unsigned int v78; // r7 int v79; // r5 _DWORD *v80; // r3 _DWORD *j; // r10 unsigned int v82; // r0 int v83; // r1 float v84; // s15 bool v85; // r5 unsigned int v86; // r5 unsigned int v87; // r1 _DWORD *v88; // r3 unsigned int v89; // r0 int v90; // r1 unsigned int *v91; // r7 _DWORD *v92; // r0 unsigned int v93; // r4 int v94; // r5 unsigned int v95; // r9 unsigned int v96; // r10 int v97; // r6 _DWORD *v98; // r3 unsigned int v99; // r0 int v100; // r1 float v101; // s13 float v102; // s15 bool v103; // r6 unsigned int v104; // r6 unsigned int v105; // r1 _DWORD *v106; // r3 unsigned int v107; // r0 int v108; // r1 int v109; // r6 int *v110; // r0 cocos2d::CCObject *StickyGroup; // r0 cocos2d::CCObject *v112; // r0 int v113; // r6 cocos2d::CCObject *jj; // r3 int v115; // r7 unsigned int v116; // r8 int v117; // r5 int v118; // r0 int v119; // r0 int v120; // r7 int v121; // r0 int v122; // r4 int v123; // t1 int v124; // r7 int v125; // r0 int v126; // r0 cocos2d::CCDictionary *v127; // [sp+0h] [bp-C4h] cocos2d::CCDictionary *v128; // [sp+0h] [bp-C4h] unsigned int v129; // [sp+4h] [bp-C0h] cocos2d::CCDictionary *v130; // [sp+8h] [bp-BCh] int v131; // [sp+Ch] [bp-B8h] cocos2d::CCObject *v132; // [sp+10h] [bp-B4h] cocos2d::CCObject *v133; // [sp+10h] [bp-B4h] _DWORD *n; // [sp+14h] [bp-B0h] _BYTE *v135; // [sp+18h] [bp-ACh] int *v136; // [sp+1Ch] [bp-A8h] cocos2d::CCArray *v137; // [sp+20h] [bp-A4h] cocos2d::CCArray *v138; // [sp+20h] [bp-A4h] int GroupParent; // [sp+28h] [bp-9Ch] cocos2d::CCObject *v140; // [sp+2Ch] [bp-98h] int *v141; // [sp+30h] [bp-94h] int v142; // [sp+38h] [bp-8Ch] BYREF cocos2d::CCDictionary *SpecialKey; // [sp+3Ch] [bp-88h] BYREF void *v144[3]; // [sp+40h] [bp-84h] BYREF unsigned int v145[3]; // [sp+4Ch] [bp-78h] BYREF _DWORD v146[5]; // [sp+58h] [bp-6Ch] BYREF int v147; // [sp+6Ch] [bp-58h] BYREF unsigned int v148; // [sp+70h] [bp-54h] void *v149; // [sp+74h] [bp-50h] BYREF int v150; // [sp+78h] [bp-4Ch] float v151; // [sp+7Ch] [bp-48h] _DWORD v152[5]; // [sp+80h] [bp-44h] BYREF int v153; // [sp+94h] [bp-30h] BYREF unsigned int v154; // [sp+98h] [bp-2Ch] unsigned int v155; // [sp+9Ch] [bp-28h] BYREF int v156; // [sp+A0h] [bp-24h] float v157; // [sp+A4h] [bp-20h] void *v158[4]; // [sp+A8h] [bp-1Ch] BYREF float v159; // [sp+B8h] [bp-Ch] v2 = *((cocos2d::CCArray **)this + 598); if ( v2 ) { cocos2d::CCArray::removeAllObjects(v2); } else { v3 = (cocos2d::CCObject *)cocos2d::CCArray::create(nullptr); *((_DWORD *)this + 598) = v3; cocos2d::CCObject::retain(v3); } if ( *((_DWORD *)this + 602) ) { for ( i = *((_DWORD **)this + 601); i; i = v5 ) { v5 = (_DWORD *)*i; operator delete(i); } v6 = *((_DWORD **)this + 600); *((_DWORD *)this + 601) = 0; while ( i != v6 ) { *(_DWORD *)(*((_DWORD *)this + 599) + 4 * (_DWORD)i) = 0; i = (_DWORD *)((char *)i + 1); } *((_DWORD *)this + 602) = 0; } memset(v146, 0, 16); v147 = 0; v148 = 0; v149 = nullptr; v150 = 0; memset(v152, 0, 16); v7 = *((_DWORD *)this + 522); v146[4] = 1065353216; v151 = 1.0; v152[4] = 1065353216; if ( !v7 ) goto LABEL_13; v8 = *(_DWORD **)(v7 + 52); if ( !*v8 ) goto LABEL_13; v9 = (int *)v8[3]; v129 = (unsigned int)&v9[*v8 - 1]; LABEL_16: while ( (unsigned int)v9 <= v129 ) { v11 = *v9++; v10 = v11; if ( !v11 ) break; if ( *(_DWORD *)(v10 + 892) == 3016 || (*(int (__fastcall **)(int))(*(_DWORD *)v10 + 900))(v10) == 45 ) { v158[0] = *(void **)(v10 + 1284); v75 = std::unordered_map::operator[]((int)v146, (unsigned int *)v158); if ( *(_BYTE *)(v10 + 1640) ) { if ( *(_BYTE *)(v10 + 1641) ) v75[3] = 1; else v75[2] = 1; } else if ( *(_BYTE *)(v10 + 1641) ) { v75[1] = 1; } else { *v75 = 1; } v76 = *(_DWORD *)(v10 + 1284); v77 = v148; v158[0] = (void *)v76; if ( v148 ) { v78 = v148 - 1; if ( ((v148 - 1) & v148) != 0 ) v79 = v76 % v148; else v79 = v76 & v78; v80 = *(_DWORD **)(v147 + 4 * v79); if ( v80 ) { for ( j = (_DWORD *)*v80; j; j = (_DWORD *)*j ) { v82 = j[1]; v83 = ((v148 - 1) & v148) != 0 ? v82 % v148 : v78 & v82; if ( v83 != v79 ) break; if ( j[2] == v76 ) goto LABEL_16; } } } else { v79 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)v144, (int)&v147, v76, v158); v84 = (float)(unsigned int)(v150 + 1); if ( v84 > (float)((float)v77 * v151) ) { v85 = v77 > 2 && ((v77 - 1) & v77) == 0; } else { if ( v77 ) goto LABEL_163; v85 = 0; } v86 = 2 * v77 + !v85; v87 = (unsigned int)ceilf(v84 / v151); if ( v87 < v86 ) v87 = v86; std::__hash_table,std::equal_to,std::allocator>::rehash((int)&v147, v87); v77 = v148; if ( ((v148 - 1) & v148) != 0 ) v79 = v76 % v148; else v79 = (v148 - 1) & v76; LABEL_163: v88 = *(_DWORD **)(v147 + 4 * v79); if ( v88 ) { *(_DWORD *)v144[0] = *v88; *v88 = v144[0]; } else { *(_DWORD *)v144[0] = v149; v149 = v144[0]; *(_DWORD *)(v147 + 4 * v79) = &v149; if ( *(_DWORD *)v144[0] ) { v89 = *(_DWORD *)(*(_DWORD *)v144[0] + 4); if ( ((v77 - 1) & v77) != 0 ) v90 = v89 % v77; else v90 = (v77 - 1) & v89; *(void **)(v147 + 4 * v90) = v144[0]; } } ++v150; } else if ( *(_DWORD *)(v10 + 892) == 1268 ) { v91 = *(unsigned int **)(v10 + 1648); v128 = *(cocos2d::CCDictionary **)(v10 + 1652); if ( v91 != (unsigned int *)v128 ) { while ( 1 ) { v92 = std::unordered_map>::operator[]((int)v152, v91); v93 = v92[1]; v94 = (int)v92; v95 = v91[2]; if ( v93 ) { v96 = v93 - 1; if ( ((v93 - 1) & v93) != 0 ) v97 = v95 % v93; else v97 = v95 & v96; v98 = *(_DWORD **)(*v92 + 4 * v97); if ( v98 ) { while ( 1 ) { v98 = (_DWORD *)*v98; if ( !v98 ) break; v99 = v98[1]; v100 = ((v93 - 1) & v93) != 0 ? v99 % v93 : v96 & v99; if ( v100 != v97 ) break; if ( v98[2] == v95 ) goto LABEL_201; } } } else { v97 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)&v153, v94, v95, v91 + 2); v101 = *(float *)(v94 + 16); v102 = (float)(unsigned int)(*(_DWORD *)(v94 + 12) + 1); if ( v102 > (float)((float)v93 * v101) ) { v103 = v93 > 2 && ((v93 - 1) & v93) == 0; } else { if ( v93 ) goto LABEL_193; v103 = 0; } v104 = 2 * v93 + !v103; v105 = (unsigned int)ceilf(v102 / v101); if ( v105 < v104 ) v105 = v104; std::__hash_table,std::equal_to,std::allocator>::rehash(v94, v105); v93 = *(_DWORD *)(v94 + 4); if ( ((v93 - 1) & v93) != 0 ) v97 = v95 % v93; else v97 = v95 & (v93 - 1); LABEL_193: v106 = *(_DWORD **)(*(_DWORD *)v94 + 4 * v97); if ( v106 ) { *(_DWORD *)v153 = *v106; *v106 = v153; } else { *(_DWORD *)v153 = *(_DWORD *)(v94 + 8); *(_DWORD *)(v94 + 8) = v153; *(_DWORD *)(*(_DWORD *)v94 + 4 * v97) = v94 + 8; if ( *(_DWORD *)v153 ) { v107 = *(_DWORD *)(*(_DWORD *)v153 + 4); if ( ((v93 - 1) & v93) != 0 ) v108 = v107 % v93; else v108 = (v93 - 1) & v107; *(_DWORD *)(*(_DWORD *)v94 + 4 * v108) = v153; } } ++*(_DWORD *)(v94 + 12); LABEL_201: v91 += 4; if ( v128 == (cocos2d::CCDictionary *)v91 ) goto LABEL_16; } } } } LABEL_13: v153 = 0; v154 = 0; v155 = 0; v156 = 0; v157 = 1.0; while ( v150 ) { v12 = v154; v13 = *((_DWORD *)v149 + 2); v144[0] = (void *)v13; if ( v154 ) { v14 = v154 - 1; if ( ((v154 - 1) & v154) != 0 ) v15 = v13 % v154; else v15 = v13 & v14; v16 = *(_DWORD **)(v153 + 4 * v15); if ( v16 ) { for ( k = (_DWORD *)*v16; k; k = (_DWORD *)*k ) { v24 = k[1]; v25 = ((v154 - 1) & v154) != 0 ? v24 % v154 : v14 & v24; if ( v25 != v15 ) break; if ( k[2] == v13 ) goto LABEL_35; } } } else { v15 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)v145, (int)&v153, v13, v144); v18 = (float)(unsigned int)(v156 + 1); if ( v18 <= (float)((float)v12 * v157) ) { if ( v12 ) goto LABEL_32; v19 = 0; } else { v19 = v12 > 2 && ((v12 - 1) & v12) == 0; } v20 = 2 * v12 + !v19; v21 = (unsigned int)ceilf(v18 / v157); if ( v21 < v20 ) v21 = v20; std::__hash_table,std::equal_to,std::allocator>::rehash((int)&v153, v21); v12 = v154; if ( ((v154 - 1) & v154) != 0 ) v15 = v13 % v154; else v15 = (v154 - 1) & v13; LABEL_32: v22 = *(_DWORD **)(v153 + 4 * v15); if ( v22 ) { *(_DWORD *)v145[0] = *v22; *v22 = v145[0]; } else { *(_DWORD *)v145[0] = v155; v155 = v145[0]; *(_DWORD *)(v153 + 4 * v15) = &v155; if ( *(_DWORD *)v145[0] ) { v26 = *(_DWORD *)(*(_DWORD *)v145[0] + 4); if ( ((v12 - 1) & v12) != 0 ) v27 = v26 % v12; else v27 = (v12 - 1) & v26; *(_DWORD *)(v153 + 4 * v27) = v145[0]; } } ++v156; LABEL_35: std::__hash_table,std::equal_to,std::allocator>::erase(&v147, v149); v23 = std::unordered_map::operator[]((int)v146, (unsigned int *)v144); if ( std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find( v152, (unsigned int *)v144) ) { for ( m = (_DWORD *)std::unordered_map>::operator[]((int)v152, (unsigned int *)v144)[2]; m; m = (_DWORD *)*m ) { v145[0] = m[2]; if ( std::__hash_table,std::equal_to,std::allocator>::find(&v153, v145) ) goto LABEL_55; v30 = v148; v31 = v145[0]; if ( v148 ) { v32 = v148 - 1; if ( ((v148 - 1) & v148) != 0 ) { v32 = v148 - 1; v33 = v145[0] % v148; } else { v33 = v32 & v145[0]; } v34 = *(_DWORD **)(v147 + 4 * v33); if ( v34 ) { while ( 1 ) { v34 = (_DWORD *)*v34; if ( !v34 ) break; v35 = v34[1]; v36 = ((v148 - 1) & v148) != 0 ? v35 % v148 : v32 & v35; if ( v36 != v33 ) break; if ( v34[2] == v145[0] ) goto LABEL_55; } } } else { v33 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)v158, (int)&v147, v145[0], v145); v37 = (float)(unsigned int)(v150 + 1); if ( v37 > (float)((float)v30 * v151) ) { v38 = v30 > 2 && ((v30 - 1) & v30) == 0; goto LABEL_81; } if ( !v30 ) { v38 = 0; LABEL_81: v39 = 2 * v30 + !v38; v40 = (unsigned int)ceilf(v37 / v151); if ( v40 < v39 ) v40 = v39; std::__hash_table,std::equal_to,std::allocator>::rehash((int)&v147, v40); v30 = v148; if ( ((v148 - 1) & v148) != 0 ) v33 = v31 % v148; else v33 = (v148 - 1) & v31; } v41 = *(_DWORD **)(v147 + 4 * v33); if ( v41 ) { *(_DWORD *)v158[0] = *v41; *v41 = v158[0]; } else { *(_DWORD *)v158[0] = v149; v149 = v158[0]; *(_DWORD *)(v147 + 4 * v33) = &v149; if ( *(_DWORD *)v158[0] ) { v42 = *(_DWORD *)(*(_DWORD *)v158[0] + 4); if ( ((v30 - 1) & v30) != 0 ) v43 = v42 % v30; else v43 = (v30 - 1) & v42; *(void **)(v147 + 4 * v43) = v158[0]; } } ++v150; LABEL_55: v29 = std::unordered_map::operator[]((int)v146, v145); if ( *v23 ) *v29 = 1; if ( v23[1] ) v29[1] = 1; if ( v23[2] ) v29[2] = 1; if ( v23[3] ) v29[3] = 1; } std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::__erase_unique( v152, (unsigned int *)v144); } } for ( n = (_DWORD *)v155; n; n = (_DWORD *)*n ) { v142 = n[2]; v135 = std::unordered_map::operator[]((int)v146, (unsigned int *)&v142); GroupParent = GJBaseGameLayer::getGroupParent((cocos2d::CCDictionary **)this, v142); Group = GJBaseGameLayer::getGroup(this, v142); for ( ii = 1; ; ii = v131 + 1 ) { v131 = ii; v46 = ii - 1; if ( ii != 3 ) break; v47 = (unsigned __int8)v135[2]; v46 = 0; v48 = 1; LABEL_231: if ( v47 ) goto LABEL_106; LABEL_130: ; } if ( ii == 4 ) { if ( !v135[3] ) continue; v46 = 1; goto LABEL_105; } if ( ii == 2 ) { v47 = (unsigned __int8)v135[1]; v48 = 0; goto LABEL_231; } if ( !*v135 ) goto LABEL_129; v46 = 0; LABEL_105: v48 = v46; LABEL_106: SpecialKey = (cocos2d::CCDictionary *)GJBaseGameLayer::getSpecialKey(this, v142, v48, v46); v127 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(SpecialKey); v130 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v127); memset(v158, 0, sizeof(v158)); v159 = 1.0; v49 = cocos2d::CCArray::count(Group); v50 = ceilf((float)v49 / v159); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::rehash( (int)v158, (unsigned int)v50); if ( Group ) { v51 = *((_DWORD **)Group + 13); if ( *v51 ) { v52 = (int *)v51[3]; v53 = &v52[*v51 - 1]; while ( v52 <= v53 ) { v55 = *v52++; v54 = v55; if ( !v55 ) break; v145[0] = *(_DWORD *)(v54 + 780); *std::unordered_map::operator[]((int)v158, v145) = *(_DWORD *)(v54 + 740); } if ( !v48 ) { v56 = *((_DWORD **)Group + 13); if ( *v56 ) { v136 = (int *)v56[3]; v141 = &v136[*v56 - 1]; while ( v136 <= v141 ) { v113 = *v136++; if ( !v113 ) break; if ( *(_BYTE *)(v113 + 1022) ) { v138 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey( *((cocos2d::CCDictionary **)this + 581), *(_DWORD *)(v113 + 780)); if ( v138 ) { for ( jj = nullptr; ; jj = (cocos2d::CCObject *)((char *)v133 + 1) ) { v133 = jj; if ( (unsigned int)jj >= cocos2d::CCArray::count(v138) ) break; v115 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v138, (unsigned int)v133) + 52); if ( !GroupParent || v113 == GroupParent && v115 == v142 ) { v116 = 0; v140 = GJBaseGameLayer::getGroup(this, v115); while ( v116 < cocos2d::CCArray::count(v140) ) { v117 = cocos2d::CCArray::objectAtIndex(v140, v116); v145[0] = *(_DWORD *)(v117 + 780); if ( std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( v158, v145) ) { v145[0] = *(_DWORD *)(v117 + 780); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__erase_unique( (int *)v158, v145); } if ( *(_BYTE *)(v117 + 1006) || *(_BYTE *)(v117 + 1007) || v117 == v113 ) { v118 = cocos2d::CCDictionary::objectForKey(v127, -v115); if ( !v118 || (!*(_BYTE *)(v118 + 1007) || v117 == v113) && *(_BYTE *)(v117 + 1007) ) cocos2d::CCDictionary::setObject(v127, (cocos2d::CCObject *)v117, -v115); v119 = cocos2d::CCDictionary::objectForKey(v130, -v115); if ( !v119 || (!*(_BYTE *)(v119 + 1006) || v117 == v113) && *(_BYTE *)(v117 + 1006) ) cocos2d::CCDictionary::setObject(v130, (cocos2d::CCObject *)v117, -v115); } ++v116; } v120 = -v115; v121 = cocos2d::CCDictionary::objectForKey(v127, v120); if ( v121 ) { v145[0] = *(_DWORD *)(v121 + 780); *std::unordered_map::operator[]((int)v158, v145) = v120; } } } } } } } } } if ( !v46 ) { v57 = *((_DWORD **)Group + 13); if ( *v57 ) { v58 = (int *)v57[3]; v59 = &v58[*v57 - 1]; while ( v58 <= v59 ) { v123 = *v58++; v122 = v123; if ( !v123 ) break; v144[0] = *(void **)(v122 + 780); if ( std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( v158, (unsigned int *)v144) ) { v145[0] = *(_DWORD *)(v122 + 780); v124 = *std::unordered_map::operator[]((int)v158, v145); if ( v124 > 0 && (*(_BYTE *)(v122 + 1006) || *(_BYTE *)(v122 + 1007)) ) { v125 = cocos2d::CCDictionary::objectForKey(v127, v124); if ( !v125 || !*(_BYTE *)(v125 + 1007) && *(_BYTE *)(v122 + 1007) ) cocos2d::CCDictionary::setObject(v127, (cocos2d::CCObject *)v122, v124); v126 = cocos2d::CCDictionary::objectForKey(v130, v124); if ( !v126 || !*(_BYTE *)(v126 + 1006) && *(_BYTE *)(v122 + 1006) ) cocos2d::CCDictionary::setObject(v130, (cocos2d::CCObject *)v122, v124); } } } } } } v60 = (cocos2d::CCArray *)cocos2d::CCDictionary::count(v127); if ( v60 ) { v61 = (cocos2d::CCArray *)cocos2d::CCArray::create(v60); v62 = (cocos2d::CCDictionary *)cocos2d::CCArray::create(v61); v132 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v62); v63 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v132); if ( Group ) { v65 = *((_DWORD **)Group + 13); if ( *v65 ) { v66 = (cocos2d::CCArray *)v65[3]; v137 = (cocos2d::CCArray *)((char *)v66 + 4 * *v65 + -4); while ( 1 ) { do { LABEL_124: if ( v66 > v137 ) goto LABEL_121; v68 = *(int **)v66; v66 = (cocos2d::CCArray *)((char *)v66 + 4); v67 = v68; if ( !v68 ) goto LABEL_121; v145[0] = v67[195]; } while ( !std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( v158, v145) ); v145[0] = v67[195]; v109 = *std::unordered_map::operator[]((int)v158, v145); if ( !v109 ) break; v110 = (int *)cocos2d::CCDictionary::objectForKey(v127, v109); if ( v67 == v110 ) { cocos2d::CCArray::addObject(v61, (cocos2d::CCObject *)v67); if ( v109 >= 0 ) StickyGroup = (cocos2d::CCObject *)GJBaseGameLayer::getStickyGroup((cocos2d::CCDictionary **)this, v109); else StickyGroup = GJBaseGameLayer::getGroup(this, -v109); cocos2d::CCDictionary::setObject(v132, StickyGroup, v67[195]); v112 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v130, v109); cocos2d::CCDictionary::setObject(v63, v112, v67[195]); } else if ( !v110 ) { break; } } cocos2d::CCArray::addObject(v62, (cocos2d::CCObject *)v67); goto LABEL_124; } } LABEL_121: v64 = cocos2d::CCArray::count(v62); v69 = v64 + cocos2d::CCArray::count(v61); v70 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 598)) + 1; v71 = std::unordered_map>::operator[]((int)this + 2396, (unsigned int *)&SpecialKey); *v71 = v70; v71[1] = v69; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 598), v62); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 598), v61); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 598), v132); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 598), v63); } else { v72 = cocos2d::CCArray::count(Group); v73 = std::unordered_map>::operator[]((int)this + 2396, (unsigned int *)&SpecialKey); *v73 = 0; v73[1] = v72; } std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::~__hash_table((int)v158); LABEL_129: if ( v131 != 4 ) goto LABEL_130; } std::__hash_table,std::equal_to,std::allocator>::~__hash_table((int)&v153); std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::~__hash_table((int)v152); std::__hash_table,std::equal_to,std::allocator>::~__hash_table((int)&v147); return std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::~__hash_table((int)v146); }
GD Web Decomp Icon

GD Web Decomp

Raw Source