//
// drawTrace from 0x7b596c to 0x7b71a8 (6204 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::updateDebugDraw @ 0x7bf7d0
// > LevelEditorLayer::updateDebugDraw @ 0x7bf820
// > ??> @ 0x69448
//
// 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:53:55 +0000
//
__int64 __fastcall drawTrace(cocos2d::CCDrawNode **a1, float **a2, __int64 a3, cocos2d::CCDrawNode *a4)
{
cocos2d::CCDrawNode *v5; // x1
int v6; // w0
float *v7; // x19
float *v8; // x0
long double v9; // q0
__int64 v10; // x0
const cocos2d::CCRect *v11; // x0
_QWORD *v12; // x0
_QWORD *v13; // x19
void *v14; // x0
_QWORD *v15; // x0
_QWORD *v16; // x19
void *v17; // x0
int v19; // w6
__int64 v20; // x19
unsigned __int64 v21; // x5
__int64 v22; // x7
unsigned __int64 v23; // x4
__int64 **v24; // x1
__int64 *v25; // x3
unsigned __int64 v26; // x1
unsigned __int64 v27; // x1
cocos2d *v28; // x20
const cocos2d::CCPoint *v29; // x0
const cocos2d::CCPoint *v30; // x2
unsigned int v31; // w20
float v32; // s0
float v33; // s0
__int64 v34; // x21
__int64 v35; // x0
unsigned __int64 v36; // x0
cocos2d::CCArray *v37; // x21
__int64 v38; // x0
long double v39; // q0
int v40; // w4
unsigned __int64 v41; // x19
unsigned __int64 v42; // x22
__int64 v43; // x5
unsigned __int64 v44; // x20
__int64 **v45; // x0
__int64 *v46; // x2
unsigned __int64 v47; // x0
__int64 v48; // x0
float v49; // s0
_BOOL8 v50; // x2
__int64 v51; // x0
unsigned __int64 v52; // x2
unsigned __int64 v53; // x1
void **v54; // x0
unsigned int *v55; // x1
__int64 i; // x19
__int64 v57; // x2
__int64 v58; // x1
__int64 v59; // x2
__int64 v60; // x1
int v61; // w0
unsigned int *v62; // x1
__int64 v63; // x0
const cocos2d::CCRect *v64; // x0
float v65; // s0
signed int v66; // w24
float v67; // s0
float v68; // s0
signed int v69; // w25
float v70; // s0
__int64 v71; // x23
_QWORD *v72; // x0
void *v73; // x22
float v74; // s0
_BOOL8 v75; // x2
__int64 v76; // x0
unsigned __int64 v77; // x2
unsigned __int64 v78; // x1
unsigned __int64 v79; // x19
__int64 v80; // x21
_QWORD *v81; // x0
unsigned __int64 v82; // x20
_QWORD *v83; // x0
unsigned __int64 v84; // x1
__int64 *v85; // x0
unsigned __int64 v86; // x20
unsigned __int64 v87; // x22
__int64 v88; // x4
unsigned __int64 v89; // x21
_QWORD *v90; // x0
_QWORD *v91; // x2
unsigned __int64 v92; // x0
__int64 v93; // x0
void **v94; // x24
float v95; // s0
_BOOL8 v96; // x2
__int64 v97; // x0
unsigned __int64 v98; // x2
unsigned __int64 v99; // x1
void **v100; // x0
char *v101; // x0
double v102; // d12
double v103; // d8
__int64 v104; // x20
float v105; // s10
float v106; // s9
__int64 v107; // x21
__int64 v108; // x23
double v109; // d0
unsigned __int64 v110; // x1
unsigned __int64 v111; // x0
_QWORD *v112; // x0
_QWORD *v113; // x19
void *v114; // x0
_QWORD *v115; // x0
_QWORD *v116; // x19
void *v117; // x0
__int64 v118; // x2
__int64 v119; // x21
unsigned __int64 v120; // x20
unsigned __int64 v121; // x19
__int64 v122; // x2
unsigned __int64 v123; // x1
unsigned __int64 v124; // x19
char *v125; // x20
__int64 v126; // x0
char *v127; // x22
__int64 v128; // x0
unsigned int *v129; // x0
unsigned int v130; // w2
unsigned int v131; // w1
unsigned int v132; // w6
cocos2d::CCArray *Group; // x21
unsigned __int64 v134; // x1
void *v135; // x0
__int64 v136; // x1
unsigned int *v137; // x1
_QWORD *v138; // x23
__int64 v139; // x0
char *v140; // x22
_DWORD *v141; // x21
_DWORD *v142; // x24
unsigned __int64 v143; // x20
unsigned __int64 v144; // x21
unsigned __int64 v145; // x22
_QWORD *v146; // x0
unsigned __int64 v147; // x1
unsigned __int64 v148; // x1
void **v149; // x24
float v150; // s0
_BOOL8 v151; // x2
__int64 v152; // x0
unsigned __int64 v153; // x2
unsigned __int64 v154; // x1
void **v155; // x0
char *v156; // x0
unsigned __int64 v157; // x1
unsigned __int64 v158; // x20
cocos2d::CCPoint *v159; // x0
cocos2d::CCPoint *v160; // x0
cocos2d::CCPoint *v161; // x0
cocos2d::CCPoint *v162; // x0
cocos2d::CCPoint *v163; // x0
cocos2d::CCPoint *v164; // x0
cocos2d::CCPoint *v165; // x0
cocos2d::CCPoint *v166; // x0
float v167; // s1
float v168; // s0
cocos2d::CCPoint *v169; // x0
unsigned __int64 v170; // x1
unsigned __int64 v171; // x20
float *v172; // [xsp+C0h] [xbp+C0h]
int v173; // [xsp+CCh] [xbp+CCh]
__int64 *v174; // [xsp+E0h] [xbp+E0h]
__int64 *v176; // [xsp+F0h] [xbp+F0h]
_QWORD *v177; // [xsp+F0h] [xbp+F0h]
float *v178; // [xsp+F8h] [xbp+F8h]
int *v179; // [xsp+100h] [xbp+100h]
float *v181; // [xsp+110h] [xbp+110h]
signed int v182; // [xsp+120h] [xbp+120h]
int v183; // [xsp+120h] [xbp+120h]
unsigned int v184; // [xsp+124h] [xbp+124h]
__int64 v185; // [xsp+124h] [xbp+124h]
__int64 v186; // [xsp+130h] [xbp+130h]
cocos2d::CCPoint **v187; // [xsp+138h] [xbp+138h]
__int64 v188; // [xsp+150h] [xbp+150h] BYREF
unsigned __int64 v189; // [xsp+158h] [xbp+158h] BYREF
unsigned __int64 v190; // [xsp+160h] [xbp+160h] BYREF
unsigned __int64 v191; // [xsp+168h] [xbp+168h] BYREF
_BYTE v192[16]; // [xsp+170h] [xbp+170h] BYREF
float v193; // [xsp+180h] [xbp+180h] BYREF
float v194; // [xsp+184h] [xbp+184h]
float v195; // [xsp+188h] [xbp+188h]
float v196; // [xsp+18Ch] [xbp+18Ch]
_DWORD v197[4]; // [xsp+190h] [xbp+190h]
unsigned int v198; // [xsp+1A0h] [xbp+1A0h]
unsigned int v199; // [xsp+1A4h] [xbp+1A4h]
int v200; // [xsp+1A8h] [xbp+1A8h]
int v201; // [xsp+1ACh] [xbp+1ACh]
void *v202; // [xsp+1B0h] [xbp+1B0h] BYREF
char *v203; // [xsp+1B8h] [xbp+1B8h]
char *v204; // [xsp+1C0h] [xbp+1C0h]
void *v205; // [xsp+1C8h] [xbp+1C8h] BYREF
unsigned __int64 v206; // [xsp+1D0h] [xbp+1D0h]
void *v207; // [xsp+1D8h] [xbp+1D8h]
__int64 v208; // [xsp+1E0h] [xbp+1E0h]
float v209; // [xsp+1E8h] [xbp+1E8h]
void *v210; // [xsp+1F0h] [xbp+1F0h] BYREF
unsigned __int64 v211; // [xsp+1F8h] [xbp+1F8h]
void *v212; // [xsp+200h] [xbp+200h] BYREF
__int64 v213; // [xsp+208h] [xbp+208h]
float v214; // [xsp+210h] [xbp+210h]
void *v215; // [xsp+218h] [xbp+218h] BYREF
unsigned __int64 v216; // [xsp+220h] [xbp+220h]
void *v217; // [xsp+228h] [xbp+228h] BYREF
unsigned __int64 v218; // [xsp+230h] [xbp+230h]
float v219; // [xsp+238h] [xbp+238h]
void *v220; // [xsp+240h] [xbp+240h] BYREF
unsigned __int64 v221; // [xsp+248h] [xbp+248h]
void *v222; // [xsp+250h] [xbp+250h] BYREF
__int64 v223; // [xsp+258h] [xbp+258h]
float v224; // [xsp+260h] [xbp+260h]
v5 = a1[1727];
v205 = nullptr;
v206 = 0;
v207 = nullptr;
v208 = 0;
v209 = 1.0;
v210 = nullptr;
v211 = 0;
v212 = nullptr;
v213 = 0;
v214 = 1.0;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v192, (cocos2d::CCDrawNode *)((char *)v5 + 380));
v178 = *a2;
v172 = a2[1];
if ( *a2 != v172 )
{
v173 = 0;
v181 = v178 + 7;
v179 = (int *)(v178 + 6);
while ( 1 )
{
v6 = *((_DWORD *)v181 - 7);
switch ( v6 )
{
case 0:
v7 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v181 - 5) + 192LL))(*(_QWORD *)(v181 - 5));
v8 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v181 - 3) + 192LL))(*(_QWORD *)(v181 - 3));
LODWORD(v9) = 6.0;
drawArrow((__int64)a4, v7, v8, v9, v178[7], v178[8], v178[9], v178[10]);
goto LABEL_6;
case 1:
v19 = *((_DWORD *)v181 - 1);
v20 = *(_QWORD *)(v181 - 3);
if ( v206 )
{
v21 = v206 - 1;
v22 = (v206 - 1) & v206;
v23 = v22 ? v19 % v206 : v19 & v21;
v24 = *((__int64 ***)v205 + v23);
if ( v24 )
{
v25 = *v24;
if ( *v24 )
{
v26 = v25[1];
if ( !v22 )
{
LABEL_26:
v27 = v21 & v26;
goto LABEL_27;
}
while ( 1 )
{
v27 = v26 % v206;
LABEL_27:
if ( v23 != v27 )
break;
if ( v19 == *((_DWORD *)v25 + 4) )
{
v20 = v25[3];
break;
}
v25 = (__int64 *)*v25;
if ( !v25 )
break;
v26 = v25[1];
if ( !v22 )
goto LABEL_26;
}
}
}
}
v28 = (cocos2d *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v181 - 5) + 192LL))(*(_QWORD *)(v181 - 5));
v29 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v20 + 192LL))(v20);
cocos2d::ccpDistance(v28, v29, v30);
v31 = 100;
v33 = (float)(v32 / 30.0) + 20.0;
if ( v33 <= 100.0 )
v31 = (int)v33;
v34 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v181 - 5) + 192LL))(*(_QWORD *)(v181 - 5));
v35 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v20 + 192LL))(v20);
cocos2d::CCDrawNode::drawArchLikeHalfCircle(a4, v34, v35, v31, v181, 90.0, 1.0);
goto LABEL_6;
case 2:
v10 = *(_QWORD *)(v181 - 5);
if ( v10 )
{
v11 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 1328LL))(v10);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v215, v11);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v193, *(float *)&v215, *((float *)&v215 + 1));
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v202,
*(float *)&v215 + *(float *)&v216,
*((float *)&v215 + 1) + *((float *)&v216 + 1));
v220 = nullptr;
v221 = 0;
cocos2d::CCDrawNode::drawRect(a4, &v193, &v202, &v220, v181, 2, 1.0);
}
else
{
Group = (cocos2d::CCArray *)GJBaseGameLayer::getGroup((GJBaseGameLayer *)a1, *((_DWORD *)v181 - 1));
if ( (unsigned int)cocos2d::CCArray::count(Group) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v191, (const cocos2d::CCPoint *)&dword_155C6A8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v193, (const cocos2d::CCPoint *)&dword_155C6A8);
v134 = *((_QWORD *)v181 + 1);
v215 = *(void **)v181;
v216 = v134;
v135 = *(void **)v181;
v136 = *((_QWORD *)v181 + 1);
HIDWORD(v216) = 1022739087;
v220 = v135;
v221 = (unsigned int)v136 | 0x3E19999A00000000LL;
if ( Group
&& (v137 = *((unsigned int **)Group + 7), *v137)
&& (v138 = *((_QWORD **)v137 + 2),
v139 = 8LL * *v137 - 8,
v140 = (char *)v138 + v139,
v138 <= (_QWORD *)((char *)v138 + v139)) )
{
v141 = (_DWORD *)*v138;
if ( *v138 )
{
v142 = (_DWORD *)*v138;
v141 = nullptr;
do
{
if ( v142[312] == 1 )
{
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v142 + 1360LL))(v142);
if ( *(float *)&v202 < *(float *)&v191 || *(float *)&v191 == 0.0 )
{
v141 = v142;
LODWORD(v191) = (_DWORD)v202;
}
if ( *((float *)&v202 + 1) < *((float *)&v191 + 1) || *((float *)&v191 + 1) == 0.0 )
HIDWORD(v191) = HIDWORD(v202);
if ( *(float *)&v202 > v193 || v193 == 0.0 )
v193 = *(float *)&v202;
if ( *((float *)&v202 + 1) > v194 || v194 == 0.0 )
v194 = *((float *)&v202 + 1);
}
if ( v140 < (char *)++v138 )
break;
v142 = (_DWORD *)*v138;
}
while ( *v138 );
}
}
else
{
v141 = nullptr;
}
if ( *(float *)&v191 != v193 || *((float *)&v191 + 1) != v194 )
{
*(_QWORD *)std::unordered_map::operator[]((__int64)&v205, v179) = v141;
*(float *)&v191 = *(float *)&v191 - 30.0;
*((float *)&v191 + 1) = *((float *)&v191 + 1) - 30.0;
v193 = v193 + 30.0;
v194 = v194 + 30.0;
cocos2d::CCDrawNode::drawRect(a4, &v191, &v193, &v215, &v220, 2, 1.5);
}
}
}
goto LABEL_6;
}
if ( v6 == 3 )
break;
LABEL_6:
v181 += 12;
v178 += 12;
v179 += 12;
if ( v172 == v178 )
goto LABEL_11;
}
v36 = traceColorForIndex(v173);
v196 = 0.4;
++v173;
v193 = (float)(unsigned __int8)v36 / 255.0;
v194 = (float)BYTE1(v36) / 255.0;
v195 = (float)BYTE2(v36) / 255.0;
(*(void (__fastcall **)(__int64 *__return_ptr, _QWORD))(**(_QWORD **)(v181 - 5) + 1360LL))(
&v188,
*(_QWORD *)(v181 - 5));
v37 = (cocos2d::CCArray *)GJBaseGameLayer::getGroup((GJBaseGameLayer *)a1, *((_DWORD *)v181 - 1));
v38 = std::unordered_map::operator[]((__int64)(a1 + 1877), v179);
v40 = *((_DWORD *)v181 - 1);
v41 = v211;
v186 = v38;
v42 = v40;
if ( v211 )
{
v43 = (v211 - 1) & v211;
v44 = v40 & (v211 - 1);
if ( v43 )
v44 = v40 % v211;
v45 = *((__int64 ***)v210 + v44);
if ( v45 )
{
v46 = *v45;
if ( *v45 )
{
v47 = v46[1];
if ( !v43 )
{
LABEL_43:
v48 = (v211 - 1) & v47;
goto LABEL_44;
}
while ( 1 )
{
v48 = v47 % v211;
LABEL_44:
if ( v44 != v48 )
break;
if ( v40 == *((_DWORD *)v46 + 4) )
goto LABEL_151;
v46 = (__int64 *)*v46;
if ( !v46 )
break;
v47 = v46[1];
if ( !v43 )
goto LABEL_43;
}
}
}
}
else
{
v44 = 0;
}
std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash(
(__int64)&v210,
v40,
v179,
(__int64)&v220);
v49 = (float)(unsigned __int64)(v213 + 1);
if ( v49 > (float)((float)v41 * v214) )
{
v50 = 1;
v51 = 2 * v41;
if ( v41 > 2 )
v50 = ((v41 - 1) & v41) != 0;
LABEL_48:
v52 = v50 + v51;
v53 = vcvtps_u32_f32(v49 / v214);
if ( v53 < v52 )
v53 = v52;
std::__hash_table,std::equal_to,std::allocator>::rehash((unsigned __int64)&v210, v53);
v41 = v211;
if ( ((v41 - 1) & v41) != 0 )
v44 = v42 % v211;
else
v44 = v42 & (v211 - 1);
}
else if ( !v41 )
{
v50 = 1;
v51 = 0;
goto LABEL_48;
}
v54 = *((void ***)v210 + v44);
if ( v54 )
{
*(_QWORD *)v220 = *v54;
*v54 = v220;
}
else
{
*(_QWORD *)v220 = v212;
v212 = v220;
*((_QWORD *)v210 + v44) = &v212;
if ( *(_QWORD *)v220 )
{
v123 = *(_QWORD *)(*(_QWORD *)v220 + 8LL);
if ( ((v41 - 1) & v41) != 0 )
v124 = v123 % v41;
else
v124 = (v41 - 1) & v123;
*((_QWORD *)v210 + v124) = v220;
}
}
++v213;
if ( v37
&& (v55 = *((unsigned int **)v37 + 7), *v55)
&& (v125 = *((char **)v55 + 2), v126 = 8LL * *v55 - 8, v127 = &v125[v126], v125 <= &v125[v126]) )
{
v128 = *(_QWORD *)v125;
for ( i = 0xCBF29CE484222325LL; *(_QWORD *)v125; v128 = *(_QWORD *)v125 )
{
v129 = (unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v128 + 1328LL))(v128);
v130 = v129[1];
v131 = v129[2];
v132 = v129[3];
v198 = *v129;
v199 = v130;
v200 = v131;
v125 += 8;
v201 = v132;
i = 0x100000001B3LL
* ((0x100000001B3LL * ((0x100000001B3LL * ((0x100000001B3LL * (i ^ v198)) ^ v130)) ^ v131)) ^ v132);
if ( v127 < v125 )
break;
}
}
else
{
i = 0xCBF29CE484222325LL;
}
if ( *(_QWORD *)v186 != i )
{
*(_QWORD *)v186 = i;
v187 = (cocos2d::CCPoint **)(v186 + 8);
v57 = *(_QWORD *)(v186 + 8);
v58 = *(_QWORD *)(v186 + 16);
if ( v57 != v58 )
*(_QWORD *)(v186 + 16) = v58 + 8 * ~((unsigned __int64)(v58 - 8 - v57) >> 3);
v59 = *(_QWORD *)(v186 + 32);
v60 = *(_QWORD *)(v186 + 40);
if ( v59 != v60 )
*(_QWORD *)(v186 + 40) = v60 + 8 * ~((unsigned __int64)(v60 - 8 - v59) >> 3);
v215 = nullptr;
v216 = 0;
v217 = nullptr;
v218 = 0;
v219 = 1.0;
v61 = cocos2d::CCArray::count(v37);
std::__hash_table,std::equal_to,std::allocator>::rehash(
(unsigned __int64)&v215,
vcvtps_u32_f32((float)(unsigned int)(8 * v61) / v219));
if ( v37 )
{
v62 = *((unsigned int **)v37 + 7);
if ( *v62 )
{
v176 = *((__int64 **)v62 + 2);
v174 = &v176[*v62 - 1];
if ( v176 <= v174 )
{
v63 = *v176;
if ( *v176 )
{
while ( 1 )
{
v64 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v63 + 1328LL))(v63);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v220, v64);
*(float *)&v220 = *(float *)&v220 - 3.0;
*((float *)&v220 + 1) = *((float *)&v220 + 1) - 3.0;
*(float *)&v221 = *(float *)&v221 + 6.0;
*((float *)&v221 + 1) = *((float *)&v221 + 1) + 6.0;
cocos2d::CCRect::getMinX((cocos2d::CCRect *)&v220);
v66 = vcvtms_s32_f32((float)(v65 + 0.001) / 15.0);
cocos2d::CCRect::getMinY((cocos2d::CCRect *)&v220);
v184 = vcvtms_s32_f32((float)(v67 + 0.001) / 15.0);
cocos2d::CCRect::getMaxX((cocos2d::CCRect *)&v220);
v69 = vcvtms_s32_f32((float)(v68 - 0.001) / 15.0);
cocos2d::CCRect::getMaxY((cocos2d::CCRect *)&v220);
v182 = vcvtms_s32_f32((float)(v70 - 0.001) / 15.0);
if ( (int)v184 <= v182 )
break;
LABEL_90:
v85 = v176 + 1;
v176 = v85;
if ( v174 >= v85 )
{
v63 = *v85;
if ( v63 )
continue;
}
goto LABEL_92;
}
while ( v66 > v69 )
{
LABEL_89:
if ( v182 < (int)++v184 )
goto LABEL_90;
}
v71 = 0;
LABEL_80:
while ( 2 )
{
v79 = v216;
v82 = v184 | (unsigned __int64)((v71 + v66) << 32);
if ( v216 )
{
v80 = v82 & (v216 - 1);
if ( ((v216 - 1) & v216) != 0 )
v80 = v82 % v216;
v83 = *((_QWORD **)v215 + v80);
if ( v83 )
{
while ( 1 )
{
v83 = (_QWORD *)*v83;
if ( !v83 )
break;
v84 = v83[1];
if ( ((v216 - 1) & v216) != 0 )
{
if ( v80 != v84 % v216 )
break;
}
else if ( v80 != ((v216 - 1) & v84) )
{
break;
}
if ( v82 == v83[2] )
{
if ( v69 >= v66 + (int)++v71 )
goto LABEL_80;
goto LABEL_89;
}
}
}
}
else
{
v80 = 0;
}
v72 = (_QWORD *)operator new(0x18u);
v72[2] = v82;
v73 = v72;
v72[1] = v82;
*v72 = 0;
v74 = (float)(v218 + 1);
if ( v74 > (float)((float)v79 * v219) )
{
v75 = 1;
v76 = 2 * v79;
if ( v79 > 2 )
v75 = ((v79 - 1) & v79) != 0;
LABEL_73:
v77 = v75 + v76;
v78 = vcvtps_u32_f32(v74 / v219);
if ( v78 < v77 )
v78 = v77;
std::__hash_table,std::equal_to,std::allocator>::rehash(
(unsigned __int64)&v215,
v78);
v79 = v216;
if ( ((v79 - 1) & v79) == 0 )
{
v80 = v82 & (v216 - 1);
goto LABEL_77;
}
v80 = v82 % v216;
v81 = *((_QWORD **)v215 + v82 % v216);
if ( !v81 )
goto LABEL_130;
LABEL_78:
*(_QWORD *)v73 = *v81;
*v81 = v73;
}
else
{
if ( !v79 )
{
v75 = 1;
v76 = 0;
goto LABEL_73;
}
LABEL_77:
v81 = *((_QWORD **)v215 + v80);
if ( v81 )
goto LABEL_78;
LABEL_130:
*(_QWORD *)v73 = v217;
v217 = v73;
*((_QWORD *)v215 + v80) = &v217;
if ( *(_QWORD *)v73 )
{
v110 = *(_QWORD *)(*(_QWORD *)v73 + 8LL);
if ( ((v79 - 1) & v79) != 0 )
v111 = v110 % v79;
else
v111 = (v79 - 1) & v110;
*((_QWORD *)v215 + v111) = v73;
}
}
++v71;
++v218;
if ( v69 < v66 + (int)v71 )
goto LABEL_89;
continue;
}
}
}
}
}
LABEL_92:
v220 = nullptr;
v221 = 0;
v222 = nullptr;
v223 = 0;
v224 = 1.0;
std::__hash_table,std::equal_to,std::allocator>::rehash(
(unsigned __int64)&v220,
vcvtps_u32_f32((float)v218));
v177 = v217;
if ( v217 )
{
while ( 2 )
{
v189 = v177[2];
if ( !std::__hash_table,std::equal_to,std::allocator>::find(
&v220,
&v189) )
{
v202 = nullptr;
v203 = nullptr;
v204 = nullptr;
std::vector::__push_back_slow_path((__int64)&v202, &v189);
v86 = v221;
v87 = v189;
if ( v221 )
{
v88 = (v221 - 1) & v221;
v89 = (v221 - 1) & v189;
if ( v88 )
v89 = v189 % v221;
v90 = *((_QWORD **)v220 + v89);
if ( v90 )
{
v91 = (_QWORD *)*v90;
if ( *v90 )
{
v92 = v91[1];
if ( !v88 )
{
LABEL_102:
v93 = (v221 - 1) & v92;
goto LABEL_103;
}
while ( 1 )
{
v93 = v92 % v221;
LABEL_103:
if ( v89 != v93 )
break;
if ( v189 == v91[2] )
goto LABEL_114;
v91 = (_QWORD *)*v91;
if ( !v91 )
break;
v92 = v91[1];
if ( !v88 )
goto LABEL_102;
}
}
}
}
else
{
v89 = 0;
}
v94 = (void **)operator new(0x18u);
v94[2] = (void *)v189;
v94[1] = (void *)v87;
*v94 = nullptr;
v95 = (float)(unsigned __int64)(v223 + 1);
if ( v95 > (float)((float)v86 * v224) )
{
v96 = 1;
v97 = 2 * v86;
if ( v86 > 2 )
v96 = ((v86 - 1) & v86) != 0;
LABEL_107:
v98 = v96 + v97;
v99 = vcvtps_u32_f32(v95 / v224);
if ( v99 < v98 )
v99 = v98;
std::__hash_table,std::equal_to,std::allocator>::rehash(
(unsigned __int64)&v220,
v99);
v86 = v221;
if ( ((v86 - 1) & v86) != 0 )
v89 = v87 % v221;
else
v89 = (v221 - 1) & v87;
}
else if ( !v86 )
{
v96 = 1;
v97 = 0;
goto LABEL_107;
}
v100 = *((void ***)v220 + v89);
if ( v100 )
{
*v94 = *v100;
*v100 = v94;
}
else
{
*v94 = v222;
v222 = v94;
*((_QWORD *)v220 + v89) = &v222;
if ( *v94 )
{
v170 = *((_QWORD *)*v94 + 1);
if ( ((v86 - 1) & v86) != 0 )
v171 = v170 % v86;
else
v171 = (v86 - 1) & v170;
*((_QWORD *)v220 + v171) = v94;
}
}
++v223;
LABEL_114:
v101 = v203;
if ( v203 != v202 )
{
v102 = 0.0;
v183 = 0;
v103 = 0.0;
while ( 1 )
{
++v183;
v104 = *((_QWORD *)v101 - 1);
v203 = v101 - 8;
v185 = v104;
v105 = (float)(int)v104 * 15.0;
v191 = (unsigned int)v104 | ((unsigned __int64)(unsigned int)(HIDWORD(v104) - 1) << 32);
v106 = (float)SHIDWORD(v104) * 15.0;
v103 = v103 + (double)SHIDWORD(v104);
v102 = v102 + (double)(int)v104;
if ( !std::__hash_table,std::equal_to,std::allocator>::find(
&v215,
&v191) )
{
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v191,
(float)SHIDWORD(v104) * 15.0,
(float)(int)v104 * 15.0);
v165 = *(cocos2d::CCPoint **)(v186 + 16);
if ( (unsigned __int64)v165 >= *(_QWORD *)(v186 + 24) )
{
std::vector::__push_back_slow_path(
v187,
(const cocos2d::CCPoint *)&v191);
}
else
{
if ( v165 )
{
cocos2d::CCPoint::CCPoint(v165, (const cocos2d::CCPoint *)&v191);
v165 = *(cocos2d::CCPoint **)(v186 + 16);
}
*(_QWORD *)(v186 + 16) = (char *)v165 + 8;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v191, (float)SHIDWORD(v104) * 15.0, v105 + 15.0);
v166 = *(cocos2d::CCPoint **)(v186 + 16);
if ( (unsigned __int64)v166 >= *(_QWORD *)(v186 + 24) )
{
std::vector::__push_back_slow_path(
v187,
(const cocos2d::CCPoint *)&v191);
}
else
{
if ( v166 )
{
cocos2d::CCPoint::CCPoint(v166, (const cocos2d::CCPoint *)&v191);
v166 = *(cocos2d::CCPoint **)(v186 + 16);
}
*(_QWORD *)(v186 + 16) = (char *)v166 + 8;
}
}
v191 = (unsigned int)v104 | ((unsigned __int64)(unsigned int)(HIDWORD(v104) + 1) << 32);
if ( !std::__hash_table,std::equal_to,std::allocator>::find(
&v215,
&v191) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v191, v106 + 15.0, (float)(int)v104 * 15.0);
v163 = *(cocos2d::CCPoint **)(v186 + 16);
if ( (unsigned __int64)v163 >= *(_QWORD *)(v186 + 24) )
{
std::vector::__push_back_slow_path(
v187,
(const cocos2d::CCPoint *)&v191);
}
else
{
if ( v163 )
{
cocos2d::CCPoint::CCPoint(v163, (const cocos2d::CCPoint *)&v191);
v163 = *(cocos2d::CCPoint **)(v186 + 16);
}
*(_QWORD *)(v186 + 16) = (char *)v163 + 8;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v191, v106 + 15.0, v105 + 15.0);
v164 = *(cocos2d::CCPoint **)(v186 + 16);
if ( (unsigned __int64)v164 >= *(_QWORD *)(v186 + 24) )
{
std::vector::__push_back_slow_path(
v187,
(const cocos2d::CCPoint *)&v191);
}
else
{
if ( v164 )
{
cocos2d::CCPoint::CCPoint(v164, (const cocos2d::CCPoint *)&v191);
v164 = *(cocos2d::CCPoint **)(v186 + 16);
}
*(_QWORD *)(v186 + 16) = (char *)v164 + 8;
}
}
v107 = v104 >> 32 << 32;
v191 = (unsigned int)(v104 - 1) ^ (unsigned __int64)v107;
if ( !std::__hash_table,std::equal_to,std::allocator>::find(
&v215,
&v191) )
{
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v191,
(float)SHIDWORD(v104) * 15.0,
(float)(int)v104 * 15.0);
v161 = *(cocos2d::CCPoint **)(v186 + 16);
if ( (unsigned __int64)v161 >= *(_QWORD *)(v186 + 24) )
{
std::vector::__push_back_slow_path(
v187,
(const cocos2d::CCPoint *)&v191);
}
else
{
if ( v161 )
{
cocos2d::CCPoint::CCPoint(v161, (const cocos2d::CCPoint *)&v191);
v161 = *(cocos2d::CCPoint **)(v186 + 16);
}
*(_QWORD *)(v186 + 16) = (char *)v161 + 8;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v191, v106 + 15.0, (float)(int)v104 * 15.0);
v162 = *(cocos2d::CCPoint **)(v186 + 16);
if ( (unsigned __int64)v162 >= *(_QWORD *)(v186 + 24) )
{
std::vector::__push_back_slow_path(
v187,
(const cocos2d::CCPoint *)&v191);
}
else
{
if ( v162 )
{
cocos2d::CCPoint::CCPoint(v162, (const cocos2d::CCPoint *)&v191);
v162 = *(cocos2d::CCPoint **)(v186 + 16);
}
*(_QWORD *)(v186 + 16) = (char *)v162 + 8;
}
}
v191 = (unsigned int)(v104 + 1) ^ (unsigned __int64)v107;
if ( !std::__hash_table,std::equal_to,std::allocator>::find(
&v215,
&v191) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v191, (float)SHIDWORD(v104) * 15.0, v105 + 15.0);
v159 = *(cocos2d::CCPoint **)(v186 + 16);
if ( (unsigned __int64)v159 >= *(_QWORD *)(v186 + 24) )
{
std::vector::__push_back_slow_path(
v187,
(const cocos2d::CCPoint *)&v191);
}
else
{
if ( v159 )
{
cocos2d::CCPoint::CCPoint(v159, (const cocos2d::CCPoint *)&v191);
v159 = *(cocos2d::CCPoint **)(v186 + 16);
}
*(_QWORD *)(v186 + 16) = (char *)v159 + 8;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v191, v106 + 15.0, v105 + 15.0);
v160 = *(cocos2d::CCPoint **)(v186 + 16);
if ( (unsigned __int64)v160 >= *(_QWORD *)(v186 + 24) )
{
std::vector::__push_back_slow_path(
v187,
(const cocos2d::CCPoint *)&v191);
}
else
{
if ( v160 )
{
cocos2d::CCPoint::CCPoint(v160, (const cocos2d::CCPoint *)&v191);
v160 = *(cocos2d::CCPoint **)(v186 + 16);
}
*(_QWORD *)(v186 + 16) = (char *)v160 + 8;
}
}
v197[0] = -1;
v197[1] = 1;
v108 = 0;
v197[2] = 0;
v197[3] = 0;
v200 = -1;
v198 = 0;
v199 = 0;
v201 = 1;
do
{
v190 = ((unsigned int)v185 + *(unsigned int *)((char *)&v198 + v108 * 4))
| ((unsigned __int64)(unsigned int)(HIDWORD(v185) + v197[v108]) << 32);
v191 = v190;
if ( !std::__hash_table,std::equal_to,std::allocator>::find(
&v215,
&v191)
|| std::__hash_table,std::equal_to,std::allocator>::find(
&v220,
&v190) )
{
goto LABEL_123;
}
v143 = v221;
v144 = 0;
v145 = v190;
if ( v221 )
{
v144 = (v221 - 1) & v190;
if ( ((v221 - 1) & v221) != 0 )
v144 = v190 % v221;
v146 = *((_QWORD **)v220 + v144);
if ( v146 )
{
while ( 1 )
{
v146 = (_QWORD *)*v146;
if ( !v146 )
break;
v147 = v146[1];
v148 = ((v221 - 1) & v221) != 0 ? v147 % v221 : (v221 - 1) & v147;
if ( v144 != v148 )
break;
if ( v190 == v146[2] )
{
v156 = v203;
if ( v203 != v204 )
goto LABEL_211;
goto LABEL_216;
}
}
}
}
v149 = (void **)operator new(0x18u);
v149[2] = (void *)v190;
v149[1] = (void *)v145;
*v149 = nullptr;
v150 = (float)(unsigned __int64)(v223 + 1);
if ( v150 > (float)((float)v143 * v224) )
{
v151 = 1;
v152 = 2 * v143;
if ( v143 > 2 )
v151 = ((v143 - 1) & v143) != 0;
}
else
{
if ( v143 )
goto LABEL_208;
v151 = 1;
v152 = 0;
}
v153 = v151 + v152;
v154 = vcvtps_u32_f32(v150 / v224);
if ( v154 < v153 )
v154 = v153;
std::__hash_table,std::equal_to,std::allocator>::rehash(
(unsigned __int64)&v220,
v154);
v143 = v221;
if ( ((v143 - 1) & v143) == 0 )
{
v144 = (v221 - 1) & v145;
LABEL_208:
v155 = *((void ***)v220 + v144);
if ( v155 )
goto LABEL_209;
goto LABEL_221;
}
v144 = v145 % v221;
v155 = *((void ***)v220 + v145 % v221);
if ( v155 )
{
LABEL_209:
*v149 = *v155;
*v155 = v149;
goto LABEL_210;
}
LABEL_221:
*v149 = v222;
v222 = v149;
*((_QWORD *)v220 + v144) = &v222;
if ( *v149 )
{
v157 = *((_QWORD *)*v149 + 1);
if ( ((v143 - 1) & v143) != 0 )
v158 = v157 % v143;
else
v158 = (v143 - 1) & v157;
*((_QWORD *)v220 + v158) = v149;
}
LABEL_210:
++v223;
v156 = v203;
if ( v203 == v204 )
{
LABEL_216:
std::vector::__push_back_slow_path((__int64)&v202, &v190);
}
else
{
LABEL_211:
if ( v156 )
{
*(_QWORD *)v156 = v190;
v156 = v203;
}
v203 = v156 + 8;
}
LABEL_123:
++v108;
}
while ( v108 != 4 );
v101 = v203;
if ( v203 == v202 )
{
v109 = (double)v183;
goto LABEL_269;
}
}
}
v109 = 0.0;
v102 = 0.0;
v103 = 0.0;
LABEL_269:
v167 = v102 / v109;
v168 = v103 / v109;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v191, (float)(v168 + 0.5) * 15.0, (float)(v167 + 0.5) * 15.0);
v169 = *(cocos2d::CCPoint **)(v186 + 40);
if ( (unsigned __int64)v169 >= *(_QWORD *)(v186 + 48) )
{
std::vector::__push_back_slow_path(
(cocos2d::CCPoint **)(v186 + 32),
(const cocos2d::CCPoint *)&v191);
}
else
{
if ( v169 )
{
cocos2d::CCPoint::CCPoint(v169, (const cocos2d::CCPoint *)&v191);
v169 = *(cocos2d::CCPoint **)(v186 + 40);
}
*(_QWORD *)(v186 + 40) = (char *)v169 + 8;
}
if ( v202 )
{
if ( v202 != v203 )
v203 += 8 * ~((unsigned __int64)(v203 - 8 - (_BYTE *)v202) >> 3);
operator delete(v202);
}
}
v177 = (_QWORD *)*v177;
if ( !v177 )
break;
continue;
}
}
v112 = v222;
if ( v222 )
{
do
{
v113 = (_QWORD *)*v112;
operator delete(v112);
v112 = v113;
}
while ( v113 );
}
v114 = v220;
v220 = nullptr;
if ( v114 )
operator delete(v114);
v115 = v217;
if ( v217 )
{
do
{
v116 = (_QWORD *)*v115;
operator delete(v115);
v115 = v116;
}
while ( v116 );
}
v117 = v215;
v215 = nullptr;
if ( v117 )
operator delete(v117);
}
cocos2d::CCDrawNode::enableDrawArea(a1[1727], (cocos2d::CCRect *)v192);
v118 = *(_QWORD *)(v186 + 8);
if ( (unsigned __int64)(*(_QWORD *)(v186 + 16) - v118) > 0xF )
{
v119 = 0;
v120 = 1;
do
{
cocos2d::CCDrawNode::drawSegmentEx(a4, (cocos2d::CCPoint *)(v118 + v119), (cocos2d::CCPoint *)(v118 + 8 * v120));
v120 += 2LL;
v119 += 16;
v118 = *(_QWORD *)(v186 + 8);
}
while ( v120 < (*(_QWORD *)(v186 + 16) - v118) >> 3 );
}
cocos2d::CCDrawNode::disableDrawArea(a1[1727]);
LABEL_151:
v121 = 0;
v122 = *(_QWORD *)(v186 + 32);
if ( (*(_QWORD *)(v186 + 40) - v122) >> 3 )
{
do
{
LODWORD(v39) = 6.0;
drawArrow((__int64)a4, (float *)&v188, (float *)(v122 + 8 * v121++), v39, v193, v194, v195, v196);
v122 = *(_QWORD *)(v186 + 32);
}
while ( v121 < (*(_QWORD *)(v186 + 40) - v122) >> 3 );
}
goto LABEL_6;
}
LABEL_11:
v12 = v212;
if ( v212 )
{
do
{
v13 = (_QWORD *)*v12;
operator delete(v12);
v12 = v13;
}
while ( v13 );
}
v14 = v210;
v210 = nullptr;
if ( v14 )
operator delete(v14);
v15 = v207;
if ( v207 )
{
do
{
v16 = (_QWORD *)*v15;
operator delete(v15);
v15 = v16;
}
while ( v16 );
}
v17 = v205;
v205 = nullptr;
if ( v17 )
operator delete(v17);
return _stack_chk_guard;
}