// // GJBaseGameLayer::prepareSavePositionObjects from 0x5c0260 to 0x5c14f6 (4758 bytes) // // 1 xrefs: // > GJBaseGameLayer::updateSpecialGroupData @ 0x5c1514 // // 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:50 +0000 // char **__fastcall GJBaseGameLayer::prepareSavePositionObjects(GJBaseGameLayer *this) { _DWORD *v2; // r4 _DWORD *i; // r0 _DWORD *v4; // r5 _DWORD *v5; // r3 int v6; // r2 int v7; // r3 int v8; // r2 int v9; // r2 int v10; // r2 int v11; // r3 int v12; // r9 _DWORD *v13; // r3 _DWORD *v14; // r5 _DWORD *v15; // r4 _DWORD *v16; // r0 _DWORD *v17; // t1 _DWORD *v18; // r0 unsigned int v19; // r4 int v20; // r5 unsigned int v21; // r8 unsigned int v22; // r10 int v23; // r6 _DWORD *v24; // r3 float v25; // s13 float v26; // s15 bool v27; // r6 unsigned int v28; // r6 unsigned int v29; // r1 _DWORD *v30; // r3 _DWORD *v31; // r0 unsigned int v32; // r4 int v33; // r5 unsigned int v34; // r8 unsigned int v35; // r10 int v36; // r6 _DWORD *v37; // r2 _DWORD *k; // r3 float v39; // s13 float v40; // s15 bool v41; // r6 unsigned int v42; // r6 unsigned int v43; // r1 void **v44; // r3 _DWORD *j; // r7 unsigned int v46; // r0 int v47; // r1 unsigned int v48; // r0 int v49; // r1 unsigned int v50; // r0 int v51; // r1 unsigned int v52; // r0 int v53; // r1 _DWORD *v54; // r7 _DWORD *n; // r7 unsigned int v56; // r4 unsigned int v57; // r6 unsigned int v58; // r10 int v59; // r5 _DWORD *v60; // r3 _DWORD *ii; // r9 unsigned int v62; // r0 int v63; // r1 float v64; // s15 bool v65; // r5 unsigned int v66; // r5 unsigned int v67; // r1 _DWORD *v68; // r3 unsigned int v69; // r0 int v70; // r1 char *v71; // r4 unsigned int v72; // r5 unsigned int v73; // r8 unsigned int v74; // r10 int v75; // r6 _DWORD *v76; // r3 unsigned int v77; // r0 int v78; // r1 float v79; // s13 float v80; // s15 bool v81; // r6 unsigned int v82; // r6 unsigned int v83; // r1 _DWORD *v84; // r3 unsigned int v85; // r0 int v86; // r1 unsigned int v87; // r5 unsigned int v88; // r8 unsigned int v89; // r10 int v90; // r6 _DWORD *v91; // r3 unsigned int v92; // r0 int v93; // r1 float v94; // s13 float v95; // s15 bool v96; // r6 unsigned int v97; // r6 unsigned int v98; // r1 _DWORD *v99; // r3 unsigned int v100; // r0 int v101; // r1 unsigned int v102; // r5 unsigned int v103; // r8 unsigned int v104; // r9 int v105; // r6 _DWORD *v106; // r2 _DWORD *jj; // r10 unsigned int v108; // r0 int v109; // r1 float v110; // s13 float v111; // s15 bool v112; // r6 unsigned int v113; // r6 unsigned int v114; // r1 unsigned int *v115; // r3 unsigned int v116; // r0 int v117; // r1 float *v118; // r5 char *v119; // r5 int v120; // r8 int **kk; // r8 _DWORD *v122; // r4 int v123; // r6 int v124; // r3 unsigned int v125; // r4 unsigned int v126; // r7 unsigned int v127; // r2 unsigned int v128; // r6 int **v129; // r3 int *v130; // r0 int v131; // r1 float v132; // s15 bool v133; // r6 unsigned int v134; // r6 unsigned int v135; // r1 _DWORD *v136; // r3 unsigned int v137; // r0 int v138; // r1 unsigned int v139; // r5 _DWORD *mm; // r7 unsigned int v141; // r4 unsigned int v142; // r9 unsigned int v143; // r2 int v144; // r6 _DWORD *v145; // r3 unsigned int v146; // r0 int v147; // r1 float v148; // s15 bool v149; // r6 unsigned int v150; // r6 unsigned int v151; // r1 void **v152; // r3 unsigned int v153; // r0 int v154; // r1 _DWORD *v155; // r4 int v156; // r3 _DWORD *nn; // r4 void *v158; // r1 int v159; // r5 int MainObject; // r0 _DWORD *v161; // r7 unsigned int *v162; // r8 _DWORD *v163; // r7 int v164; // r9 unsigned int v165; // r6 unsigned int v166; // r10 int v167; // r12 _DWORD *v168; // r3 unsigned int v169; // r0 int v170; // r1 _DWORD *i1; // r4 int v173; // r3 unsigned int AdvancedFollowID; // r0 unsigned int v175; // r7 unsigned int v176; // r4 unsigned int v177; // r9 int v178; // r6 _DWORD *v179; // r3 unsigned int v180; // r0 int v181; // r1 float v182; // s13 float v183; // s15 bool v184; // r6 unsigned int v185; // r6 unsigned int v186; // r1 _DWORD *v187; // r3 unsigned int v188; // r0 int v189; // r1 int v190; // r3 char *v191; // r1 int *v192; // [sp+4h] [bp-100h] _DWORD *v193; // [sp+8h] [bp-FCh] _DWORD *v194; // [sp+Ch] [bp-F8h] int *v195; // [sp+Ch] [bp-F8h] unsigned int *v196; // [sp+10h] [bp-F4h] unsigned int m; // [sp+10h] [bp-F4h] char *v198; // [sp+10h] [bp-F4h] int v199; // [sp+10h] [bp-F4h] char *v200; // [sp+14h] [bp-F0h] int v201; // [sp+14h] [bp-F0h] int v202; // [sp+18h] [bp-ECh] char *v203; // [sp+24h] [bp-E0h] char v204[8]; // [sp+38h] [bp-CCh] BYREF char *v205; // [sp+40h] [bp-C4h] BYREF char *v206; // [sp+44h] [bp-C0h] int v207; // [sp+48h] [bp-BCh] void *v208; // [sp+4Ch] [bp-B8h] BYREF char *v209; // [sp+50h] [bp-B4h] unsigned int v210; // [sp+54h] [bp-B0h] int v211[3]; // [sp+58h] [bp-ACh] BYREF void *v212; // [sp+64h] [bp-A0h] BYREF char *v213; // [sp+68h] [bp-9Ch] char *v214; // [sp+6Ch] [bp-98h] _DWORD *v215; // [sp+70h] [bp-94h] BYREF int v216[3]; // [sp+7Ch] [bp-88h] BYREF int v217[3]; // [sp+88h] [bp-7Ch] BYREF unsigned int v218[3]; // [sp+94h] [bp-70h] BYREF void *v219; // [sp+A0h] [bp-64h] BYREF _DWORD v220[2]; // [sp+A4h] [bp-60h] BYREF int v221; // [sp+ACh] [bp-58h] BYREF unsigned int v222; // [sp+B0h] [bp-54h] _DWORD *v223; // [sp+B4h] [bp-50h] BYREF int v224; // [sp+B8h] [bp-4Ch] float v225; // [sp+BCh] [bp-48h] _DWORD v226[5]; // [sp+C0h] [bp-44h] BYREF unsigned int v227; // [sp+D4h] [bp-30h] BYREF unsigned int v228; // [sp+D8h] [bp-2Ch] void *v229; // [sp+DCh] [bp-28h] BYREF int v230; // [sp+E0h] [bp-24h] float v231; // [sp+E4h] [bp-20h] void *v232[2]; // [sp+E8h] [bp-1Ch] BYREF _DWORD *v233; // [sp+F0h] [bp-14h] int v234; // [sp+F4h] [bp-10h] int v235; // [sp+F8h] [bp-Ch] v193 = (_DWORD *)((char *)this + 11192); if ( *((_DWORD *)this + 2801) ) { v2 = (_DWORD *)((char *)this + 11200); for ( i = *((_DWORD **)this + 2800); i; i = v4 ) { v4 = (_DWORD *)*i; operator delete(i); } *v2 = 0; v5 = *((_DWORD **)this + 2799); while ( i != v5 ) { *(_DWORD *)(*v193 + 4 * (_DWORD)i) = 0; i = (_DWORD *)((char *)i + 1); } *((_DWORD *)this + 2801) = 0; } v192 = (int *)((char *)this + 11212); if ( *((_DWORD *)this + 2806) ) sub_58B818(v192); v6 = *((_DWORD *)this + 232); while ( 1 ) { v7 = *((_DWORD *)this + 233); if ( v6 == v7 ) break; *((_DWORD *)this + 233) = v7 - 4; } v8 = *((_DWORD *)this + 519); *((_DWORD *)this + 237) = -1; v205 = nullptr; *(_DWORD *)(v8 + 1160) = -1; v9 = *((_DWORD *)this + 520); v206 = nullptr; v207 = 0; *(_DWORD *)(v9 + 1160) = -1; v10 = *((_DWORD *)this + 522); v221 = 0; v222 = 0; v223 = nullptr; v224 = 0; v225 = 1.0; v208 = nullptr; v209 = nullptr; v210 = 0; if ( v10 ) { v13 = *(_DWORD **)(v10 + 52); if ( *v13 ) { v14 = (_DWORD *)v13[3]; v15 = &v14[*v13 - 1]; while ( v14 <= v15 ) { v17 = (_DWORD *)*v14++; v16 = v17; if ( !v17 ) break; v173 = v16[223]; if ( v173 == 3016 ) { saveAdvFollowSetup((int)v16, (int)&v205, (int)&v221); } else if ( v173 == 3661 ) { v232[0] = v16; if ( (unsigned int)v209 >= v210 ) { std::vector::__push_back_slow_path((int)&v208, v232); } else { if ( v209 ) *(_DWORD *)v209 = v16; v209 += 4; } } } } } memset(v226, 0, 16); v11 = *((_DWORD *)this + 374); v226[4] = 1065353216; v12 = *((_DWORD *)this + 373); v202 = v11; LABEL_54: if ( v12 != v202 ) { for ( j = *(_DWORD **)(v12 + 8); ; j = (_DWORD *)*j ) { if ( !j ) { v12 += 20; goto LABEL_54; } v18 = std::unordered_map>::operator[]((int)v226, j + 2); v19 = v18[1]; v20 = (int)v18; v196 = j + 3; v21 = j[3]; if ( v19 ) { v22 = v19 - 1; if ( ((v19 - 1) & v19) != 0 ) v23 = v21 % v19; else v23 = v22 & v21; v24 = *(_DWORD **)(*v18 + 4 * v23); if ( v24 ) { while ( 1 ) { v24 = (_DWORD *)*v24; if ( !v24 ) break; v46 = v24[1]; v47 = ((v19 - 1) & v19) != 0 ? v46 % v19 : v22 & v46; if ( v47 != v23 ) break; if ( v24[2] == v21 ) goto LABEL_35; } } } else { v23 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)v211, v20, v21, v196); v25 = *(float *)(v20 + 16); v26 = (float)(unsigned int)(*(_DWORD *)(v20 + 12) + 1); if ( v26 > (float)((float)v19 * v25) ) break; if ( !v19 ) { v27 = 0; LABEL_28: v28 = 2 * v19 + !v27; v29 = (unsigned int)ceilf(v26 / v25); if ( v29 < v28 ) v29 = v28; std::__hash_table,std::equal_to,std::allocator>::rehash(v20, v29); v19 = *(_DWORD *)(v20 + 4); if ( ((v19 - 1) & v19) != 0 ) v23 = v21 % v19; else v23 = (v19 - 1) & v21; } v30 = *(_DWORD **)(*(_DWORD *)v20 + 4 * v23); if ( v30 ) { *(_DWORD *)v211[0] = *v30; *v30 = v211[0]; } else { *(_DWORD *)v211[0] = *(_DWORD *)(v20 + 8); *(_DWORD *)(v20 + 8) = v211[0]; *(_DWORD *)(*(_DWORD *)v20 + 4 * v23) = v20 + 8; if ( *(_DWORD *)v211[0] ) { v48 = *(_DWORD *)(*(_DWORD *)v211[0] + 4); if ( ((v19 - 1) & v19) != 0 ) v49 = v48 % v19; else v49 = (v19 - 1) & v48; *(_DWORD *)(*(_DWORD *)v20 + 4 * v49) = v211[0]; } } ++*(_DWORD *)(v20 + 12); LABEL_35: v31 = std::unordered_map>::operator[]((int)v226, v196); v32 = v31[1]; v33 = (int)v31; v34 = j[2]; if ( v32 ) { v35 = v32 - 1; if ( ((v32 - 1) & v32) != 0 ) v36 = v34 % v32; else v36 = v35 & v34; v37 = *(_DWORD **)(*v31 + 4 * v36); if ( v37 ) { for ( k = (_DWORD *)*v37; k; k = (_DWORD *)*k ) { v50 = k[1]; v51 = ((v32 - 1) & v32) != 0 ? v50 % v32 : v35 & v50; if ( v51 != v36 ) break; if ( k[2] == v34 ) goto LABEL_51; } } } else { v36 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)&v212, v33, v34, j + 2); v39 = *(float *)(v33 + 16); v40 = (float)(unsigned int)(*(_DWORD *)(v33 + 12) + 1); if ( v40 > (float)((float)v32 * v39) ) { v41 = v32 > 2 && ((v32 - 1) & v32) == 0; goto LABEL_44; } if ( !v32 ) { v41 = 0; LABEL_44: v42 = 2 * v32 + !v41; v43 = (unsigned int)ceilf(v40 / v39); if ( v43 < v42 ) v43 = v42; std::__hash_table,std::equal_to,std::allocator>::rehash(v33, v43); v32 = *(_DWORD *)(v33 + 4); if ( ((v32 - 1) & v32) != 0 ) v36 = v34 % v32; else v36 = (v32 - 1) & v34; } v44 = *(void ***)(*(_DWORD *)v33 + 4 * v36); if ( v44 ) { *(_DWORD *)v212 = *v44; *v44 = v212; } else { *(_DWORD *)v212 = *(_DWORD *)(v33 + 8); *(_DWORD *)(v33 + 8) = v212; *(_DWORD *)(*(_DWORD *)v33 + 4 * v36) = v33 + 8; if ( *(_DWORD *)v212 ) { v52 = *(_DWORD *)(*(_DWORD *)v212 + 4); if ( ((v32 - 1) & v32) != 0 ) v53 = v52 % v32; else v53 = (v32 - 1) & v52; *(_DWORD *)(*(_DWORD *)v33 + 4 * v53) = v212; } } ++*(_DWORD *)(v33 + 12); LABEL_51: ; } v27 = v19 > 2 && ((v19 - 1) & v19) == 0; goto LABEL_28; } v54 = v223; v212 = nullptr; v213 = nullptr; v214 = nullptr; while ( v54 ) { if ( v213 == v214 ) { std::vector::__push_back_slow_path((int)&v212, v54 + 2); } else { if ( v213 ) *(_DWORD *)v213 = v54[2]; v213 += 4; } v54 = (_DWORD *)*v54; } for ( m = 0; m < (v213 - (_BYTE *)v212) >> 2; ++m ) { v232[0] = *((void **)v212 + m); if ( std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find( v226, (unsigned int *)v232) ) { for ( n = (_DWORD *)std::unordered_map>::operator[]((int)v226, (unsigned int *)v232)[2]; ; n = (_DWORD *)*n ) { if ( !n ) goto LABEL_230; v194 = n + 2; if ( !std::__hash_table,std::equal_to,std::allocator>::find(&v221, n + 2) ) break; LABEL_229: ; } v56 = v222; v57 = n[2]; if ( v222 ) { v58 = v222 - 1; if ( ((v222 - 1) & v222) != 0 ) v59 = v57 % v222; else v59 = v57 & v58; v60 = *(_DWORD **)(v221 + 4 * v59); if ( v60 ) { for ( ii = (_DWORD *)*v60; ii; ii = (_DWORD *)*ii ) { v62 = ii[1]; v63 = ((v222 - 1) & v222) != 0 ? v62 % v222 : v58 & v62; if ( v63 != v59 ) break; if ( ii[2] == v57 ) goto LABEL_131; } } } else { v59 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)&v215, (int)&v221, n[2], v194); v64 = (float)(unsigned int)(v224 + 1); if ( v64 > (float)((float)v56 * v225) ) { v65 = v56 > 2 && ((v56 - 1) & v56) == 0; LABEL_118: v66 = 2 * v56 + !v65; v67 = (unsigned int)ceilf(v64 / v225); if ( v67 < v66 ) v67 = v66; std::__hash_table,std::equal_to,std::allocator>::rehash((int)&v221, v67); v56 = v222; if ( ((v222 - 1) & v222) != 0 ) v59 = v57 % v222; else v59 = (v222 - 1) & v57; } else if ( !v56 ) { v65 = 0; goto LABEL_118; } v68 = *(_DWORD **)(v221 + 4 * v59); if ( v68 ) { *v215 = *v68; *v68 = v215; } else { *v215 = v223; v223 = v215; *(_DWORD *)(v221 + 4 * v59) = &v223; if ( *v215 ) { v69 = *(_DWORD *)(*v215 + 4); if ( ((v56 - 1) & v56) != 0 ) v70 = v69 % v56; else v70 = (v56 - 1) & v69; *(_DWORD *)(v221 + 4 * v70) = v215; } } ++v224; LABEL_131: if ( v213 == v214 ) { std::vector::__push_back_slow_path((int)&v212, v194); } else { if ( v213 ) *(_DWORD *)v213 = n[2]; v213 += 4; } v71 = v205 + 64; v203 = v206; while ( 2 ) { v200 = v71 - 64; if ( v71 - 64 == v203 ) goto LABEL_229; if ( std::__hash_table,std::equal_to,std::allocator>::find( (_DWORD *)v71 - 11, (unsigned int *)v232) ) { v72 = *((_DWORD *)v71 - 10); v73 = n[2]; if ( v72 ) { v74 = v72 - 1; if ( ((v72 - 1) & v72) != 0 ) v75 = v73 % v72; else v75 = v74 & v73; v76 = *(_DWORD **)(*((_DWORD *)v71 - 11) + 4 * v75); if ( v76 ) { while ( 1 ) { v76 = (_DWORD *)*v76; if ( !v76 ) break; v77 = v76[1]; v78 = ((v72 - 1) & v72) != 0 ? v77 % v72 : v74 & v77; if ( v78 != v75 ) break; if ( v76[2] == v73 ) goto LABEL_168; } } } else { v75 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)v216, (int)(v71 - 44), v73, v194); v79 = *((float *)v71 - 7); v80 = (float)(unsigned int)(*((_DWORD *)v71 - 8) + 1); if ( v80 > (float)((float)v72 * v79) ) { v81 = v72 > 2 && ((v72 - 1) & v72) == 0; LABEL_154: v82 = 2 * v72 + !v81; v83 = (unsigned int)ceilf(v80 / v79); if ( v83 < v82 ) v83 = v82; std::__hash_table,std::equal_to,std::allocator>::rehash((int)(v71 - 44), v83); v72 = *((_DWORD *)v71 - 10); if ( ((v72 - 1) & v72) != 0 ) v75 = v73 % v72; else v75 = (v72 - 1) & v73; } else if ( !v72 ) { v81 = 0; goto LABEL_154; } v84 = *(_DWORD **)(*((_DWORD *)v71 - 11) + 4 * v75); if ( v84 ) { *(_DWORD *)v216[0] = *v84; *v84 = v216[0]; } else { *(_DWORD *)v216[0] = *((_DWORD *)v71 - 9); *((_DWORD *)v71 - 9) = v216[0]; *(_DWORD *)(*((_DWORD *)v71 - 11) + 4 * v75) = v71 - 36; if ( *(_DWORD *)v216[0] ) { v85 = *(_DWORD *)(*(_DWORD *)v216[0] + 4); if ( ((v72 - 1) & v72) != 0 ) v86 = v85 % v72; else v86 = (v72 - 1) & v85; *(_DWORD *)(*((_DWORD *)v71 - 11) + 4 * v86) = v216[0]; } } ++*((_DWORD *)v71 - 8); } LABEL_168: if ( std::__hash_table,std::equal_to,std::allocator>::find( (_DWORD *)v71 - 6, (unsigned int *)v232) ) { v87 = *((_DWORD *)v71 - 5); v88 = n[2]; if ( v87 ) { v89 = v87 - 1; if ( ((v87 - 1) & v87) != 0 ) v90 = v88 % v87; else v90 = v89 & v88; v91 = *(_DWORD **)(*((_DWORD *)v71 - 6) + 4 * v90); if ( v91 ) { while ( 1 ) { v91 = (_DWORD *)*v91; if ( !v91 ) break; v92 = v91[1]; v93 = ((v87 - 1) & v87) != 0 ? v92 % v87 : v89 & v92; if ( v93 != v90 ) break; if ( v91[2] == v88 ) goto LABEL_198; } } } else { v90 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)v217, (int)(v71 - 24), v88, v194); v94 = *((float *)v71 - 2); v95 = (float)(unsigned int)(*((_DWORD *)v71 - 3) + 1); if ( v95 > (float)((float)v87 * v94) ) { v96 = v87 > 2 && ((v87 - 1) & v87) == 0; LABEL_184: v97 = 2 * v87 + !v96; v98 = (unsigned int)ceilf(v95 / v94); if ( v98 < v97 ) v98 = v97; std::__hash_table,std::equal_to,std::allocator>::rehash((int)(v71 - 24), v98); v87 = *((_DWORD *)v71 - 5); if ( ((v87 - 1) & v87) != 0 ) v90 = v88 % v87; else v90 = (v87 - 1) & v88; } else if ( !v87 ) { v96 = 0; goto LABEL_184; } v99 = *(_DWORD **)(*((_DWORD *)v71 - 6) + 4 * v90); if ( v99 ) { *(_DWORD *)v217[0] = *v99; *v99 = v217[0]; } else { *(_DWORD *)v217[0] = *((_DWORD *)v71 - 4); *((_DWORD *)v71 - 4) = v217[0]; *(_DWORD *)(*((_DWORD *)v71 - 6) + 4 * v90) = v71 - 16; if ( *(_DWORD *)v217[0] ) { v100 = *(_DWORD *)(*(_DWORD *)v217[0] + 4); if ( ((v87 - 1) & v87) != 0 ) v101 = v100 % v87; else v101 = (v87 - 1) & v100; *(_DWORD *)(*((_DWORD *)v71 - 6) + 4 * v101) = v217[0]; } } ++*((_DWORD *)v71 - 3); } LABEL_198: if ( std::__hash_table,std::equal_to,std::allocator>::find( v200, (unsigned int *)v232) ) { v102 = *((_DWORD *)v71 - 15); v103 = n[2]; if ( v102 ) { v104 = v102 - 1; if ( ((v102 - 1) & v102) != 0 ) v105 = v103 % v102; else v105 = v104 & v103; v106 = *(_DWORD **)(*((_DWORD *)v71 - 16) + 4 * v105); if ( v106 ) { for ( jj = (_DWORD *)*v106; jj; jj = (_DWORD *)*jj ) { v108 = jj[1]; v109 = ((v102 - 1) & v102) != 0 ? v108 % v102 : v104 & v108; if ( v109 != v105 ) break; if ( jj[2] == v103 ) goto LABEL_228; } } } else { v105 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)&v227, (int)v200, v103, v194); v110 = *((float *)v71 - 12); v111 = (float)(unsigned int)(*((_DWORD *)v71 - 13) + 1); if ( v111 > (float)((float)v102 * v110) ) { v112 = v102 > 2 && ((v102 - 1) & v102) == 0; LABEL_215: v113 = 2 * v102 + !v112; v114 = (unsigned int)ceilf(v111 / v110); if ( v114 < v113 ) v114 = v113; std::__hash_table,std::equal_to,std::allocator>::rehash((int)v200, v114); v102 = *((_DWORD *)v71 - 15); if ( ((v102 - 1) & v102) != 0 ) v105 = v103 % v102; else v105 = (v102 - 1) & v103; } else if ( !v102 ) { v112 = 0; goto LABEL_215; } v115 = *(unsigned int **)(*((_DWORD *)v71 - 16) + 4 * v105); if ( v115 ) { *(_DWORD *)v227 = *v115; *v115 = v227; } else { *(_DWORD *)v227 = *((_DWORD *)v71 - 14); *((_DWORD *)v71 - 14) = v227; *(_DWORD *)(*((_DWORD *)v71 - 16) + 4 * v105) = v71 - 56; if ( *(_DWORD *)v227 ) { v116 = *(_DWORD *)(*(_DWORD *)v227 + 4); if ( ((v102 - 1) & v102) != 0 ) v117 = v116 % v102; else v117 = (v102 - 1) & v116; *(_DWORD *)(*((_DWORD *)v71 - 16) + 4 * v117) = v227; } } ++*((_DWORD *)v71 - 13); } LABEL_228: v71 += 64; continue; } } LABEL_230: ; } v201 = (int)v209; v195 = (int *)v208; LABEL_236: v119 = v205; v198 = v206; if ( v195 != (int *)v201 ) { v118 = (float *)(v205 + 40); v120 = *v195++; while ( 1 ) { if ( v118 - 10 == (float *)v198 ) goto LABEL_236; if ( *(_BYTE *)(v120 + 1496) && std::__hash_table,std::equal_to,std::allocator>::find( v118, (unsigned int *)(v120 + 1284)) || !*(_BYTE *)(v120 + 1496) && std::__hash_table,std::equal_to,std::allocator>::find( (_DWORD *)v118 - 5, (unsigned int *)(v120 + 1284)) ) { break; } LABEL_234: v118 += 16; } AdvancedFollowID = AdvancedFollowTriggerObject::getAdvancedFollowID((AdvancedFollowTriggerObject *)v120); v227 = AdvancedFollowID; v175 = AdvancedFollowID; v176 = *((_DWORD *)v118 - 9); if ( v176 ) { v177 = v176 - 1; if ( ((v176 - 1) & v176) != 0 ) v178 = AdvancedFollowID % v176; else v178 = AdvancedFollowID & v177; v179 = *(_DWORD **)(*((_DWORD *)v118 - 10) + 4 * v178); if ( v179 ) { while ( 1 ) { v179 = (_DWORD *)*v179; if ( !v179 ) break; v180 = v179[1]; v181 = ((v176 - 1) & v176) != 0 ? v180 % v176 : v177 & v180; if ( v181 != v178 ) break; if ( v179[2] == v175 ) goto LABEL_234; } } } else { v178 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)v232, (int)(v118 - 10), v175, &v227); v182 = *(v118 - 6); v183 = (float)(unsigned int)(*((_DWORD *)v118 - 7) + 1); if ( v183 > (float)((float)v176 * v182) ) { v184 = v176 > 2 && ((v176 - 1) & v176) == 0; } else { if ( v176 ) { LABEL_412: v187 = *(_DWORD **)(*((_DWORD *)v118 - 10) + 4 * v178); if ( v187 ) { *(_DWORD *)v232[0] = *v187; *v187 = v232[0]; } else { *(_DWORD *)v232[0] = *((_DWORD *)v118 - 8); *(v118 - 8) = *(float *)v232; *(_DWORD *)(*((_DWORD *)v118 - 10) + 4 * v178) = v118 - 8; if ( *(_DWORD *)v232[0] ) { v188 = *(_DWORD *)(*(_DWORD *)v232[0] + 4); if ( ((v176 - 1) & v176) != 0 ) v189 = v188 % v176; else v189 = (v176 - 1) & v188; *(void **)(*((_DWORD *)v118 - 10) + 4 * v189) = v232[0]; } } ++*((_DWORD *)v118 - 7); goto LABEL_234; } v184 = 0; } v185 = 2 * v176 + !v184; v186 = (unsigned int)ceilf(v183 / v182); if ( v186 < v185 ) v186 = v185; std::__hash_table,std::equal_to,std::allocator>::rehash((int)(v118 - 10), v186); v176 = *((_DWORD *)v118 - 9); if ( ((v176 - 1) & v176) != 0 ) v178 = v175 % v176; else v178 = (v176 - 1) & v175; goto LABEL_412; } v227 = 0; v228 = 0; v229 = nullptr; v230 = 0; v231 = 1.0; v232[0] = nullptr; v232[1] = nullptr; v233 = nullptr; v234 = 0; v235 = 1065353216; LABEL_243: if ( v119 != v198 ) { for ( kk = *((int ***)v119 + 2); ; kk = (int **)*kk ) { if ( !kk ) { v119 += 64; goto LABEL_243; } v219 = kk[2]; v122 = std::unordered_map::operator[]((int)v232, (unsigned int *)&v219); v123 = *((_DWORD *)v119 + 15); v124 = v123 >= *std::unordered_map::operator[]((int)v232, (unsigned int *)&v219) ? *((_DWORD *)v119 + 15) : *std::unordered_map::operator[]((int)v232, (unsigned int *)&v219); *v122 = v124; v125 = v228; v126 = (unsigned int)v219; if ( v228 ) { v127 = v228 - 1; if ( ((v228 - 1) & v228) != 0 ) { v127 = v228 - 1; v128 = (unsigned int)v219 % v228; } else { v128 = v127 & (unsigned int)v219; } v129 = *(int ***)(v227 + 4 * v128); if ( v129 ) { while ( 1 ) { v129 = (int **)*v129; if ( !v129 ) break; v130 = v129[1]; v131 = ((v228 - 1) & v228) != 0 ? (unsigned int)v130 % v228 : v127 & (unsigned int)v130; if ( v131 != v128 ) break; if ( v129[2] == v219 ) goto LABEL_277; } } } else { v128 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)v218, (int)&v227, (int)v219, &v219); v132 = (float)(unsigned int)(v230 + 1); if ( v132 > (float)((float)v125 * v231) ) break; if ( !v125 ) { v133 = 0; LABEL_264: v134 = 2 * v125 + !v133; v135 = (unsigned int)ceilf(v132 / v231); if ( v135 < v134 ) v135 = v134; std::__hash_table,std::equal_to,std::allocator>::rehash((int)&v227, v135); v125 = v228; if ( ((v228 - 1) & v228) != 0 ) v128 = v126 % v228; else v128 = (v228 - 1) & v126; } v136 = *(_DWORD **)(v227 + 4 * v128); if ( v136 ) { *(_DWORD *)v218[0] = *v136; *v136 = v218[0]; } else { *(_DWORD *)v218[0] = v229; v229 = (void *)v218[0]; *(_DWORD *)(v227 + 4 * v128) = &v229; if ( *(_DWORD *)v218[0] ) { v137 = *(_DWORD *)(*(_DWORD *)v218[0] + 4); if ( ((v125 - 1) & v125) != 0 ) v138 = v137 % v125; else v138 = (v125 - 1) & v137; *(_DWORD *)(v227 + 4 * v138) = v218[0]; } } ++v230; LABEL_277: ; } v133 = v125 > 2 && ((v125 - 1) & v125) == 0; goto LABEL_264; } v139 = (unsigned int)v229; v213 -= 4 * ((unsigned int)(v213 - (_BYTE *)v212) >> 2); while ( v139 ) { if ( v213 == v214 ) { std::vector::__push_back_slow_path((int)&v212, (_DWORD *)(v139 + 8)); } else { if ( v213 ) *(_DWORD *)v213 = *(_DWORD *)(v139 + 8); v213 += 4; } v139 = *(_DWORD *)v139; } while ( 2 ) { if ( v139 < (v213 - (_BYTE *)v212) >> 2 ) { v218[0] = *((_DWORD *)v212 + v139); v199 = *std::unordered_map::operator[]((int)v232, v218); if ( !std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find( v226, v218) ) { LABEL_289: ++v139; continue; } for ( mm = (_DWORD *)std::unordered_map>::operator[]((int)v226, v218)[2]; ; mm = (_DWORD *)*mm ) { if ( !mm ) goto LABEL_289; if ( !std::__hash_table,std::equal_to,std::allocator>::find(&v227, mm + 2) ) break; LABEL_328: v155 = std::unordered_map::operator[]((int)v232, mm + 2); if ( v199 >= *std::unordered_map::operator[]((int)v232, mm + 2) ) v156 = v199; else v156 = *std::unordered_map::operator[]((int)v232, mm + 2); *v155 = v156; } v141 = v228; v142 = mm[2]; if ( v228 ) { v143 = v228 - 1; if ( ((v228 - 1) & v228) != 0 ) { v143 = v228 - 1; v144 = v142 % v228; } else { v144 = v142 & v143; } v145 = *(_DWORD **)(v227 + 4 * v144); if ( v145 ) { while ( 1 ) { v145 = (_DWORD *)*v145; if ( !v145 ) break; v146 = v145[1]; v147 = ((v228 - 1) & v228) != 0 ? v146 % v228 : v143 & v146; if ( v147 != v144 ) break; if ( v145[2] == v142 ) goto LABEL_323; } } } else { v144 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)&v219, (int)&v227, v142, mm + 2); v148 = (float)(unsigned int)(v230 + 1); if ( v148 > (float)((float)v141 * v231) ) { v149 = v141 > 2 && ((v141 - 1) & v141) == 0; } else { if ( v141 ) goto LABEL_315; v149 = 0; } v150 = 2 * v141 + !v149; v151 = (unsigned int)ceilf(v148 / v231); if ( v151 < v150 ) v151 = v150; std::__hash_table,std::equal_to,std::allocator>::rehash((int)&v227, v151); v141 = v228; if ( ((v228 - 1) & v228) != 0 ) v144 = v142 % v228; else v144 = v142 & (v228 - 1); LABEL_315: v152 = *(void ***)(v227 + 4 * v144); if ( v152 ) { *(_DWORD *)v219 = *v152; *v152 = v219; } else { *(_DWORD *)v219 = v229; v229 = v219; *(_DWORD *)(v227 + 4 * v144) = &v229; if ( *(_DWORD *)v219 ) { v153 = *(_DWORD *)(*(_DWORD *)v219 + 4); if ( ((v141 - 1) & v141) != 0 ) v154 = v153 % v141; else v154 = (v141 - 1) & v153; *(_DWORD *)(v227 + 4 * v154) = v219; } } ++v230; LABEL_323: if ( v213 == v214 ) { std::vector::__push_back_slow_path((int)&v212, mm + 2); } else { if ( v213 ) *(_DWORD *)v213 = mm[2]; v213 += 4; } goto LABEL_328; } break; } for ( nn = v233; nn; nn = (_DWORD *)*nn ) { v158 = (void *)nn[2]; v219 = nullptr; v159 = nn[3]; if ( (int)v158 <= 0 ) { v219 = v158; } else { MainObject = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)this, (int)v158); if ( MainObject ) { v219 = *(void **)(MainObject + 780); *std::unordered_map::operator[]((int)v193, (unsigned int *)&v219) = MainObject; } } if ( v219 ) { v161 = std::unordered_map::operator[]((int)v192, (unsigned int *)&v219); if ( v159 < *std::unordered_map::operator[]((int)v192, (unsigned int *)&v219) ) v159 = *std::unordered_map::operator[]((int)v192, (unsigned int *)&v219); *v161 = v159; } } v162 = (unsigned int *)((char *)this + 11196); v219 = v220; v163 = *((_DWORD **)this + 2805); v220[0] = 0; v220[1] = 0; while ( 2 ) { if ( v163 ) { v217[0] = v163[2]; v164 = v163[3]; if ( v217[0] >= 0 ) { v165 = *v162; if ( *v162 ) { v166 = v165 - 1; v167 = ((v165 - 1) & v165) != 0 ? v217[0] % v165 : v166 & v217[0]; v168 = *(_DWORD **)(*v193 + 4 * v167); if ( v168 ) { while ( 1 ) { v168 = (_DWORD *)*v168; if ( !v168 ) break; v169 = v168[1]; v170 = ((v165 - 1) & v165) != 0 ? v169 % v165 : v166 & v169; if ( v170 != v167 ) break; if ( v168[2] == v217[0] ) goto LABEL_356; } } } LABEL_446: std::__tree::__emplace_unique_key_args((int)v204, (int)&v219, v217, v217); LABEL_445: v163 = (_DWORD *)*v163; continue; } LABEL_356: if ( v164 <= 0 ) goto LABEL_446; if ( v217[0] > 0 ) { v190 = *std::unordered_map::operator[]((int)v193, (unsigned int *)v217); goto LABEL_442; } if ( v217[0] == -2 ) { v190 = *((_DWORD *)this + 520); } else { if ( v217[0] != -1 ) { if ( v217[0] == -3 ) *((_DWORD *)this + 237) = nn; goto LABEL_444; } v190 = *((_DWORD *)this + 519); } LABEL_442: *(_DWORD *)(v190 + 1160) = nn; LABEL_444: v191 = *((char **)this + 233); nn = (_DWORD *)((char *)nn + v164); v218[0] = 0; std::vector::insert((_DWORD *)this + 232, v191, 2 * v164, (char *)v218); goto LABEL_445; } break; } for ( i1 = v219; i1 != v220; i1 = std::__tree_next *>(i1) ) { v218[0] = i1[4]; std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__erase_unique( v192, v218); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__erase_unique( v193, v218); } std::__tree::~__tree((int)&v219); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::~__hash_table((int)v232); std::__hash_table,std::equal_to,std::allocator>::~__hash_table((int)&v227); std::__vector_base::~__vector_base((char **)&v212); std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::~__hash_table((int)v226); if ( v208 ) { v209 -= 4 * ((unsigned int)(v209 - (_BYTE *)v208) >> 2); operator delete(v208); } std::__hash_table,std::equal_to,std::allocator>::~__hash_table((int)&v221); return std::__vector_base::~__vector_base((void **)&v205); }
GD Web Decomp Icon

GD Web Decomp

Raw Source