// // GJBaseGameLayer::generateTargetGroups from 0x9cb060 to 0x9cc3d0 (4976 bytes) // // 2 xrefs: // > GJBaseGameLayer::updateSpecialGroupData @ 0x9f3c88 // > @ 0xc7ba0 // // 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:58:37 +0000 // __int64 __fastcall GJBaseGameLayer::generateTargetGroups(GJBaseGameLayer *this) { cocos2d::CCArray *v1; // x0 _QWORD *v2; // x0 _QWORD *v3; // x19 __int64 v4; // x0 __int64 v5; // x1 __int64 v6; // x0 unsigned int *v7; // x1 cocos2d::CCObject *v8; // x24 __int64 v9; // x19 _BYTE *v10; // x0 unsigned int v11; // w2 unsigned int v12; // w1 int v13; // w4 unsigned __int64 v14; // x19 unsigned __int64 v15; // x21 __int64 v16; // x5 unsigned __int64 v17; // x20 __int64 **v18; // x0 __int64 *v19; // x2 unsigned __int64 v20; // x0 __int64 v21; // x0 float v22; // s0 _BOOL8 v23; // x0 __int64 v24; // x2 unsigned __int64 v25; // x2 unsigned __int64 v26; // x1 _QWORD *v27; // x0 unsigned __int64 v28; // x19 unsigned __int64 v29; // x21 unsigned __int64 v30; // x20 __int64 *v31; // x0 unsigned __int64 v32; // x2 unsigned __int64 v33; // x2 float v34; // s0 _BOOL8 v35; // x0 __int64 v36; // x2 unsigned __int64 v37; // x2 unsigned __int64 v38; // x1 _QWORD *v39; // x0 __int64 *v40; // x1 void *v41; // x0 _BYTE *v42; // x21 __int64 *v43; // x20 _BYTE *v44; // x0 unsigned __int64 v45; // x19 unsigned __int64 v46; // x27 unsigned __int64 v47; // x22 __int64 *v48; // x0 unsigned __int64 v49; // x1 unsigned __int64 v50; // x1 float v51; // s0 _BOOL8 v52; // x0 __int64 v53; // x2 unsigned __int64 v54; // x2 unsigned __int64 v55; // x1 _QWORD *v56; // x0 cocos2d::CCObject *v57; // x0 unsigned __int64 v58; // x1 unsigned __int64 v59; // x19 int v60; // w4 int *v61; // x22 int *v62; // x26 float v63; // s2 float v64; // s0 _BOOL8 v65; // x0 __int64 v66; // x2 unsigned __int64 v67; // x2 unsigned __int64 v68; // x1 unsigned __int64 v69; // x19 unsigned __int64 v70; // x20 void **v71; // x0 _QWORD *v72; // x0 int v73; // w3 unsigned __int64 v74; // x21 unsigned __int64 v75; // x23 __int64 *v76; // x0 unsigned __int64 v77; // x1 __int64 v78; // x1 unsigned __int64 v79; // x1 unsigned __int64 v80; // x19 unsigned __int64 v81; // x1 unsigned __int64 v82; // x19 unsigned __int64 v83; // x1 unsigned __int64 v84; // x19 int v85; // w0 int v86; // w22 cocos2d::CCDictionary *SpecialKey; // x0 cocos2d::CCDictionary *v88; // x27 cocos2d::CCDictionary *v89; // x26 unsigned int v90; // w0 unsigned int *v91; // x23 __int64 *v92; // x19 __int64 *v93; // x21 unsigned int v94; // w22 __int64 *v95; // x20 __int64 *i; // x22 __int64 v97; // x19 int v98; // w21 __int64 v99; // x0 __int64 v100; // x0 int v101; // w19 cocos2d::CCArray *v102; // x0 cocos2d::CCArray *v103; // x28 cocos2d::CCDictionary *v104; // x23 unsigned int *v105; // x0 cocos2d::CCObject **v106; // x19 cocos2d::CCObject **j; // x21 cocos2d::CCObject *v108; // x20 int v109; // w19 int v110; // w19 int v111; // w20 _DWORD *v112; // x0 _QWORD *v113; // x0 _QWORD *v114; // x19 void *v115; // x0 _QWORD *v116; // x0 _QWORD *v117; // x19 void *v118; // x0 void *v119; // x0 _QWORD *v120; // x0 _QWORD *v121; // x19 void *v122; // x0 _QWORD *v123; // x0 _QWORD *v124; // x19 void *v125; // x0 int v127; // w22 __int64 v128; // x0 int v129; // w19 _DWORD *v130; // x0 __int64 v131; // x20 unsigned __int64 v132; // x1 __int64 v133; // x22 unsigned int v134; // w28 cocos2d::CCObject *v135; // x23 unsigned int v136; // w20 __int64 v137; // x21 __int64 v138; // x19 __int64 v139; // x0 __int64 v140; // x0 __int64 v141; // x0 cocos2d::CCObject *StickyGroup; // x0 cocos2d::CCObject *v143; // x0 char *v144; // [xsp+78h] [xbp+78h] _BYTE *v145; // [xsp+88h] [xbp+88h] _DWORD *v146; // [xsp+90h] [xbp+90h] cocos2d::CCObject *Group; // [xsp+98h] [xbp+98h] cocos2d::CCObject *v148; // [xsp+A0h] [xbp+A0h] unsigned __int8 v149; // [xsp+A8h] [xbp+A8h] int v150; // [xsp+ACh] [xbp+ACh] cocos2d::CCObject *v152; // [xsp+C8h] [xbp+C8h] cocos2d::CCObject *v153; // [xsp+C8h] [xbp+C8h] __int64 GroupParent; // [xsp+D8h] [xbp+D8h] cocos2d::CCObject *v155; // [xsp+E0h] [xbp+E0h] cocos2d::CCObject *v156; // [xsp+E0h] [xbp+E0h] int v157; // [xsp+E0h] [xbp+E0h] cocos2d::CCArray *v158; // [xsp+E8h] [xbp+E8h] int v159; // [xsp+F8h] [xbp+F8h] BYREF signed int v160; // [xsp+FCh] [xbp+FCh] BYREF int v161[6]; // [xsp+100h] [xbp+100h] BYREF void *v162[3]; // [xsp+118h] [xbp+118h] BYREF void *v163[2]; // [xsp+130h] [xbp+130h] BYREF void *v164; // [xsp+140h] [xbp+140h] __int64 v165; // [xsp+148h] [xbp+148h] float v166; // [xsp+150h] [xbp+150h] void *v167; // [xsp+158h] [xbp+158h] BYREF unsigned __int64 v168; // [xsp+160h] [xbp+160h] void *v169; // [xsp+168h] [xbp+168h] BYREF __int64 v170; // [xsp+170h] [xbp+170h] float v171; // [xsp+178h] [xbp+178h] void *v172[2]; // [xsp+180h] [xbp+180h] BYREF void *v173; // [xsp+190h] [xbp+190h] __int64 v174; // [xsp+198h] [xbp+198h] float v175; // [xsp+1A0h] [xbp+1A0h] void *v176; // [xsp+1A8h] [xbp+1A8h] BYREF unsigned __int64 v177; // [xsp+1B0h] [xbp+1B0h] void *v178; // [xsp+1B8h] [xbp+1B8h] BYREF __int64 v179; // [xsp+1C0h] [xbp+1C0h] float v180; // [xsp+1C8h] [xbp+1C8h] void *v181[2]; // [xsp+1D0h] [xbp+1D0h] BYREF void *v182; // [xsp+1E0h] [xbp+1E0h] __int64 v183; // [xsp+1E8h] [xbp+1E8h] float v184; // [xsp+1F0h] [xbp+1F0h] v1 = *((cocos2d::CCArray **)this + 479); if ( v1 ) { cocos2d::CCArray::removeAllObjects(v1); } else { v57 = (cocos2d::CCObject *)cocos2d::CCArray::create(nullptr); *((_QWORD *)this + 479) = v57; cocos2d::CCObject::retain(v57); } if ( *((_QWORD *)this + 483) ) { v2 = *((_QWORD **)this + 482); if ( v2 ) { do { v3 = (_QWORD *)*v2; operator delete(v2); v2 = v3; } while ( v3 ); } v4 = 0; v5 = *((_QWORD *)this + 481); *((_QWORD *)this + 482) = 0; if ( v5 ) { do *(_QWORD *)(*((_QWORD *)this + 480) + 8 * v4++) = 0; while ( v4 != v5 ); } *((_QWORD *)this + 483) = 0; } v163[0] = nullptr; v163[1] = nullptr; v6 = *((_QWORD *)this + 410); v164 = nullptr; v165 = 0; v167 = nullptr; v168 = 0; v169 = nullptr; v170 = 0; v172[0] = nullptr; v172[1] = nullptr; v173 = nullptr; v174 = 0; v166 = 1.0; v171 = 1.0; v175 = 1.0; if ( !v6 || (v7 = *(unsigned int **)(v6 + 56), !*v7) || (v8 = *((cocos2d::CCObject **)v7 + 2), v155 = (cocos2d::CCObject *)((char *)v8 + 8 * *v7 - 8), v8 > v155) || (v9 = *(_QWORD *)v8) == 0 ) { v176 = nullptr; v177 = 0; v178 = nullptr; v179 = 0; v180 = 1.0; goto LABEL_209; } if ( *(_DWORD *)(v9 + 1028) != 3016 ) goto LABEL_115; LABEL_14: LODWORD(v181[0]) = *(_DWORD *)(v9 + 1464); v10 = (_BYTE *)std::unordered_map::operator[]((unsigned __int64)v163, (int *)v181); v11 = *(unsigned __int8 *)(v9 + 1833); v12 = *(unsigned __int8 *)(v9 + 1832); if ( (v11 ^ 1) <= v12 ) { if ( v12 >= v11 ) { if ( v12 > v11 ) { v10[2] = 1; } else if ( *(_BYTE *)(v9 + 1833) && *(_BYTE *)(v9 + 1832) ) { v10[3] = 1; } } else { v10[1] = 1; } } else { *v10 = 1; } v13 = *(_DWORD *)(v9 + 1464); v14 = v168; LODWORD(v181[0]) = v13; v15 = v13; if ( v168 ) { v16 = (v168 - 1) & v168; v17 = v13 & (v168 - 1); if ( v16 ) v17 = v13 % v168; v18 = *((__int64 ***)v167 + v17); if ( v18 ) { v19 = *v18; if ( *v18 ) { v20 = v19[1]; if ( !v16 ) { LABEL_22: v21 = (v168 - 1) & v20; goto LABEL_23; } while ( 1 ) { v21 = v20 % v168; LABEL_23: if ( v17 != v21 ) break; if ( v13 == *((_DWORD *)v19 + 4) ) goto LABEL_34; v19 = (__int64 *)*v19; if ( !v19 ) break; v20 = v19[1]; if ( !v16 ) goto LABEL_22; } } } } else { v17 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)&v167, v13, v181, (__int64)v161); v22 = (float)(unsigned __int64)(v170 + 1); if ( v22 > (float)((float)v14 * v171) ) { v23 = 1; v24 = 2 * v14; if ( v14 > 2 ) v23 = ((v14 - 1) & v14) != 0; goto LABEL_27; } if ( !v14 ) { v23 = 1; v24 = 0; LABEL_27: v25 = v24 + v23; v26 = vcvtps_u32_f32(v22 / v171); if ( v26 < v25 ) v26 = v25; std::__hash_table,std::equal_to,std::allocator>::rehash((unsigned __int64)&v167, v26); v14 = v168; if ( ((v14 - 1) & v14) != 0 ) v17 = v15 % v168; else v17 = v15 & (v168 - 1); } v27 = *((_QWORD **)v167 + v17); if ( v27 ) { **(_QWORD **)v161 = *v27; *v27 = *(_QWORD *)v161; } else { **(_QWORD **)v161 = v169; v169 = *(void **)v161; *((_QWORD *)v167 + v17) = &v169; if ( **(_QWORD **)v161 ) { v83 = *(_QWORD *)(**(_QWORD **)v161 + 8LL); if ( ((v14 - 1) & v14) != 0 ) v84 = v83 % v14; else v84 = (v14 - 1) & v83; *((_QWORD *)v167 + v84) = *(_QWORD *)v161; } } ++v170; LABEL_34: while ( 1 ) { v8 = (cocos2d::CCObject *)((char *)v8 + 8); if ( v155 < v8 ) break; v9 = *(_QWORD *)v8; if ( !*(_QWORD *)v8 ) break; if ( *(_DWORD *)(v9 + 1028) == 3016 ) goto LABEL_14; LABEL_115: if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v9 + 1800LL))(v9) == 45 ) goto LABEL_14; if ( *(_DWORD *)(v9 + 1028) == 1268 ) { v61 = *(int **)(v9 + 1840); v62 = *(int **)(v9 + 1848); if ( v61 != v62 ) { while ( 1 ) { v72 = (_QWORD *)std::unordered_map>::operator[]((unsigned __int64)v172, v61); v73 = v61[2]; v74 = (unsigned __int64)v72; v69 = v72[1]; v75 = v73; if ( v69 ) { v70 = v73 & (v69 - 1); if ( ((v69 - 1) & v69) != 0 ) v70 = v73 % v69; v76 = *(__int64 **)(*v72 + 8 * v70); if ( v76 ) { while ( 1 ) { v76 = (__int64 *)*v76; if ( !v76 ) break; v77 = v76[1]; if ( ((v69 - 1) & v69) != 0 ) { if ( v70 != v77 % v69 ) break; } else if ( v70 != ((v69 - 1) & v77) ) { break; } if ( v73 == *((_DWORD *)v76 + 4) ) goto LABEL_130; } } } else { v70 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( v74, v73, v61 + 2, (__int64)&v176); v63 = *(float *)(v74 + 32); v64 = (float)(unsigned __int64)(*(_QWORD *)(v74 + 24) + 1LL); if ( v64 > (float)((float)v69 * v63) ) { v65 = 1; v66 = 2 * v69; if ( v69 > 2 ) v65 = ((v69 - 1) & v69) != 0; } else { if ( v69 ) goto LABEL_127; v65 = 1; v66 = 0; } v67 = v66 + v65; v68 = vcvtps_u32_f32(v64 / v63); if ( v68 < v67 ) v68 = v67; std::__hash_table,std::equal_to,std::allocator>::rehash(v74, v68); v69 = *(_QWORD *)(v74 + 8); if ( ((v69 - 1) & v69) == 0 ) { v70 = v75 & (v69 - 1); LABEL_127: v71 = *(void ***)(*(_QWORD *)v74 + 8 * v70); if ( v71 ) goto LABEL_128; goto LABEL_144; } v70 = v75 % v69; v71 = *(void ***)(*(_QWORD *)v74 + 8 * (v75 % v69)); if ( v71 ) { LABEL_128: *(_QWORD *)v176 = *v71; *v71 = v176; goto LABEL_129; } LABEL_144: *(_QWORD *)v176 = *(_QWORD *)(v74 + 16); v78 = *(_QWORD *)v74; *(_QWORD *)(v74 + 16) = v176; *(_QWORD *)(v78 + 8 * v70) = v74 + 16; if ( *(_QWORD *)v176 ) { v79 = *(_QWORD *)(*(_QWORD *)v176 + 8LL); if ( ((v69 - 1) & v69) != 0 ) v80 = v79 % v69; else v80 = (v69 - 1) & v79; *(_QWORD *)(*(_QWORD *)v74 + 8 * v80) = v176; } LABEL_129: ++*(_QWORD *)(v74 + 24); LABEL_130: v61 += 4; if ( v62 == v61 ) goto LABEL_34; } } } } v176 = nullptr; v177 = 0; v178 = nullptr; v179 = 0; v180 = 1.0; if ( !v170 ) goto LABEL_209; v28 = 0; v161[0] = *((_DWORD *)v169 + 4); v29 = v161[0]; LABEL_105: v30 = 0; while ( 1 ) { std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)&v176, v29, v161, (__int64)v162); v34 = (float)(unsigned __int64)(v179 + 1); if ( v34 > (float)((float)v28 * v180) ) { v35 = 1; v36 = 2 * v28; if ( v28 > 2 ) v35 = ((v28 - 1) & v28) != 0; } else { if ( v28 ) goto LABEL_51; v35 = 1; v36 = 0; } v37 = v36 + v35; v38 = vcvtps_u32_f32(v34 / v180); if ( v38 < v37 ) v38 = v37; std::__hash_table,std::equal_to,std::allocator>::rehash((unsigned __int64)&v176, v38); v28 = v177; if ( ((v28 - 1) & v28) == 0 ) { v30 = v29 & (v177 - 1); LABEL_51: v39 = *((_QWORD **)v176 + v30); if ( !v39 ) goto LABEL_149; goto LABEL_52; } v30 = v29 % v177; v39 = *((_QWORD **)v176 + v29 % v177); if ( !v39 ) { LABEL_149: *(_QWORD *)v162[0] = v178; v178 = v162[0]; *((_QWORD *)v176 + v30) = &v178; if ( *(_QWORD *)v162[0] ) { v81 = *(_QWORD *)(*(_QWORD *)v162[0] + 8LL); if ( ((v28 - 1) & v28) != 0 ) v82 = v81 % v28; else v82 = (v28 - 1) & v81; *((void **)v176 + v82) = v162[0]; } goto LABEL_53; } LABEL_52: *(_QWORD *)v162[0] = *v39; *v39 = v162[0]; LABEL_53: v40 = (__int64 *)v169; ++v179; LABEL_54: std::__hash_table,std::equal_to,std::allocator>::remove( (__int64 *)&v167, v40, (__int64)v181); v41 = v181[0]; v181[0] = nullptr; if ( v41 ) operator delete(v41); v42 = (_BYTE *)std::unordered_map::operator[]((unsigned __int64)v163, v161); if ( std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find( v172, v161) ) { v43 = *(__int64 **)(std::unordered_map>::operator[]((unsigned __int64)v172, v161) + 16); if ( !v43 ) { LABEL_102: std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::__erase_unique( (__int64 *)v172, v161); goto LABEL_103; } while ( 2 ) { LODWORD(v162[0]) = *((_DWORD *)v43 + 4); if ( !std::__hash_table,std::equal_to,std::allocator>::find( &v176, (int *)v162) ) { v45 = v168; v46 = SLODWORD(v162[0]); if ( v168 ) { v47 = (v168 - 1) & SLODWORD(v162[0]); if ( ((v168 - 1) & v168) != 0 ) v47 = SLODWORD(v162[0]) % v168; v48 = *((__int64 **)v167 + v47); if ( v48 ) { while ( 1 ) { v48 = (__int64 *)*v48; if ( !v48 ) break; v49 = v48[1]; v50 = ((v168 - 1) & v168) != 0 ? v49 % v168 : (v168 - 1) & v49; if ( v47 != v50 ) break; if ( LODWORD(v162[0]) == *((_DWORD *)v48 + 4) ) goto LABEL_59; } } } else { v47 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)&v167, SLODWORD(v162[0]), v162, (__int64)v181); v51 = (float)(unsigned __int64)(v170 + 1); if ( v51 > (float)((float)v45 * v171) ) { v52 = 1; v53 = 2 * v45; if ( v45 > 2 ) v52 = ((v45 - 1) & v45) != 0; LABEL_80: v54 = v53 + v52; v55 = vcvtps_u32_f32(v51 / v171); if ( v55 < v54 ) v55 = v54; std::__hash_table,std::equal_to,std::allocator>::rehash( (unsigned __int64)&v167, v55); v45 = v168; if ( ((v45 - 1) & v45) == 0 ) { v47 = (v168 - 1) & v46; goto LABEL_84; } v47 = v46 % v168; v56 = *((_QWORD **)v167 + v46 % v168); if ( !v56 ) goto LABEL_98; LABEL_85: *(_QWORD *)v181[0] = *v56; *v56 = v181[0]; } else { if ( !v45 ) { v52 = 1; v53 = 0; goto LABEL_80; } LABEL_84: v56 = *((_QWORD **)v167 + v47); if ( v56 ) goto LABEL_85; LABEL_98: *(_QWORD *)v181[0] = v169; v169 = v181[0]; *((_QWORD *)v167 + v47) = &v169; if ( *(_QWORD *)v181[0] ) { v58 = *(_QWORD *)(*(_QWORD *)v181[0] + 8LL); if ( ((v45 - 1) & v45) != 0 ) v59 = v58 % v45; else v59 = (v45 - 1) & v58; *((void **)v167 + v59) = v181[0]; } } ++v170; } LABEL_59: v44 = (_BYTE *)std::unordered_map::operator[]((unsigned __int64)v163, (int *)v162); if ( *v42 ) *v44 = 1; if ( v42[1] ) v44[1] = 1; if ( v42[2] ) v44[2] = 1; if ( v42[3] ) v44[3] = 1; v43 = (__int64 *)*v43; if ( !v43 ) goto LABEL_102; continue; } } LABEL_103: if ( !v170 ) break; v40 = (__int64 *)v169; v28 = v177; v60 = *((_DWORD *)v169 + 4); v161[0] = v60; v29 = v60; if ( !v177 ) goto LABEL_105; v30 = (v177 - 1) & v60; if ( ((v177 - 1) & v177) != 0 ) v30 = v60 % v177; v31 = *((__int64 **)v176 + v30); if ( v31 ) { while ( 1 ) { v31 = (__int64 *)*v31; if ( !v31 ) break; v32 = v31[1]; v33 = ((v177 - 1) & v177) != 0 ? v32 % v177 : (v177 - 1) & v32; if ( v30 != v33 ) break; if ( v60 == *((_DWORD *)v31 + 4) ) goto LABEL_54; } } } v146 = v178; if ( v178 ) { v144 = (char *)this + 3840; do { v159 = v146[4]; v145 = (_BYTE *)std::unordered_map::operator[]((unsigned __int64)v163, &v159); GroupParent = GJBaseGameLayer::getGroupParent((cocos2d::CCDictionary **)this, v159); Group = GJBaseGameLayer::getGroup(this, v159); v150 = 1; v85 = 0; while ( 1 ) { if ( v85 == 3 ) { if ( v145[3] ) { v149 = 1; v86 = 1; goto LABEL_173; } goto LABEL_206; } if ( v85 != 1 ) break; v86 = 0; v149 = 1; if ( v145[1] ) goto LABEL_173; LABEL_171: while ( 1 ) { v85 = v150++; if ( v150 != 3 ) break; v86 = 1; v149 = 0; if ( v145[2] ) goto LABEL_173; } } if ( !*v145 ) goto LABEL_170; v149 = 0; v86 = 0; LABEL_173: SpecialKey = (cocos2d::CCDictionary *)GJBaseGameLayer::getSpecialKey(this, v159, v86, v149); v160 = (int)SpecialKey; v88 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(SpecialKey); v89 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v88); v181[0] = nullptr; v181[1] = nullptr; v182 = nullptr; v183 = 0; v184 = 1.0; v90 = cocos2d::CCArray::count(Group); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::rehash( (unsigned __int64)v181, vcvtps_u32_f32((float)v90 / v184)); if ( !Group ) { v101 = 0; goto LABEL_194; } v91 = *((unsigned int **)Group + 7); if ( !*v91 ) goto LABEL_193; v92 = *((__int64 **)v91 + 2); v93 = &v92[*v91 - 1]; if ( v92 > v93 ) goto LABEL_176; v131 = *v92; if ( !*v92 ) { v148 = (cocos2d::CCObject *)&v92[*v91 - 1]; v153 = *((cocos2d::CCObject **)v91 + 2); if ( v86 ) goto LABEL_176; LABEL_239: v133 = *(_QWORD *)v153; if ( !*(_QWORD *)v153 ) goto LABEL_176; if ( *(_BYTE *)(v133 + 1170) ) goto LABEL_249; while ( 1 ) { v153 = (cocos2d::CCObject *)((char *)v153 + 8); if ( v153 > v148 ) break; v133 = *(_QWORD *)v153; if ( !*(_QWORD *)v153 ) break; if ( *(_BYTE *)(v133 + 1170) ) { LABEL_249: v158 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey( *((cocos2d::CCDictionary **)this + 462), *(unsigned int *)(v133 + 916)); v134 = 0; if ( v158 ) { while ( v134 < (unsigned int)cocos2d::CCArray::count(v158) ) { v157 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v158, v134) + 56); if ( GroupParent && (v133 != GroupParent || v157 != v159) ) goto LABEL_253; v135 = GJBaseGameLayer::getGroup(this, v157); v136 = 0; v137 = -v157; while ( v136 < (unsigned int)cocos2d::CCArray::count(v135) ) { v138 = cocos2d::CCArray::objectAtIndex(v135, v136); LODWORD(v162[0]) = *(_DWORD *)(v138 + 916); if ( std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( v181, (int *)v162) ) { LODWORD(v162[0]) = *(_DWORD *)(v138 + 916); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__erase_unique( (__int64 *)v181, (int *)v162); } if ( !*(_BYTE *)(v138 + 1150) && v138 != v133 && !*(_BYTE *)(v138 + 1151) ) goto LABEL_262; v139 = cocos2d::CCDictionary::objectForKey(v88, v137); if ( !v139 || *(unsigned __int8 *)(v139 + 1151) <= (unsigned int)(v138 == v133) && *(_BYTE *)(v138 + 1151) ) { cocos2d::CCDictionary::setObject(v88, (cocos2d::CCObject *)v138, v137); } v140 = cocos2d::CCDictionary::objectForKey(v89, v137); if ( !v140 || *(unsigned __int8 *)(v140 + 1150) <= (unsigned int)(v138 == v133) && *(_BYTE *)(v138 + 1150) ) { cocos2d::CCDictionary::setObject(v89, (cocos2d::CCObject *)v138, v137); ++v136; } else { LABEL_262: ++v136; } } v141 = cocos2d::CCDictionary::objectForKey(v88, -v157); if ( v141 ) { LODWORD(v162[0]) = *(_DWORD *)(v141 + 916); *(_DWORD *)std::unordered_map::operator[]((unsigned __int64)v181, (int *)v162) = -v157; ++v134; } else { LABEL_253: ++v134; } } } } } LABEL_242: if ( !v149 ) { v91 = *((unsigned int **)Group + 7); v94 = *v91; if ( *v91 ) goto LABEL_178; } goto LABEL_193; } do { LODWORD(v162[0]) = *(_DWORD *)(v131 + 916); ++v92; *(_DWORD *)std::unordered_map::operator[]((unsigned __int64)v181, (int *)v162) = *(_DWORD *)(v131 + 872); if ( v93 < v92 ) break; v131 = *v92; } while ( *v92 ); if ( v86 ) goto LABEL_242; v91 = *((unsigned int **)Group + 7); if ( *v91 ) { v132 = *((_QWORD *)v91 + 2); v148 = (cocos2d::CCObject *)(v132 + 8LL * *v91 - 8); if ( (unsigned __int64)v148 >= v132 ) { v153 = *((cocos2d::CCObject **)v91 + 2); goto LABEL_239; } LABEL_176: if ( !v149 ) { v94 = *v91; LABEL_178: v95 = *((__int64 **)v91 + 2); for ( i = &v95[v94 - 1]; i >= v95; ++v95 ) { v97 = *v95; if ( !*v95 ) break; v161[0] = *(_DWORD *)(v97 + 916); if ( std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( v181, v161) ) { LODWORD(v162[0]) = *(_DWORD *)(v97 + 916); v98 = *(_DWORD *)std::unordered_map::operator[]((unsigned __int64)v181, (int *)v162); if ( v98 > 0 && (*(_BYTE *)(v97 + 1150) || *(_BYTE *)(v97 + 1151)) ) { v99 = cocos2d::CCDictionary::objectForKey(v88, v98); if ( !v99 || !*(_BYTE *)(v99 + 1151) && *(_BYTE *)(v97 + 1151) ) cocos2d::CCDictionary::setObject(v88, (cocos2d::CCObject *)v97, v98); v100 = cocos2d::CCDictionary::objectForKey(v89, v98); if ( !v100 || !*(_BYTE *)(v100 + 1150) && *(_BYTE *)(v97 + 1150) ) cocos2d::CCDictionary::setObject(v89, (cocos2d::CCObject *)v97, v98); } } } } } LABEL_193: v101 = 1; LABEL_194: v102 = (cocos2d::CCArray *)cocos2d::CCDictionary::count(v88); if ( (_DWORD)v102 ) { v103 = (cocos2d::CCArray *)cocos2d::CCArray::create(v102); v104 = (cocos2d::CCDictionary *)cocos2d::CCArray::create(v103); v156 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v104); v152 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v156); if ( v101 ) { v105 = *((unsigned int **)Group + 7); if ( *v105 ) { v106 = *((cocos2d::CCObject ***)v105 + 2); for ( j = &v106[*v105 - 1]; j >= v106; ++v106 ) { v108 = *v106; if ( !*v106 ) break; LODWORD(v162[0]) = *((_DWORD *)v108 + 229); if ( std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( v181, (int *)v162) ) { LODWORD(v162[0]) = *((_DWORD *)v108 + 229); v127 = *(_DWORD *)std::unordered_map::operator[]((unsigned __int64)v181, (int *)v162); if ( !v127 ) goto LABEL_223; v128 = cocos2d::CCDictionary::objectForKey(v88, v127); if ( v108 == (cocos2d::CCObject *)v128 ) { cocos2d::CCArray::addObject(v103, v108); if ( v127 < 0 ) StickyGroup = GJBaseGameLayer::getGroup(this, -v127); else StickyGroup = (cocos2d::CCObject *)GJBaseGameLayer::getStickyGroup( (cocos2d::CCDictionary **)this, v127); cocos2d::CCDictionary::setObject(v156, StickyGroup, *((unsigned int *)v108 + 229)); v143 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v89, v127); cocos2d::CCDictionary::setObject(v152, v143, *((unsigned int *)v108 + 229)); continue; } if ( !v128 ) LABEL_223: cocos2d::CCArray::addObject(v104, v108); } } } } v109 = cocos2d::CCArray::count(v104); v110 = cocos2d::CCArray::count(v103) + v109; v111 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 479)) + 1; v112 = (_DWORD *)std::unordered_map>::operator[]((__int64)v144, &v160); *v112 = v111; v112[1] = v110; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 479), v104); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 479), v103); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 479), v156); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 479), v152); } else { v129 = cocos2d::CCArray::count(Group); v130 = (_DWORD *)std::unordered_map>::operator[]((__int64)v144, &v160); *v130 = 0; v130[1] = v129; } v113 = v182; if ( v182 ) { do { v114 = (_QWORD *)*v113; operator delete(v113); v113 = v114; } while ( v114 ); } v115 = v181[0]; v181[0] = nullptr; if ( !v115 ) { LABEL_170: if ( v150 == 4 ) goto LABEL_206; goto LABEL_171; } operator delete(v115); if ( v150 != 4 ) goto LABEL_171; LABEL_206: v146 = *(_DWORD **)v146; } while ( v146 ); v116 = v178; if ( v178 ) { do { v117 = (_QWORD *)*v116; operator delete(v116); v116 = v117; } while ( v117 ); } } LABEL_209: v118 = v176; v176 = nullptr; if ( v118 ) operator delete(v118); sub_998FF8(v173); v119 = v172[0]; v172[0] = nullptr; if ( v119 ) operator delete(v119); v120 = v169; if ( v169 ) { do { v121 = (_QWORD *)*v120; operator delete(v120); v120 = v121; } while ( v121 ); } v122 = v167; v167 = nullptr; if ( v122 ) operator delete(v122); v123 = v164; if ( v164 ) { do { v124 = (_QWORD *)*v123; operator delete(v123); v123 = v124; } while ( v124 ); } v125 = v163[0]; v163[0] = nullptr; if ( v125 ) operator delete(v125); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source