// // drawTrace from 0x47ac38 to 0x47bd46 (4366 bytes) // // 2 xrefs: // > LevelEditorLayer::updateDebugDraw @ 0x47fe42 // > LevelEditorLayer::updateDebugDraw @ 0x47fe84 // // 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:49:15 +0000 // int __fastcall drawTrace(cocos2d::CCDrawNode **a1, int **a2, int a3, int a4) { cocos2d::CCDrawNode *v5; // r1 int *v6; // r6 float v7; // r3 float *v8; // r4 float *v9; // r0 int v10; // r5 int v11; // r7 unsigned int v12; // r10 unsigned int v13; // r9 int v14; // r11 _DWORD *v15; // r3 _DWORD *i; // r4 unsigned int v17; // r0 int v18; // r1 cocos2d *v19; // r4 const cocos2d::CCPoint *v20; // r0 const cocos2d::CCPoint *v21; // r2 float v22; // s15 bool v23; // cc int v24; // r4 int v25; // r0 int v26; // r0 const cocos2d::CCRect *v27; // r0 cocos2d::CCArray *Group; // r4 float v29; // r1 float v30; // r2 float v31; // r3 float v32; // r1 float v33; // r2 int v34; // r3 cocos2d::CCArray **v35; // r5 char *v36; // r8 cocos2d::CCArray **v37; // r8 cocos2d::CCArray *v38; // r7 cocos2d::CCArray *v39; // t1 int v40; // r0 cocos2d::CCArray *v41; // r10 _DWORD *v42; // r0 unsigned int v43; // r5 _DWORD *v44; // r4 unsigned int v45; // r8 unsigned int v46; // r11 int v47; // r7 _DWORD *v48; // r3 unsigned int v49; // r0 int v50; // r1 float v51; // s15 int v52; // r7 _BOOL4 v53; // r5 unsigned int v54; // r5 unsigned int v55; // r1 _DWORD *v56; // r3 unsigned int v57; // r0 int v58; // r1 _DWORD *v59; // r2 int *v60; // r7 int *v61; // r5 unsigned __int64 v62; // r8 int v63; // r0 int v64; // t1 int v65; // r2 int v66; // r3 int v67; // r2 int v68; // r3 int v69; // r0 float v70; // r0 float v71; // r0 float k; // r3 _DWORD *v73; // r3 int *v74; // r9 int v75; // r0 int v76; // t1 unsigned int v77; // r0 unsigned int v78; // r5 unsigned int v79; // r8 int v80; // r9 int v81; // r7 int **v82; // r3 int *m; // r3 unsigned int v84; // r0 int v85; // r1 float v86; // r0 __int64 v87; // r2 float v88; // r9 float v89; // s15 int v90; // r7 _BOOL4 v91; // r5 unsigned int v92; // r5 unsigned int v93; // r1 _DWORD *v94; // r3 unsigned int v95; // r0 int v96; // r1 double v97; // d10 double v98; // d9 __int64 v99; // r0 int v100; // r2 float v101; // s17 float v102; // s22 cocos2d::CCPoint *v103; // r0 cocos2d::CCPoint *v104; // r0 __int64 v105; // r0 cocos2d::CCPoint *v106; // r0 cocos2d::CCPoint *v107; // r0 __int64 v108; // r2 __int64 v109; // r0 cocos2d::CCPoint *v110; // r0 cocos2d::CCPoint *v111; // r0 __int64 v112; // r2 __int64 v113; // r0 cocos2d::CCPoint *v114; // r0 cocos2d::CCPoint *v115; // r0 int v116; // r8 __int64 v117; // r0 unsigned int v118; // r0 unsigned int v119; // r5 unsigned int v120; // r9 int v121; // r10 int v122; // r7 int **v123; // r3 int *n; // r11 float v125; // r0 __int64 v126; // r2 float v127; // r10 float v128; // s15 bool v129; // r11 unsigned int v130; // r11 unsigned int v131; // r1 _DWORD *v132; // r3 float v133; // s18 float v134; // s16 cocos2d::CCPoint *v135; // r0 unsigned int kk; // r7 int v137; // r2 unsigned int mm; // r5 int v139; // lr int *v141; // r0 int j; // r3 int v143; // r2 const cocos2d::CCRect *v144; // r0 float v145; // r0 int v146; // s19 float v147; // r0 int v148; // r10 float v149; // r0 int v150; // s20 float v151; // r0 int v152; // s16 __int64 v153; // r2 unsigned int v154; // r0 unsigned int v155; // r5 unsigned int v156; // r11 int v157; // r8 int v158; // r7 int **v159; // r3 int *jj; // lr unsigned int v161; // r0 int v162; // r1 float v163; // r0 float v164; // r8 float v165; // s15 bool v166; // r7 unsigned int v167; // r7 unsigned int v168; // r1 _DWORD *v169; // r3 unsigned int v170; // r0 int v171; // r1 unsigned int v172; // r0 int v173; // r1 unsigned int v174; // r0 int v175; // r1 int v176; // [sp+10h] [bp-13Ch] int ii; // [sp+10h] [bp-13Ch] int v178; // [sp+18h] [bp-134h] __int64 v179; // [sp+18h] [bp-134h] int *v182; // [sp+28h] [bp-124h] float v183; // [sp+28h] [bp-124h] int v184; // [sp+2Ch] [bp-120h] int v185; // [sp+48h] [bp-104h] int *v186; // [sp+54h] [bp-F8h] char v187[4]; // [sp+7Ch] [bp-D0h] BYREF __int16 v188; // [sp+80h] [bp-CCh] char v189; // [sp+82h] [bp-CAh] float *v190; // [sp+84h] [bp-C8h] BYREF __int64 v191; // [sp+88h] [bp-C4h] BYREF __int64 v192; // [sp+90h] [bp-BCh] BYREF float v193[2]; // [sp+98h] [bp-B4h] BYREF __int64 v194; // [sp+A0h] [bp-ACh] BYREF __int64 v195; // [sp+A8h] [bp-A4h] BYREF int v196; // [sp+B0h] [bp-9Ch] _BYTE v197[16]; // [sp+B4h] [bp-98h] BYREF float v198; // [sp+C4h] [bp-88h] BYREF int v199; // [sp+C8h] [bp-84h] int v200; // [sp+CCh] [bp-80h] float v201; // [sp+D0h] [bp-7Ch] _DWORD v202[4]; // [sp+D4h] [bp-78h] int v203; // [sp+E4h] [bp-68h] int v204; // [sp+E8h] [bp-64h] int v205; // [sp+ECh] [bp-60h] int v206; // [sp+F0h] [bp-5Ch] int v207; // [sp+F4h] [bp-58h] BYREF unsigned int v208; // [sp+F8h] [bp-54h] int v209; // [sp+FCh] [bp-50h] int v210; // [sp+100h] [bp-4Ch] int v211; // [sp+104h] [bp-48h] int v212; // [sp+108h] [bp-44h] BYREF unsigned int v213; // [sp+10Ch] [bp-40h] void *v214; // [sp+110h] [bp-3Ch] BYREF int v215; // [sp+114h] [bp-38h] float v216; // [sp+118h] [bp-34h] float v217; // [sp+11Ch] [bp-30h] BYREF float v218; // [sp+120h] [bp-2Ch] float v219; // [sp+124h] [bp-28h] BYREF float v220; // [sp+128h] [bp-24h] float v221; // [sp+12Ch] [bp-20h] void *v222; // [sp+130h] [bp-1Ch] BYREF float v223; // [sp+134h] [bp-18h] float v224; // [sp+138h] [bp-14h] BYREF float v225; // [sp+13Ch] [bp-10h] float v226; // [sp+140h] [bp-Ch] v207 = 0; v208 = 0; v211 = 1065353216; v216 = 1.0; v5 = a1[2894]; v209 = 0; v210 = 0; v212 = 0; v213 = 0; v214 = nullptr; v215 = 0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v197, (cocos2d::CCDrawNode *)((char *)v5 + 312)); v6 = *a2; v184 = 0; v186 = a2[1]; while ( v6 != v186 ) { v7 = *(float *)v6; if ( !*v6 ) { v8 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v6[1] + 96))(v6[1]); v9 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v6[2] + 96))(v6[2]); drawArrow(a4, v8, v9, 6.0, v6[4], v6[5], v6[6], *((float *)v6 + 7)); goto LABEL_202; } if ( LODWORD(v7) == 1 ) { v10 = v208; v11 = v6[2]; v12 = v6[3]; if ( v208 ) { v13 = v208 - 1; v14 = ((v208 - 1) & v208) != 0 ? v12 % v208 : v12 & v13; v15 = *(_DWORD **)(v207 + 4 * v14); if ( v15 ) { for ( i = (_DWORD *)*v15; i; i = (_DWORD *)*i ) { v17 = i[1]; v18 = ((v208 - 1) & v208) != 0 ? v17 % v208 : v13 & v17; if ( v18 != v14 ) break; if ( i[2] == v12 ) { v11 = i[3]; break; } } } } v19 = (cocos2d *)(*(int (__fastcall **)(int))(*(_DWORD *)v6[1] + 96))(v6[1]); v20 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v11 + 96))(v11); v22 = (float)(COERCE_FLOAT(cocos2d::ccpDistance(v19, v20, v21)) / 30.0) + 20.0; v23 = v22 <= 100.0; if ( v22 > 100.0 ) v10 = 100; else LODWORD(v22) = (int)v22; if ( v23 ) v10 = LODWORD(v22); v24 = (*(int (__fastcall **)(int))(*(_DWORD *)v6[1] + 96))(v6[1]); v25 = (*(int (__fastcall **)(int))(*(_DWORD *)v11 + 96))(v11); cocos2d::CCDrawNode::drawArchLikeHalfCircle(a4, v24, v25, 1119092736, v10, (int)(v6 + 4), 1.0); goto LABEL_202; } if ( LODWORD(v7) == 2 ) { v26 = v6[1]; if ( v26 ) { v27 = (const cocos2d::CCRect *)(*(int (__fastcall **)(int))(*(_DWORD *)v26 + 664))(v26); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v217, v27); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v195, v217, v218); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v198, v217 + v219, v218 + v220); *(float *)&v222 = 0.0; v223 = 0.0; v224 = 0.0; v225 = 0.0; cocos2d::CCDrawNode::drawRect(a4, (int)&v195, (int)&v198, (int)&v222, 1.0, (int)(v6 + 4), 2); } else { Group = (cocos2d::CCArray *)GJBaseGameLayer::getGroup((GJBaseGameLayer *)a1, v6[3]); if ( cocos2d::CCArray::count(Group) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, (const cocos2d::CCPoint *)&flt_D2B8B8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v195, (const cocos2d::CCPoint *)&flt_D2B8B8); v29 = *((float *)v6 + 5); v30 = *((float *)v6 + 6); v31 = *((float *)v6 + 7); v217 = *((float *)v6 + 4); v218 = v29; v219 = v30; v220 = v31; v32 = *((float *)v6 + 5); v33 = *((float *)v6 + 6); v222 = *((void **)v6 + 4); v223 = v32; v224 = v33; v220 = 0.03; v225 = 0.15; if ( Group ) { v34 = *((_DWORD *)Group + 13); Group = *(cocos2d::CCArray **)v34; if ( *(_DWORD *)v34 ) { v35 = *(cocos2d::CCArray ***)(v34 + 12); v36 = (char *)Group + 0x3FFFFFFF; Group = nullptr; v37 = &v35[(_DWORD)v36]; while ( v35 <= v37 ) { v39 = *v35++; v38 = v39; if ( !v39 ) break; if ( *((_DWORD *)v38 + 271) == 1 ) { (*(void (__fastcall **)(float *, cocos2d::CCArray *))(*(_DWORD *)v38 + 680))(&v198, v38); if ( v198 < *(float *)&v194 || *(float *)&v194 == 0.0 ) { *(float *)&v194 = v198; Group = v38; } if ( *(float *)&v199 < *((float *)&v194 + 1) || *((float *)&v194 + 1) == 0.0 ) HIDWORD(v194) = v199; if ( v198 > *(float *)&v195 || *(float *)&v195 == 0.0 ) *(float *)&v195 = v198; if ( *(float *)&v199 > *((float *)&v195 + 1) || *((float *)&v195 + 1) == 0.0 ) HIDWORD(v195) = v199; } } } } if ( *(float *)&v194 != *(float *)&v195 || *((float *)&v194 + 1) != *((float *)&v195 + 1) ) { *std::unordered_map::operator[]((int)&v207, (unsigned int *)v6 + 3) = Group; *(float *)&v194 = *(float *)&v194 - 30.0; *((float *)&v194 + 1) = *((float *)&v194 + 1) - 30.0; *(float *)&v195 = *(float *)&v195 + 30.0; *((float *)&v195 + 1) = *((float *)&v195 + 1) + 30.0; cocos2d::CCDrawNode::drawRect(a4, (int)&v194, (int)&v195, (int)&v217, 1.5, (int)&v222, 2); } } } goto LABEL_202; } if ( LODWORD(v7) != 3 ) goto LABEL_202; v40 = traceColorForIndex(v184); v188 = v40; v189 = BYTE2(v40); v201 = 0.4; ++v184; v198 = (float)(unsigned __int8)v40 / 255.0; *(float *)&v199 = (float)BYTE1(v40) / 255.0; *(float *)&v200 = (float)BYTE2(v40) / 255.0; (*(void (__fastcall **)(float *))(*(_DWORD *)v6[1] + 680))(v193); v41 = (cocos2d::CCArray *)GJBaseGameLayer::getGroup((GJBaseGameLayer *)a1, v6[3]); v42 = std::unordered_map::operator[]((int)(a1 + 3081), (unsigned int *)v6 + 3); v43 = v213; v44 = v42; v45 = v6[3]; if ( v213 ) { v46 = v213 - 1; if ( ((v213 - 1) & v213) != 0 ) v47 = v45 % v213; else v47 = v45 & v46; v48 = *(_DWORD **)(v212 + 4 * v47); if ( v48 ) { while ( 1 ) { v48 = (_DWORD *)*v48; if ( !v48 ) break; v49 = v48[1]; v50 = ((v213 - 1) & v213) != 0 ? v49 % v213 : v46 & v49; if ( v50 != v47 ) break; if ( v48[2] == v45 ) goto LABEL_199; } } } else { v47 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)&v222, (int)&v212, v45, v6 + 3); v51 = (float)(unsigned int)(v215 + 1); if ( v51 > (float)((float)v43 * v216) || !v43 ) { v52 = 2 * v43; v53 = v43 > 2 && ((v43 - 1) & v43) == 0; v54 = !v53 + v52; v55 = (unsigned int)ceilf(v51 / v216); if ( v55 < v54 ) v55 = v54; std::__hash_table,std::equal_to,std::allocator>::rehash((int)&v212, v55); v43 = v213; if ( ((v213 - 1) & v213) != 0 ) v47 = v45 % v213; else v47 = v45 & (v213 - 1); } v56 = *(_DWORD **)(v212 + 4 * v47); if ( v56 ) { *(_DWORD *)v222 = *v56; *(float *)v56 = *(float *)&v222; } else { *(_DWORD *)v222 = v214; v214 = v222; *(_DWORD *)(v212 + 4 * v47) = &v214; if ( *(_DWORD *)v222 ) { v57 = *(_DWORD *)(*(_DWORD *)v222 + 4); if ( ((v43 - 1) & v43) != 0 ) v58 = v57 % v43; else v58 = (v43 - 1) & v57; *(float *)(v212 + 4 * v58) = *(float *)&v222; } } ++v215; if ( v41 && (v59 = *((_DWORD **)v41 + 13), *v59) ) { v60 = (int *)v59[3]; v61 = &v60[*v59 - 1]; v62 = 0xCBF29CE484222325LL; while ( v60 <= v61 ) { v64 = *v60++; v63 = v64; if ( !v64 ) break; v141 = (int *)(*(int (__fastcall **)(int))(*(_DWORD *)v63 + 664))(v63); v203 = *v141; v204 = v141[1]; v205 = v141[2]; v206 = v141[3]; for ( j = 0; j != 4; ++j ) { v143 = *(&v203 + j); LODWORD(v62) = v62 ^ v143; v62 *= 0x100000001B3LL; } } } else { v62 = 0xCBF29CE484222325LL; } if ( *(_QWORD *)v44 != v62 ) { *(_QWORD *)v44 = v62; v65 = v44[2]; while ( 1 ) { v66 = v44[3]; if ( v65 == v66 ) break; v44[3] = v66 - 8; } v67 = v44[5]; while ( 1 ) { v68 = v44[6]; if ( v67 == v68 ) break; v44[6] = v68 - 8; } v217 = 0.0; v218 = 0.0; v219 = 0.0; v220 = 0.0; v221 = 1.0; v69 = cocos2d::CCArray::count(v41); v70 = ceilf((float)(unsigned int)(8 * v69) / v221); std::__hash_table,std::equal_to,std::allocator>::rehash( (int)&v217, (unsigned int)v70); if ( !v41 ) goto LABEL_78; v73 = *((_DWORD **)v41 + 13); if ( !*v73 ) goto LABEL_78; v74 = (int *)v73[3]; v182 = &v74[*v73 - 1]; while ( 2 ) { if ( v74 > v182 || (v76 = *v74, ++v74, (v75 = v76) == 0) ) { LABEL_78: v190 = &v217; *(float *)&v222 = 0.0; v223 = 0.0; v224 = 0.0; v225 = 0.0; v226 = 1.0; v71 = ceilf((float)LODWORD(v220)); std::__hash_table,std::equal_to,std::allocator>::rehash( (int)&v222, (unsigned int)v71); for ( k = v219; ; k = *(float *)LODWORD(v183) ) { v183 = k; if ( k == 0.0 ) { std::__hash_table,std::equal_to,std::allocator>::~__hash_table((int)&v222); std::__hash_table,std::equal_to,std::allocator>::~__hash_table((int)&v217); goto LABEL_195; } v191 = *(_QWORD *)(LODWORD(k) + 8); if ( !std::__hash_table,std::equal_to,std::allocator>::find( &v222, &v191) ) break; LABEL_85: ; } v195 = 0; v196 = 0; std::vector::__push_back_slow_path((int)&v195, &v191); v194 = v191; v77 = std::__murmur2_or_cityhash::operator()((int)&v192, (int)&v194, 8u); v78 = LODWORD(v223); v79 = v77; if ( v223 == 0.0 ) { v81 = 0; } else { v80 = LODWORD(v223) - 1; if ( ((LODWORD(v223) - 1) & LODWORD(v223)) != 0 ) v81 = v77 % LODWORD(v223); else v81 = v77 & v80; v82 = *((int ***)v222 + v81); if ( v82 ) { for ( m = *v82; m; m = (int *)*m ) { v84 = m[1]; v85 = ((LODWORD(v223) - 1) & LODWORD(v223)) != 0 ? v84 % LODWORD(v223) : v80 & v84; if ( v85 != v81 ) break; if ( *((_QWORD *)m + 1) == v191 ) goto LABEL_117; } } } v86 = COERCE_FLOAT(operator new(0x10u)); v87 = v191; *(_DWORD *)(LODWORD(v86) + 4) = v79; v88 = v86; *(_QWORD *)(LODWORD(v86) + 8) = v87; *(_DWORD *)LODWORD(v86) = 0; v89 = (float)(unsigned int)(LODWORD(v225) + 1); if ( v89 > (float)((float)v78 * v226) || !v78 ) { v90 = 2 * v78; v91 = v78 > 2 && ((v78 - 1) & v78) == 0; v92 = !v91 + v90; v93 = (unsigned int)ceilf(v89 / v226); if ( v93 < v92 ) v93 = v92; std::__hash_table,std::equal_to,std::allocator>::rehash( (int)&v222, v93); v78 = LODWORD(v223); if ( ((LODWORD(v223) - 1) & LODWORD(v223)) != 0 ) v81 = v79 % LODWORD(v223); else v81 = v79 & (LODWORD(v223) - 1); } v94 = *((_DWORD **)v222 + v81); if ( v94 ) { *(_DWORD *)LODWORD(v88) = *v94; *(float *)v94 = v88; } else { *(float *)LODWORD(v88) = v224; v224 = v88; *((_DWORD *)v222 + v81) = &v224; if ( *(_DWORD *)LODWORD(v88) ) { v95 = *(_DWORD *)(*(_DWORD *)LODWORD(v88) + 4); if ( ((v78 - 1) & v78) != 0 ) v96 = v95 % v78; else v96 = (v78 - 1) & v95; *((float *)v222 + v96) = v88; } } ++LODWORD(v225); LABEL_117: v97 = 0.0; v185 = 0; v98 = 0.0; while ( 2 ) { if ( (_DWORD)v195 == HIDWORD(v195) ) { v133 = v98 / (double)v185; v134 = v97 / (double)v185; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v194, (float)(v133 + 0.5) * 15.0, (float)(v134 + 0.5) * 15.0); v135 = (cocos2d::CCPoint *)v44[6]; if ( (unsigned int)v135 >= v44[7] ) { std::vector::__push_back_slow_path( (int)(v44 + 5), (const cocos2d::CCPoint *)&v194); } else { if ( v135 ) cocos2d::CCPoint::CCPoint(v135, (const cocos2d::CCPoint *)&v194); v44[6] += 8; } if ( (_DWORD)v195 ) { HIDWORD(v195) -= 8 * ((unsigned int)(HIDWORD(v195) - v195) >> 3); operator delete((void *)v195); } goto LABEL_85; } LODWORD(v99) = &v190; v176 = *(_DWORD *)(HIDWORD(v195) - 8); v100 = *(_DWORD *)(HIDWORD(v195) - 4); HIDWORD(v195) -= 8; HIDWORD(v99) = v100 - 1; v178 = v100; ++v185; v98 = v98 + (double)v100; v101 = (float)v100 * 15.0; v102 = (float)v176 * 15.0; v97 = v97 + (double)v176; if ( !sub_46B9D0(v99, __SPAIR64__(v185, v176)) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, v101, v102); v103 = (cocos2d::CCPoint *)v44[3]; if ( (unsigned int)v103 >= v44[4] ) { std::vector::__push_back_slow_path( (int)(v44 + 2), (const cocos2d::CCPoint *)&v194); } else { if ( v103 ) cocos2d::CCPoint::CCPoint(v103, (const cocos2d::CCPoint *)&v194); v44[3] += 8; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, v101, v102 + 15.0); v104 = (cocos2d::CCPoint *)v44[3]; if ( (unsigned int)v104 >= v44[4] ) { std::vector::__push_back_slow_path( (int)(v44 + 2), (const cocos2d::CCPoint *)&v194); } else { if ( v104 ) cocos2d::CCPoint::CCPoint(v104, (const cocos2d::CCPoint *)&v194); v44[3] += 8; } } LODWORD(v105) = &v190; HIDWORD(v105) = v178 + 1; if ( !sub_46B9D0(v105, __SPAIR64__(v178, v176)) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, v101 + 15.0, v102); v106 = (cocos2d::CCPoint *)v44[3]; if ( (unsigned int)v106 >= v44[4] ) { std::vector::__push_back_slow_path( (int)(v44 + 2), (const cocos2d::CCPoint *)&v194); } else { if ( v106 ) cocos2d::CCPoint::CCPoint(v106, (const cocos2d::CCPoint *)&v194); v44[3] += 8; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, v101 + 15.0, v102 + 15.0); v107 = (cocos2d::CCPoint *)v44[3]; if ( (unsigned int)v107 >= v44[4] ) { std::vector::__push_back_slow_path( (int)(v44 + 2), (const cocos2d::CCPoint *)&v194); } else { if ( v107 ) cocos2d::CCPoint::CCPoint(v107, (const cocos2d::CCPoint *)&v194); v44[3] += 8; } } HIDWORD(v108) = v176; LODWORD(v109) = &v190; HIDWORD(v109) = v178; LODWORD(v108) = v176 - 1; if ( !sub_46B9D0(v109, v108) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, v101, v102); v110 = (cocos2d::CCPoint *)v44[3]; if ( (unsigned int)v110 >= v44[4] ) { std::vector::__push_back_slow_path( (int)(v44 + 2), (const cocos2d::CCPoint *)&v194); } else { if ( v110 ) cocos2d::CCPoint::CCPoint(v110, (const cocos2d::CCPoint *)&v194); v44[3] += 8; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, v101 + 15.0, v102); v111 = (cocos2d::CCPoint *)v44[3]; if ( (unsigned int)v111 >= v44[4] ) { std::vector::__push_back_slow_path( (int)(v44 + 2), (const cocos2d::CCPoint *)&v194); } else { if ( v111 ) cocos2d::CCPoint::CCPoint(v111, (const cocos2d::CCPoint *)&v194); v44[3] += 8; } } HIDWORD(v112) = v176; LODWORD(v113) = &v190; HIDWORD(v113) = v178; LODWORD(v112) = v176 + 1; if ( !sub_46B9D0(v113, v112) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, v101, v102 + 15.0); v114 = (cocos2d::CCPoint *)v44[3]; if ( (unsigned int)v114 >= v44[4] ) { std::vector::__push_back_slow_path( (int)(v44 + 2), (const cocos2d::CCPoint *)&v194); } else { if ( v114 ) cocos2d::CCPoint::CCPoint(v114, (const cocos2d::CCPoint *)&v194); v44[3] += 8; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, v101 + 15.0, v102 + 15.0); v115 = (cocos2d::CCPoint *)v44[3]; if ( (unsigned int)v115 >= v44[4] ) { std::vector::__push_back_slow_path( (int)(v44 + 2), (const cocos2d::CCPoint *)&v194); } else { if ( v115 ) cocos2d::CCPoint::CCPoint(v115, (const cocos2d::CCPoint *)&v194); v44[3] += 8; } } v116 = 0; v202[0] = -1; v202[1] = 1; v202[2] = 0; v202[3] = 0; v203 = 0; v204 = 0; v205 = -1; v206 = 1; LABEL_164: LODWORD(v117) = &v190; HIDWORD(v117) = v202[v116] + v178; LODWORD(v192) = *(&v203 + v116) + v176; HIDWORD(v192) = HIDWORD(v117); if ( sub_46B9D0(v117, (unsigned int)v192) && !std::__hash_table,std::equal_to,std::allocator>::find( &v222, &v192) ) { v194 = v192; v118 = std::__murmur2_or_cityhash::operator()((int)v187, (int)&v194, 8u); v119 = LODWORD(v223); v120 = v118; if ( v223 == 0.0 ) { v122 = 0; } else { v121 = LODWORD(v223) - 1; if ( ((LODWORD(v223) - 1) & LODWORD(v223)) != 0 ) v122 = v118 % LODWORD(v223); else v122 = v118 & v121; v123 = *((int ***)v222 + v122); if ( v123 ) { for ( n = *v123; n; n = (int *)*n ) { v172 = n[1]; v173 = ((LODWORD(v223) - 1) & LODWORD(v223)) != 0 ? v172 % LODWORD(v223) : v121 & v172; if ( v173 != v122 ) break; if ( *((_QWORD *)n + 1) == v192 ) goto LABEL_182; } } } v125 = COERCE_FLOAT(operator new(0x10u)); v126 = v192; *(_DWORD *)(LODWORD(v125) + 4) = v120; v127 = v125; *(_QWORD *)(LODWORD(v125) + 8) = v126; *(_DWORD *)LODWORD(v125) = 0; v128 = (float)(unsigned int)(LODWORD(v225) + 1); if ( v128 <= (float)((float)v119 * v226) ) { if ( !v119 ) { v129 = 0; goto LABEL_175; } } else { v129 = v119 > 2 && ((v119 - 1) & v119) == 0; LABEL_175: v130 = 2 * v119 + !v129; v131 = (unsigned int)ceilf(v128 / v226); if ( v131 < v130 ) v131 = v130; std::__hash_table,std::equal_to,std::allocator>::rehash( (int)&v222, v131); v119 = LODWORD(v223); if ( ((LODWORD(v223) - 1) & LODWORD(v223)) != 0 ) v122 = v120 % LODWORD(v223); else v122 = v120 & (LODWORD(v223) - 1); } v132 = *((_DWORD **)v222 + v122); if ( v132 ) { *(_DWORD *)LODWORD(v127) = *v132; *(float *)v132 = v127; } else { *(float *)LODWORD(v127) = v224; v224 = v127; *((_DWORD *)v222 + v122) = &v224; if ( *(_DWORD *)LODWORD(v127) ) { v174 = *(_DWORD *)(*(_DWORD *)LODWORD(v127) + 4); if ( ((v119 - 1) & v119) != 0 ) v175 = v174 % v119; else v175 = (v119 - 1) & v174; *((float *)v222 + v175) = v127; } } ++LODWORD(v225); LABEL_182: if ( HIDWORD(v195) == v196 ) { std::vector::__push_back_slow_path((int)&v195, &v192); } else { if ( HIDWORD(v195) ) *(_QWORD *)HIDWORD(v195) = v192; HIDWORD(v195) += 8; } } if ( ++v116 == 4 ) continue; goto LABEL_164; } } v144 = (const cocos2d::CCRect *)(*(int (__fastcall **)(int))(*(_DWORD *)v75 + 664))(v75); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v222, v144); *(float *)&v222 = *(float *)&v222 - 3.0; v223 = v223 - 3.0; v224 = v224 + 6.0; v225 = v225 + 6.0; v145 = COERCE_FLOAT(cocos2d::CCRect::getMinX((cocos2d::CCRect *)&v222)); v146 = (int)floorf((float)(v145 + 0.001) / 15.0); v147 = COERCE_FLOAT(cocos2d::CCRect::getMinY((cocos2d::CCRect *)&v222)); v148 = (int)floorf((float)(v147 + 0.001) / 15.0); v149 = COERCE_FLOAT(cocos2d::CCRect::getMaxX((cocos2d::CCRect *)&v222)); v150 = (int)floorf((float)(v149 - 0.001) / 15.0); v151 = COERCE_FLOAT(cocos2d::CCRect::getMaxY((cocos2d::CCRect *)&v222)); v152 = (int)floorf((float)(v151 - 0.001) / 15.0); LABEL_227: if ( v148 > v152 ) continue; break; } for ( ii = 0; ; ++ii ) { if ( v146 + ii > v150 ) { ++v148; goto LABEL_227; } HIDWORD(v153) = ii + v146; LODWORD(v153) = v148; LODWORD(v179) = v148; HIDWORD(v179) = ii + v146; v195 = v153; v154 = std::__murmur2_or_cityhash::operator()((int)&v194, (int)&v195, 8u); v155 = LODWORD(v218); v156 = v154; if ( v218 == 0.0 ) { v158 = 0; } else { v157 = LODWORD(v218) - 1; if ( ((LODWORD(v218) - 1) & LODWORD(v218)) != 0 ) v158 = v154 % LODWORD(v218); else v158 = v154 & v157; v159 = *(int ***)(LODWORD(v217) + 4 * v158); if ( v159 ) { for ( jj = *v159; jj; jj = (int *)*jj ) { v161 = jj[1]; v162 = ((LODWORD(v218) - 1) & LODWORD(v218)) != 0 ? v161 % LODWORD(v218) : v157 & v161; if ( v162 != v158 ) break; if ( *((_QWORD *)jj + 1) == v179 ) goto LABEL_259; } } } v163 = COERCE_FLOAT(operator new(0x10u)); *(_DWORD *)(LODWORD(v163) + 4) = v156; v164 = v163; *(_QWORD *)(LODWORD(v163) + 8) = v179; *(_DWORD *)LODWORD(v163) = 0; v165 = (float)(unsigned int)(LODWORD(v220) + 1); if ( v165 > (float)((float)v155 * v221) ) break; if ( !v155 ) { v166 = 0; LABEL_246: v167 = 2 * v155 + !v166; v168 = (unsigned int)ceilf(v165 / v221); if ( v168 < v167 ) v168 = v167; std::__hash_table,std::equal_to,std::allocator>::rehash( (int)&v217, v168); v155 = LODWORD(v218); if ( ((LODWORD(v218) - 1) & LODWORD(v218)) != 0 ) v158 = v156 % LODWORD(v218); else v158 = v156 & (LODWORD(v218) - 1); } v169 = *(_DWORD **)(LODWORD(v217) + 4 * v158); if ( v169 ) { *(_DWORD *)LODWORD(v164) = *v169; *(float *)v169 = v164; } else { *(float *)LODWORD(v164) = v219; v219 = v164; *(_DWORD *)(LODWORD(v217) + 4 * v158) = &v219; if ( *(_DWORD *)LODWORD(v164) ) { v170 = *(_DWORD *)(*(_DWORD *)LODWORD(v164) + 4); if ( ((v155 - 1) & v155) != 0 ) v171 = v170 % v155; else v171 = (v155 - 1) & v170; *(float *)(LODWORD(v217) + 4 * v171) = v164; } } ++LODWORD(v220); LABEL_259: ; } v166 = v155 > 2 && ((v155 - 1) & v155) == 0; goto LABEL_246; } LABEL_195: cocos2d::CCDrawNode::enableDrawArea(a1[2894], (cocos2d::CCRect *)v197); for ( kk = 1; ; kk += 2 ) { v137 = v44[2]; if ( kk >= (v44[3] - v137) >> 3 ) break; cocos2d::CCDrawNode::drawSegmentEx( a4, (cocos2d::CCPoint *)(8 * (kk + 0x1FFFFFFF) + v137), (cocos2d::CCPoint *)(v137 + 8 * (kk + 0x1FFFFFFF) + 8), 1065353216, (int)&v198, 0, 0); } cocos2d::CCDrawNode::disableDrawArea(a1[2894]); LABEL_199: for ( mm = 0; ; ++mm ) { v139 = v44[5]; if ( mm >= (v44[6] - v139) >> 3 ) break; drawArrow(a4, v193, (float *)(v139 + 8 * mm), 6.0, SLOBYTE(v198), v199, v200, v201); } LABEL_202: v6 += 8; } std::__hash_table,std::equal_to,std::allocator>::~__hash_table((int)&v212); return std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::~__hash_table((int)&v207); }
GD Web Decomp Icon

GD Web Decomp

Raw Source