//
// GJBaseGameLayer::prepareSavePositionObjects from 0x9f1cd0 to 0x9f3c48 (8056 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::updateSpecialGroupData @ 0x9f3c78
// > ??> @ 0x69418
//
// 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:59:12 +0000
//
__int64 __fastcall GJBaseGameLayer::prepareSavePositionObjects(GJBaseGameLayer *this)
{
_QWORD *v1; // x0
_QWORD *v2; // x19
__int64 v3; // x0
__int64 v4; // x1
__int64 v5; // x2
__int64 v6; // x1
__int64 v7; // x1
__int64 v8; // x1
__int64 v9; // x0
unsigned int *v10; // x1
_DWORD **v11; // x19
__int64 v12; // x0
char *v13; // x20
_DWORD *i; // x0
int v15; // w1
int *v16; // x22
float v17; // s2
float v18; // s0
_BOOL8 v19; // x2
__int64 v20; // x0
unsigned __int64 v21; // x2
unsigned __int64 v22; // x1
unsigned __int64 v23; // x19
unsigned __int64 v24; // x20
_QWORD *v25; // x1
_QWORD *v26; // x0
_QWORD *v27; // x0
int v28; // w3
unsigned __int64 v29; // x21
unsigned __int64 v30; // x19
unsigned __int64 v31; // x23
unsigned __int64 v32; // x20
__int64 *v33; // x0
unsigned __int64 v34; // x1
unsigned __int64 v35; // x1
float v36; // s2
float v37; // s0
_BOOL8 v38; // x2
__int64 v39; // x0
unsigned __int64 v40; // x2
unsigned __int64 v41; // x1
char *v42; // x1
char **v43; // x0
_QWORD *v44; // x0
int v45; // w3
unsigned __int64 v46; // x21
unsigned __int64 v47; // x23
__int64 *v48; // x0
unsigned __int64 v49; // x1
_DWORD *v50; // x19
char *v51; // x1
char *v52; // x0
char *v53; // x2
int *v54; // x23
int v55; // w3
unsigned __int64 v56; // x19
unsigned __int64 v57; // x21
unsigned __int64 v58; // x20
__int64 *v59; // x0
unsigned __int64 v60; // x1
unsigned __int64 v61; // x1
float v62; // s0
_BOOL8 v63; // x2
__int64 v64; // x0
unsigned __int64 v65; // x2
unsigned __int64 v66; // x1
_QWORD *v67; // x0
char *v68; // x0
unsigned __int64 v69; // x19
char *v70; // x26
float v71; // s2
float v72; // s0
_BOOL8 v73; // x2
__int64 v74; // x0
unsigned __int64 v75; // x2
unsigned __int64 v76; // x1
unsigned __int64 v77; // x20
unsigned __int64 v78; // x21
_QWORD *v79; // x1
_QWORD *v80; // x0
int v81; // w3
unsigned __int64 v82; // x20
unsigned __int64 v83; // x27
unsigned __int64 v84; // x21
__int64 *v85; // x0
unsigned __int64 v86; // x1
unsigned __int64 v87; // x1
float v88; // s2
float v89; // s0
_BOOL8 v90; // x2
__int64 v91; // x0
unsigned __int64 v92; // x2
unsigned __int64 v93; // x1
_QWORD *v94; // x0
int v95; // w3
unsigned __int64 v96; // x20
unsigned __int64 v97; // x27
unsigned __int64 v98; // x21
__int64 *v99; // x0
unsigned __int64 v100; // x1
unsigned __int64 v101; // x1
float v102; // s2
float v103; // s0
_BOOL8 v104; // x2
__int64 v105; // x0
unsigned __int64 v106; // x2
unsigned __int64 v107; // x1
void **v108; // x0
int v109; // w3
unsigned __int64 v110; // x27
__int64 *v111; // x0
unsigned __int64 v112; // x1
__int64 v113; // x1
unsigned __int64 v114; // x2
unsigned __int64 v115; // x0
__int64 v116; // x1
unsigned __int64 v117; // x2
unsigned __int64 v118; // x0
__int64 *v119; // x1
__int64 *v120; // x28
unsigned __int64 v121; // x21
char *v122; // x27
__int64 v123; // x22
float v124; // s2
float v125; // s0
_BOOL8 v126; // x2
__int64 v127; // x0
unsigned __int64 v128; // x2
unsigned __int64 v129; // x1
unsigned __int64 v130; // x19
unsigned __int64 v131; // x20
_QWORD *v132; // x0
int AdvancedFollowID; // w0
unsigned __int64 v134; // x23
__int64 *v135; // x1
unsigned __int64 v136; // x2
unsigned __int64 v137; // x1
unsigned __int64 v138; // x19
__int64 *j; // x22
float v140; // s0
_BOOL8 v141; // x2
__int64 v142; // x0
unsigned __int64 v143; // x2
unsigned __int64 v144; // x1
unsigned __int64 v145; // x19
__int64 v146; // x20
_QWORD *v147; // x0
_DWORD *v148; // x19
int v149; // w20
int v150; // w3
unsigned __int64 v151; // x23
__int64 *v152; // x0
unsigned __int64 v153; // x1
char *v154; // x0
char *v155; // x22
_DWORD *v156; // x1
_DWORD *v157; // x25
char *v158; // x22
unsigned __int64 v159; // x2
unsigned __int64 v160; // x0
char *v161; // x0
__int64 v162; // x1
unsigned __int64 v163; // x2
unsigned __int64 v164; // x0
__int64 v165; // x1
unsigned __int64 v166; // x2
unsigned __int64 v167; // x0
unsigned __int64 v168; // x2
unsigned __int64 v169; // x0
unsigned __int64 v170; // x1
unsigned __int64 v171; // x19
unsigned __int64 v172; // x28
int v173; // w24
__int64 *v174; // x19
_DWORD *v175; // x21
int v176; // w3
unsigned __int64 v177; // x21
unsigned __int64 v178; // x26
unsigned __int64 v179; // x23
__int64 *v180; // x0
unsigned __int64 v181; // x1
unsigned __int64 v182; // x1
float v183; // s0
_BOOL8 v184; // x2
__int64 v185; // x0
unsigned __int64 v186; // x2
unsigned __int64 v187; // x1
__int64 *v188; // x0
char *v189; // x0
_DWORD *v190; // x19
int v191; // w1
int v192; // w20
__int64 MainObject; // x0
int v194; // w19
__int64 *v195; // x21
int v196; // w0
int v197; // w23
unsigned __int64 v198; // x1
unsigned __int64 v199; // x6
unsigned __int64 v200; // x5
__int64 **v201; // x2
__int64 *k; // x4
unsigned __int64 v203; // x2
unsigned __int64 v204; // x1
unsigned __int64 v205; // x21
_DWORD *v206; // x22
__int64 *v207; // x19
__int64 *v208; // x3
unsigned __int64 v209; // x0
unsigned __int64 v210; // x5
unsigned __int64 v211; // x7
__int64 v212; // x8
unsigned __int64 v213; // x5
__int64 v214; // x9
char *m; // x4
unsigned __int64 v216; // x1
unsigned __int64 v217; // x1
__int64 v218; // x6
unsigned __int64 v219; // x1
__int64 v220; // x1
__int64 v221; // x1
unsigned __int64 v222; // x2
_QWORD **v223; // x19
_QWORD *v224; // x0
_QWORD *v225; // x19
void *v226; // x0
_QWORD *v227; // x0
_QWORD *v228; // x19
void *v229; // x0
void *v230; // x0
_QWORD *v231; // x0
_QWORD *v232; // x19
void *v233; // x0
char *v234; // x20
char *v235; // x19
_QWORD *v236; // x0
_QWORD *v237; // x22
void *v238; // x0
_QWORD *v239; // x0
_QWORD *v240; // x22
void *v241; // x0
_QWORD *v242; // x0
_QWORD *v243; // x22
void *v244; // x0
char *v246; // x2
char *v247; // [xsp+80h] [xbp+80h]
__int64 v248; // [xsp+88h] [xbp+88h]
_QWORD *v249; // [xsp+90h] [xbp+90h]
__int64 *v250; // [xsp+98h] [xbp+98h]
_QWORD *v252; // [xsp+D0h] [xbp+D0h]
_QWORD *v253; // [xsp+D8h] [xbp+D8h]
__int64 *v254; // [xsp+D8h] [xbp+D8h]
float32x4_t *v255; // [xsp+D8h] [xbp+D8h]
char *v256; // [xsp+E0h] [xbp+E0h] BYREF
char *v257; // [xsp+E8h] [xbp+E8h]
__int64 v258; // [xsp+F0h] [xbp+F0h]
__int64 *v259; // [xsp+F8h] [xbp+F8h] BYREF
__int64 *v260; // [xsp+100h] [xbp+100h]
unsigned __int64 v261; // [xsp+108h] [xbp+108h]
_QWORD *v262; // [xsp+110h] [xbp+110h] BYREF
char *v263; // [xsp+128h] [xbp+128h] BYREF
char *v264; // [xsp+130h] [xbp+130h]
char *v265; // [xsp+138h] [xbp+138h]
void *v266; // [xsp+140h] [xbp+140h] BYREF
_QWORD *v267; // [xsp+158h] [xbp+158h] BYREF
int v268[6]; // [xsp+170h] [xbp+170h] BYREF
void *v269[3]; // [xsp+188h] [xbp+188h] BYREF
void **v270; // [xsp+1A0h] [xbp+1A0h] BYREF
_QWORD v271[2]; // [xsp+1A8h] [xbp+1A8h] BYREF
void *v272; // [xsp+1B8h] [xbp+1B8h] BYREF
unsigned __int64 v273; // [xsp+1C0h] [xbp+1C0h]
void *v274; // [xsp+1C8h] [xbp+1C8h] BYREF
__int64 v275; // [xsp+1D0h] [xbp+1D0h]
float v276; // [xsp+1D8h] [xbp+1D8h]
void *v277[2]; // [xsp+1E0h] [xbp+1E0h] BYREF
void *v278; // [xsp+1F0h] [xbp+1F0h]
__int64 v279; // [xsp+1F8h] [xbp+1F8h]
float v280; // [xsp+200h] [xbp+200h]
void *v281; // [xsp+208h] [xbp+208h] BYREF
unsigned __int64 v282; // [xsp+210h] [xbp+210h]
void *v283; // [xsp+218h] [xbp+218h] BYREF
__int64 v284; // [xsp+220h] [xbp+220h]
float v285; // [xsp+228h] [xbp+228h]
void *v286[2]; // [xsp+230h] [xbp+230h] BYREF
void *v287; // [xsp+240h] [xbp+240h]
__int64 v288; // [xsp+248h] [xbp+248h]
float v289; // [xsp+250h] [xbp+250h]
v247 = (char *)this + 12288;
v249 = (_QWORD *)((char *)this + 13192);
if ( *((_QWORD *)this + 1652) )
{
v1 = *((_QWORD **)this + 1651);
if ( v1 )
{
do
{
v2 = (_QWORD *)*v1;
operator delete(v1);
v1 = v2;
}
while ( v2 );
}
v3 = 0;
v4 = *((_QWORD *)this + 1650);
*((_QWORD *)this + 1651) = 0;
if ( v4 )
{
do
*(_QWORD *)(*((_QWORD *)this + 1649) + 8 * v3++) = 0;
while ( v3 != v4 );
}
*((_QWORD *)this + 1652) = 0;
}
v250 = (__int64 *)(v247 + 944);
if ( *((_QWORD *)this + 1657) )
sub_998D78((_QWORD *)v247 + 118);
v5 = *((_QWORD *)this + 139);
v6 = *((_QWORD *)this + 140);
if ( v5 != v6 )
*((_QWORD *)this + 140) = v6 + 4 * ~((unsigned __int64)(v6 - 4 - v5) >> 2);
v7 = *((_QWORD *)this + 407);
*((_DWORD *)this + 286) = -1;
*(_DWORD *)(v7 + 1340) = -1;
v272 = nullptr;
v8 = *((_QWORD *)this + 408);
v256 = nullptr;
v257 = nullptr;
*(_DWORD *)(v8 + 1340) = -1;
v258 = 0;
v9 = *((_QWORD *)this + 410);
v273 = 0;
v274 = nullptr;
v275 = 0;
v259 = nullptr;
v260 = nullptr;
v261 = 0;
v276 = 1.0;
if ( v9 )
{
v10 = *(unsigned int **)(v9 + 56);
if ( *v10 )
{
v11 = *((_DWORD ***)v10 + 2);
v12 = 8LL * *v10 - 8;
v13 = (char *)v11 + v12;
if ( v11 <= (_DWORD **)((char *)v11 + v12) )
{
for ( i = *v11; *v11; i = *v11 )
{
v15 = i[257];
if ( v15 == 3016 )
{
saveAdvFollowSetup((__int64)i, (__int64)&v256, (unsigned __int64)&v272);
}
else if ( v15 == 3661 )
{
v286[0] = i;
v119 = v260;
if ( v261 <= (unsigned __int64)v260 )
{
std::vector
::__push_back_slow_path(
(__int64)&v259,
v286);
}
else
{
if ( v260 )
{
*v260 = (__int64)i;
v119 = v260;
}
v260 = v119 + 1;
}
}
if ( v13 < (char *)++v11 )
break;
}
}
}
}
v277[0] = nullptr;
v277[1] = nullptr;
v253 = *((_QWORD **)this + 261);
v252 = *((_QWORD **)this + 262);
v278 = nullptr;
v279 = 0;
v280 = 1.0;
if ( v253 != v252 )
{
while ( 1 )
{
v16 = (int *)v253[2];
if ( v16 )
break;
LABEL_62:
v253 += 5;
if ( v252 == v253 )
goto LABEL_63;
}
while ( 1 )
{
LABEL_51:
v44 = (_QWORD *)std::unordered_map>::operator[]((unsigned __int64)v277, v16 + 4);
v45 = v16[5];
v46 = (unsigned __int64)v44;
v23 = v44[1];
v47 = v45;
if ( v23 )
{
v24 = (v23 - 1) & v45;
if ( ((v23 - 1) & v23) != 0 )
v24 = v45 % v23;
v48 = *(__int64 **)(*v44 + 8 * v24);
if ( v48 )
{
while ( 1 )
{
v48 = (__int64 *)*v48;
if ( !v48 )
break;
v49 = v48[1];
if ( ((v23 - 1) & v23) != 0 )
{
if ( v24 != v49 % v23 )
break;
}
else if ( v24 != ((v23 - 1) & v49) )
{
break;
}
if ( v45 == *((_DWORD *)v48 + 4) )
goto LABEL_33;
}
}
}
else
{
v24 = 0;
}
std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash(
v46,
v45,
v16 + 5,
(__int64)&v262);
v17 = *(float *)(v46 + 32);
v18 = (float)(unsigned __int64)(*(_QWORD *)(v46 + 24) + 1LL);
if ( v18 > (float)((float)v23 * v17) )
{
v19 = 1;
v20 = 2 * v23;
if ( v23 > 2 )
v19 = ((v23 - 1) & v23) != 0;
}
else
{
if ( v23 )
goto LABEL_30;
v19 = 1;
v20 = 0;
}
v21 = v19 + v20;
v22 = vcvtps_u32_f32(v18 / v17);
if ( v22 < v21 )
v22 = v21;
std::__hash_table,std::equal_to,std::allocator>::rehash(v46, v22);
v23 = *(_QWORD *)(v46 + 8);
if ( ((v23 - 1) & v23) == 0 )
{
v24 = (v23 - 1) & v47;
LABEL_30:
v25 = v262;
v26 = *(_QWORD **)(*(_QWORD *)v46 + 8 * v24);
if ( !v26 )
goto LABEL_169;
goto LABEL_31;
}
v25 = v262;
v24 = v47 % v23;
v26 = *(_QWORD **)(*(_QWORD *)v46 + 8 * (v47 % v23));
if ( !v26 )
{
LABEL_169:
*v25 = *(_QWORD *)(v46 + 16);
v113 = *(_QWORD *)v46;
*(_QWORD *)(v46 + 16) = v262;
*(_QWORD *)(v113 + 8 * v24) = v46 + 16;
if ( *v262 )
{
v114 = *(_QWORD *)(*v262 + 8LL);
if ( ((v23 - 1) & v23) != 0 )
v115 = v114 % v23;
else
v115 = (v23 - 1) & v114;
*(_QWORD *)(*(_QWORD *)v46 + 8 * v115) = v262;
}
goto LABEL_32;
}
LABEL_31:
*v25 = *v26;
*v26 = v262;
LABEL_32:
++*(_QWORD *)(v46 + 24);
LABEL_33:
v27 = (_QWORD *)std::unordered_map>::operator[]((unsigned __int64)v277, v16 + 5);
v28 = v16[4];
v29 = (unsigned __int64)v27;
v30 = v27[1];
v31 = v28;
if ( v30 )
{
v32 = (v30 - 1) & v28;
if ( ((v30 - 1) & v30) != 0 )
v32 = v28 % v30;
v33 = *(__int64 **)(*v27 + 8 * v32);
if ( v33 )
{
while ( 1 )
{
v33 = (__int64 *)*v33;
if ( !v33 )
break;
v34 = v33[1];
v35 = ((v30 - 1) & v30) != 0 ? v34 % v30 : (v30 - 1) & v34;
if ( v32 != v35 )
break;
if ( v28 == *((_DWORD *)v33 + 4) )
{
v16 = *(int **)v16;
if ( v16 )
goto LABEL_51;
goto LABEL_62;
}
}
}
}
else
{
v32 = 0;
}
std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash(
v29,
v28,
v16 + 4,
(__int64)&v263);
v36 = *(float *)(v29 + 32);
v37 = (float)(unsigned __int64)(*(_QWORD *)(v29 + 24) + 1LL);
if ( v37 > (float)((float)v30 * v36) )
{
v38 = 1;
v39 = 2 * v30;
if ( v30 > 2 )
v38 = ((v30 - 1) & v30) != 0;
}
else
{
if ( v30 )
goto LABEL_48;
v38 = 1;
v39 = 0;
}
v40 = v38 + v39;
v41 = vcvtps_u32_f32(v37 / v36);
if ( v41 < v40 )
v41 = v40;
std::__hash_table,std::equal_to,std::allocator>::rehash(v29, v41);
v30 = *(_QWORD *)(v29 + 8);
if ( ((v30 - 1) & v30) == 0 )
{
v32 = (v30 - 1) & v31;
LABEL_48:
v42 = v263;
v43 = *(char ***)(*(_QWORD *)v29 + 8 * v32);
if ( !v43 )
goto LABEL_174;
goto LABEL_49;
}
v42 = v263;
v32 = v31 % v30;
v43 = *(char ***)(*(_QWORD *)v29 + 8 * (v31 % v30));
if ( !v43 )
{
LABEL_174:
*(_QWORD *)v42 = *(_QWORD *)(v29 + 16);
v116 = *(_QWORD *)v29;
*(_QWORD *)(v29 + 16) = v263;
*(_QWORD *)(v116 + 8 * v32) = v29 + 16;
if ( *(_QWORD *)v263 )
{
v117 = *(_QWORD *)(*(_QWORD *)v263 + 8LL);
if ( ((v30 - 1) & v30) != 0 )
v118 = v117 % v30;
else
v118 = (v30 - 1) & v117;
*(_QWORD *)(*(_QWORD *)v29 + 8 * v118) = v263;
}
goto LABEL_50;
}
LABEL_49:
*(_QWORD *)v42 = *v43;
*v43 = v263;
LABEL_50:
++*(_QWORD *)(v29 + 24);
v16 = *(int **)v16;
if ( !v16 )
goto LABEL_62;
}
}
LABEL_63:
v50 = v274;
v263 = nullptr;
v264 = nullptr;
v265 = nullptr;
if ( !v274 )
goto LABEL_186;
v51 = nullptr;
v52 = nullptr;
while ( v51 == v52 )
{
std::vector::__push_back_slow_path((__int64)&v263, v50 + 4);
v50 = *(_DWORD **)v50;
v52 = v264;
if ( !v50 )
goto LABEL_71;
LABEL_68:
v51 = v265;
}
if ( v52 )
{
*(_DWORD *)v52 = v50[4];
v52 = v264;
}
v52 += 4;
v264 = v52;
v50 = *(_DWORD **)v50;
if ( v50 )
goto LABEL_68;
LABEL_71:
v53 = v263;
if ( (v52 - v263) >> 2 )
{
v248 = 0;
while ( 1 )
{
LODWORD(v286[0]) = *(_DWORD *)&v53[4 * v248];
if ( std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find(
v277,
(int *)v286) )
{
v54 = *(int **)(std::unordered_map>::operator[]((unsigned __int64)v277, (int *)v286)
+ 16);
if ( v54 )
break;
}
LABEL_185:
v53 = v263;
if ( ++v248 >= (unsigned __int64)((v264 - v263) >> 2) )
goto LABEL_186;
}
while ( 2 )
{
if ( std::__hash_table,std::equal_to,std::allocator>::find(&v272, v54 + 4) )
goto LABEL_76;
v55 = v54[4];
v56 = v273;
v57 = v55;
if ( v273 )
{
v58 = v55 & (v273 - 1);
if ( ((v273 - 1) & v273) != 0 )
v58 = v55 % v273;
v59 = *((__int64 **)v272 + v58);
if ( v59 )
{
while ( 1 )
{
v59 = (__int64 *)*v59;
if ( !v59 )
break;
v60 = v59[1];
v61 = ((v273 - 1) & v273) != 0 ? v60 % v273 : (v273 - 1) & v60;
if ( v58 != v61 )
break;
if ( v55 == *((_DWORD *)v59 + 4) )
{
v68 = v264;
if ( v264 != v265 )
goto LABEL_96;
goto LABEL_309;
}
}
}
}
else
{
v58 = 0;
}
std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash(
(__int64)&v272,
v55,
v54 + 4,
(__int64)&v266);
v62 = (float)(unsigned __int64)(v275 + 1);
if ( v62 > (float)((float)v56 * v276) )
{
v63 = 1;
v64 = 2 * v56;
if ( v56 > 2 )
v63 = ((v56 - 1) & v56) != 0;
LABEL_89:
v65 = v63 + v64;
v66 = vcvtps_u32_f32(v62 / v276);
if ( v66 < v65 )
v66 = v65;
std::__hash_table,std::equal_to,std::allocator>::rehash(
(unsigned __int64)&v272,
v66);
v56 = v273;
if ( ((v56 - 1) & v56) == 0 )
{
v58 = v57 & (v273 - 1);
goto LABEL_93;
}
v58 = v57 % v273;
v67 = *((_QWORD **)v272 + v57 % v273);
if ( !v67 )
goto LABEL_318;
LABEL_94:
*(_QWORD *)v266 = *v67;
*v67 = v266;
}
else
{
if ( !v56 )
{
v63 = 1;
v64 = 0;
goto LABEL_89;
}
LABEL_93:
v67 = *((_QWORD **)v272 + v58);
if ( v67 )
goto LABEL_94;
LABEL_318:
*(_QWORD *)v266 = v274;
v274 = v266;
*((_QWORD *)v272 + v58) = &v274;
if ( *(_QWORD *)v266 )
{
v170 = *(_QWORD *)(*(_QWORD *)v266 + 8LL);
if ( ((v56 - 1) & v56) != 0 )
v171 = v170 % v56;
else
v171 = (v56 - 1) & v170;
*((_QWORD *)v272 + v171) = v266;
}
}
++v275;
v68 = v264;
if ( v264 == v265 )
{
LABEL_309:
std::vector::__push_back_slow_path((__int64)&v263, v54 + 4);
}
else
{
LABEL_96:
if ( v68 )
{
*(_DWORD *)v68 = v54[4];
v68 = v264;
}
v264 = v68 + 4;
}
v69 = (unsigned __int64)v256;
v70 = v257;
if ( v256 == v257 )
{
LABEL_76:
v54 = *(int **)v54;
if ( !v54 )
goto LABEL_185;
continue;
}
break;
}
while ( 2 )
{
if ( std::__hash_table,std::equal_to,std::allocator>::find(
(_QWORD *)(v69 + 40),
(int *)v286) )
{
v109 = v54[4];
v77 = *(_QWORD *)(v69 + 48);
v110 = v109;
if ( v77 )
{
v78 = (v77 - 1) & v109;
if ( ((v77 - 1) & v77) != 0 )
v78 = v109 % v77;
v111 = *(__int64 **)(*(_QWORD *)(v69 + 40) + 8 * v78);
if ( v111 )
{
while ( 1 )
{
v111 = (__int64 *)*v111;
if ( !v111 )
break;
v112 = v111[1];
if ( ((v77 - 1) & v77) != 0 )
{
if ( v78 != v112 % v77 )
break;
}
else if ( v78 != ((v77 - 1) & v112) )
{
break;
}
if ( v109 == *((_DWORD *)v111 + 4) )
goto LABEL_112;
}
}
}
else
{
v78 = 0;
}
std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash(
v69 + 40,
v109,
v54 + 4,
(__int64)&v267);
v71 = *(float *)(v69 + 72);
v72 = (float)(unsigned __int64)(*(_QWORD *)(v69 + 64) + 1LL);
if ( v72 > (float)((float)v77 * v71) )
{
v73 = 1;
v74 = 2 * v77;
if ( v77 > 2 )
v73 = ((v77 - 1) & v77) != 0;
LABEL_105:
v75 = v73 + v74;
v76 = vcvtps_u32_f32(v72 / v71);
if ( v76 < v75 )
v76 = v75;
std::__hash_table,std::equal_to,std::allocator>::rehash(v69 + 40, v76);
v77 = *(_QWORD *)(v69 + 48);
if ( ((v77 - 1) & v77) == 0 )
{
v78 = (v77 - 1) & v110;
goto LABEL_109;
}
v79 = v267;
v78 = v110 % v77;
v80 = *(_QWORD **)(*(_QWORD *)(v69 + 40) + 8 * (v110 % v77));
if ( !v80 )
goto LABEL_298;
LABEL_110:
*v79 = *v80;
*v80 = v267;
}
else
{
if ( !v77 )
{
v73 = 1;
v74 = 0;
goto LABEL_105;
}
LABEL_109:
v79 = v267;
v80 = *(_QWORD **)(*(_QWORD *)(v69 + 40) + 8 * v78);
if ( v80 )
goto LABEL_110;
LABEL_298:
*v79 = *(_QWORD *)(v69 + 56);
v165 = *(_QWORD *)(v69 + 40);
*(_QWORD *)(v69 + 56) = v267;
*(_QWORD *)(v165 + 8 * v78) = v69 + 56;
if ( *v267 )
{
v166 = *(_QWORD *)(*v267 + 8LL);
if ( ((v77 - 1) & v77) != 0 )
v167 = v166 % v77;
else
v167 = (v77 - 1) & v166;
*(_QWORD *)(*(_QWORD *)(v69 + 40) + 8 * v167) = v267;
}
}
++*(_QWORD *)(v69 + 64);
}
LABEL_112:
if ( std::__hash_table,std::equal_to,std::allocator>::find(
(_QWORD *)(v69 + 80),
(int *)v286) )
{
v81 = v54[4];
v82 = *(_QWORD *)(v69 + 88);
v83 = v81;
if ( v82 )
{
v84 = (v82 - 1) & v81;
if ( ((v82 - 1) & v82) != 0 )
v84 = v81 % v82;
v85 = *(__int64 **)(*(_QWORD *)(v69 + 80) + 8 * v84);
if ( v85 )
{
while ( 1 )
{
v85 = (__int64 *)*v85;
if ( !v85 )
break;
v86 = v85[1];
v87 = ((v82 - 1) & v82) != 0 ? v86 % v82 : (v82 - 1) & v86;
if ( v84 != v87 )
break;
if ( v81 == *((_DWORD *)v85 + 4) )
goto LABEL_131;
}
}
}
else
{
v84 = 0;
}
std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash(
v69 + 80,
v81,
v54 + 4,
(__int64)v268);
v88 = *(float *)(v69 + 112);
v89 = (float)(unsigned __int64)(*(_QWORD *)(v69 + 104) + 1LL);
if ( v89 > (float)((float)v82 * v88) )
{
v90 = 1;
v91 = 2 * v82;
if ( v82 > 2 )
v90 = ((v82 - 1) & v82) != 0;
LABEL_124:
v92 = v90 + v91;
v93 = vcvtps_u32_f32(v89 / v88);
if ( v93 < v92 )
v93 = v92;
std::__hash_table,std::equal_to,std::allocator>::rehash(v69 + 80, v93);
v82 = *(_QWORD *)(v69 + 88);
if ( ((v82 - 1) & v82) == 0 )
{
v84 = (v82 - 1) & v83;
goto LABEL_128;
}
v84 = v83 % v82;
v94 = *(_QWORD **)(*(_QWORD *)(v69 + 80) + 8 * (v83 % v82));
if ( !v94 )
goto LABEL_293;
LABEL_129:
**(_QWORD **)v268 = *v94;
*v94 = *(_QWORD *)v268;
}
else
{
if ( !v82 )
{
v90 = 1;
v91 = 0;
goto LABEL_124;
}
LABEL_128:
v94 = *(_QWORD **)(*(_QWORD *)(v69 + 80) + 8 * v84);
if ( v94 )
goto LABEL_129;
LABEL_293:
**(_QWORD **)v268 = *(_QWORD *)(v69 + 96);
v162 = *(_QWORD *)(v69 + 80);
*(_QWORD *)(v69 + 96) = *(_QWORD *)v268;
*(_QWORD *)(v162 + 8 * v84) = v69 + 96;
if ( **(_QWORD **)v268 )
{
v163 = *(_QWORD *)(**(_QWORD **)v268 + 8LL);
if ( ((v82 - 1) & v82) != 0 )
v164 = v163 % v82;
else
v164 = (v82 - 1) & v163;
*(_QWORD *)(*(_QWORD *)(v69 + 80) + 8 * v164) = *(_QWORD *)v268;
}
}
++*(_QWORD *)(v69 + 104);
}
LABEL_131:
if ( std::__hash_table,std::equal_to,std::allocator>::find(
(_QWORD *)v69,
(int *)v286) )
{
v95 = v54[4];
v96 = *(_QWORD *)(v69 + 8);
v97 = v95;
if ( v96 )
{
v98 = (v96 - 1) & v95;
if ( ((v96 - 1) & v96) != 0 )
v98 = v95 % v96;
v99 = *(__int64 **)(*(_QWORD *)v69 + 8 * v98);
if ( v99 )
{
while ( 1 )
{
v99 = (__int64 *)*v99;
if ( !v99 )
break;
v100 = v99[1];
v101 = ((v96 - 1) & v96) != 0 ? v100 % v96 : (v96 - 1) & v100;
if ( v98 != v101 )
break;
if ( v95 == *((_DWORD *)v99 + 4) )
goto LABEL_150;
}
}
}
else
{
v98 = 0;
}
std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash(
v69,
v95,
v54 + 4,
(__int64)&v281);
v102 = *(float *)(v69 + 32);
v103 = (float)(unsigned __int64)(*(_QWORD *)(v69 + 24) + 1LL);
if ( v103 > (float)((float)v96 * v102) )
{
v104 = 1;
v105 = 2 * v96;
if ( v96 > 2 )
v104 = ((v96 - 1) & v96) != 0;
LABEL_143:
v106 = v104 + v105;
v107 = vcvtps_u32_f32(v103 / v102);
if ( v107 < v106 )
v107 = v106;
std::__hash_table,std::equal_to,std::allocator>::rehash(v69, v107);
v96 = *(_QWORD *)(v69 + 8);
if ( ((v96 - 1) & v96) == 0 )
{
v98 = (v96 - 1) & v97;
goto LABEL_147;
}
v98 = v97 % v96;
v108 = *(void ***)(*(_QWORD *)v69 + 8 * (v97 % v96));
if ( !v108 )
goto LABEL_303;
LABEL_148:
*(_QWORD *)v281 = *v108;
*v108 = v281;
}
else
{
if ( !v96 )
{
v104 = 1;
v105 = 0;
goto LABEL_143;
}
LABEL_147:
v108 = *(void ***)(*(_QWORD *)v69 + 8 * v98);
if ( v108 )
goto LABEL_148;
LABEL_303:
*(_QWORD *)v281 = *(_QWORD *)(v69 + 16);
*(_QWORD *)(v69 + 16) = v281;
*(_QWORD *)(*(_QWORD *)v69 + 8 * v98) = v69 + 16;
if ( *(_QWORD *)v281 )
{
v168 = *(_QWORD *)(*(_QWORD *)v281 + 8LL);
if ( ((v96 - 1) & v96) != 0 )
v169 = v168 % v96;
else
v169 = (v96 - 1) & v168;
*(_QWORD *)(*(_QWORD *)v69 + 8 * v169) = v281;
}
}
++*(_QWORD *)(v69 + 24);
}
LABEL_150:
v69 += 128LL;
if ( v70 == (char *)v69 )
goto LABEL_76;
continue;
}
}
LABEL_186:
v120 = v259;
v254 = v260;
if ( v259 == v260 )
{
v122 = v257;
v121 = (unsigned __int64)v256;
goto LABEL_230;
}
v121 = (unsigned __int64)v256;
v122 = v257;
while ( 2 )
{
v123 = *v120;
if ( v122 == (char *)v121 )
goto LABEL_214;
LABEL_202:
while ( 2 )
{
if ( *(_BYTE *)(v123 + 1676) )
{
if ( !std::__hash_table,std::equal_to,std::allocator>::find(
(_QWORD *)(v121 + 80),
(int *)(v123 + 1464)) )
{
if ( !*(_BYTE *)(v123 + 1676) )
goto LABEL_203;
goto LABEL_201;
}
LABEL_204:
AdvancedFollowID = AdvancedFollowTriggerObject::getAdvancedFollowID((AdvancedFollowTriggerObject *)v123);
LODWORD(v281) = AdvancedFollowID;
v134 = AdvancedFollowID;
v130 = *(_QWORD *)(v121 + 8);
if ( v130 )
{
v131 = AdvancedFollowID & (v130 - 1);
if ( ((v130 - 1) & v130) != 0 )
v131 = AdvancedFollowID % v130;
v135 = *(__int64 **)(*(_QWORD *)v121 + 8 * v131);
if ( v135 )
{
while ( 1 )
{
v135 = (__int64 *)*v135;
if ( !v135 )
break;
v136 = v135[1];
if ( ((v130 - 1) & v130) != 0 )
{
if ( v131 != v136 % v130 )
break;
}
else if ( v131 != ((v130 - 1) & v136) )
{
break;
}
if ( AdvancedFollowID == *((_DWORD *)v135 + 4) )
{
v121 += 128LL;
if ( v122 != (char *)v121 )
goto LABEL_202;
goto LABEL_213;
}
}
}
}
else
{
v131 = 0;
}
std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash(
v121,
AdvancedFollowID,
&v281,
(__int64)v286);
v124 = *(float *)(v121 + 32);
v125 = (float)(unsigned __int64)(*(_QWORD *)(v121 + 24) + 1LL);
if ( v125 > (float)((float)v130 * v124) )
{
v126 = 1;
v127 = 2 * v130;
if ( v130 > 2 )
v126 = ((v130 - 1) & v130) != 0;
}
else
{
if ( v130 )
goto LABEL_198;
v126 = 1;
v127 = 0;
}
v128 = v126 + v127;
v129 = vcvtps_u32_f32(v125 / v124);
if ( v129 < v128 )
v129 = v128;
std::__hash_table,std::equal_to,std::allocator>::rehash(v121, v129);
v130 = *(_QWORD *)(v121 + 8);
if ( ((v130 - 1) & v130) != 0 )
{
v131 = v134 % v130;
v132 = *(_QWORD **)(*(_QWORD *)v121 + 8 * (v134 % v130));
if ( v132 )
goto LABEL_199;
goto LABEL_223;
}
v131 = v134 & (v130 - 1);
LABEL_198:
v132 = *(_QWORD **)(*(_QWORD *)v121 + 8 * v131);
if ( v132 )
{
LABEL_199:
*(_QWORD *)v286[0] = *v132;
*v132 = v286[0];
LABEL_200:
++*(_QWORD *)(v121 + 24);
goto LABEL_201;
}
LABEL_223:
*(_QWORD *)v286[0] = *(_QWORD *)(v121 + 16);
*(void **)(v121 + 16) = v286[0];
*(_QWORD *)(*(_QWORD *)v121 + 8 * v131) = v121 + 16;
if ( *(_QWORD *)v286[0] )
{
v137 = *(_QWORD *)(*(_QWORD *)v286[0] + 8LL);
if ( ((v130 - 1) & v130) != 0 )
v138 = v137 % v130;
else
v138 = (v130 - 1) & v137;
*(void **)(*(_QWORD *)v121 + 8 * v138) = v286[0];
}
goto LABEL_200;
}
LABEL_203:
if ( std::__hash_table,std::equal_to,std::allocator>::find(
(_QWORD *)(v121 + 40),
(int *)(v123 + 1464)) )
{
goto LABEL_204;
}
LABEL_201:
v121 += 128LL;
if ( v122 != (char *)v121 )
continue;
break;
}
LABEL_213:
v121 = (unsigned __int64)v256;
v122 = v257;
LABEL_214:
if ( v254 != ++v120 )
continue;
break;
}
LABEL_230:
v281 = nullptr;
v282 = 0;
v283 = nullptr;
v284 = 0;
v286[0] = nullptr;
v286[1] = nullptr;
v287 = nullptr;
v288 = 0;
v285 = 1.0;
v289 = 1.0;
if ( (char *)v121 == v122 )
{
v156 = nullptr;
v154 = v263;
v155 = v264;
if ( v263 == v264 )
{
v158 = v263;
v246 = v263;
goto LABEL_324;
}
LABEL_268:
v157 = v156;
v158 = &v155[4 * ~((unsigned __int64)(v155 - 4 - v154) >> 2)];
v264 = v158;
goto LABEL_269;
}
while ( 2 )
{
for ( j = *(__int64 **)(v121 + 16); j; j = (__int64 *)*j )
{
LABEL_244:
LODWORD(v270) = *((_DWORD *)j + 4);
v148 = (_DWORD *)std::unordered_map::operator[]((__int64)v286, (int *)&v270);
v149 = *(_DWORD *)(v121 + 120);
if ( v149 < *(_DWORD *)std::unordered_map::operator[]((__int64)v286, (int *)&v270) )
{
*v148 = *(_DWORD *)std::unordered_map::operator[]((__int64)v286, (int *)&v270);
v150 = (int)v270;
v145 = v282;
v151 = (int)v270;
if ( !v282 )
{
LABEL_260:
v146 = 0;
goto LABEL_234;
}
}
else
{
*v148 = *(_DWORD *)(v121 + 120);
v150 = (int)v270;
v145 = v282;
v151 = (int)v270;
if ( !v282 )
goto LABEL_260;
}
v146 = (v145 - 1) & v151;
if ( ((v145 - 1) & v145) != 0 )
v146 = v151 % v145;
v152 = *((__int64 **)v281 + v146);
if ( v152 )
{
while ( 1 )
{
v152 = (__int64 *)*v152;
if ( !v152 )
break;
v153 = v152[1];
if ( ((v145 - 1) & v145) != 0 )
{
if ( v146 != v153 % v145 )
break;
}
else if ( v146 != ((v145 - 1) & v153) )
{
break;
}
if ( v150 == *((_DWORD *)v152 + 4) )
{
j = (__int64 *)*j;
if ( j )
goto LABEL_244;
goto LABEL_254;
}
}
}
LABEL_234:
std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash(
(__int64)&v281,
v151,
&v270,
(__int64)v269);
v140 = (float)(unsigned __int64)(v284 + 1);
if ( v140 > (float)((float)v145 * v285) )
{
v141 = 1;
v142 = 2 * v145;
if ( v145 > 2 )
v141 = ((v145 - 1) & v145) != 0;
}
else
{
if ( v145 )
goto LABEL_241;
v141 = 1;
v142 = 0;
}
v143 = v141 + v142;
v144 = vcvtps_u32_f32(v140 / v285);
if ( v144 < v143 )
v144 = v143;
std::__hash_table,std::equal_to,std::allocator>::rehash(
(unsigned __int64)&v281,
v144);
v145 = v282;
if ( ((v145 - 1) & v145) == 0 )
{
v146 = (v282 - 1) & v151;
LABEL_241:
v147 = *((_QWORD **)v281 + v146);
if ( !v147 )
goto LABEL_262;
goto LABEL_242;
}
v146 = v151 % v282;
v147 = *((_QWORD **)v281 + v151 % v282);
if ( !v147 )
{
LABEL_262:
*(_QWORD *)v269[0] = v283;
v283 = v269[0];
*((_QWORD *)v281 + v146) = &v283;
if ( *(_QWORD *)v269[0] )
{
v159 = *(_QWORD *)(*(_QWORD *)v269[0] + 8LL);
if ( ((v145 - 1) & v145) != 0 )
v160 = v159 % v145;
else
v160 = (v145 - 1) & v159;
*((void **)v281 + v160) = v269[0];
}
goto LABEL_243;
}
LABEL_242:
*(_QWORD *)v269[0] = *v147;
*v147 = v269[0];
LABEL_243:
++v284;
}
LABEL_254:
v121 += 128LL;
if ( (char *)v121 != v122 )
continue;
break;
}
v154 = v263;
v155 = v264;
v156 = v283;
if ( v263 != v264 )
goto LABEL_268;
v157 = v283;
v158 = v263;
LABEL_269:
if ( v156 )
{
do
{
while ( 1 )
{
v161 = v158;
if ( v265 != v158 )
break;
std::vector::__push_back_slow_path((__int64)&v263, v157 + 4);
v157 = *(_DWORD **)v157;
v158 = v264;
if ( !v157 )
goto LABEL_276;
}
if ( v158 )
{
*(_DWORD *)v158 = v157[4];
v161 = v264;
}
v158 = v161 + 4;
v264 = v161 + 4;
v157 = *(_DWORD **)v157;
}
while ( v157 );
LABEL_276:
v246 = v263;
}
else
{
v246 = v154;
}
LABEL_324:
if ( (v158 - v246) >> 2 )
{
v172 = 0;
while ( 1 )
{
LODWORD(v269[0]) = *(_DWORD *)&v246[4 * v172];
v173 = *(_DWORD *)std::unordered_map::operator[]((__int64)v286, (int *)v269);
if ( std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find(
v277,
(int *)v269) )
{
v174 = *(__int64 **)(std::unordered_map>::operator[](
(unsigned __int64)v277,
(int *)v269)
+ 16);
if ( v174 )
break;
}
LABEL_358:
++v172;
v246 = v263;
if ( v172 >= (v264 - v263) >> 2 )
goto LABEL_359;
}
while ( 2 )
{
if ( !std::__hash_table,std::equal_to,std::allocator>::find(
&v281,
(int *)v174 + 4) )
{
v176 = *((_DWORD *)v174 + 4);
v177 = v282;
v178 = v176;
if ( v282 )
{
v179 = v176 & (v282 - 1);
if ( ((v282 - 1) & v282) != 0 )
v179 = v176 % v282;
v180 = *((__int64 **)v281 + v179);
if ( v180 )
{
while ( 1 )
{
v180 = (__int64 *)*v180;
if ( !v180 )
break;
v181 = v180[1];
v182 = ((v282 - 1) & v282) != 0 ? v181 % v282 : (v282 - 1) & v181;
if ( v179 != v182 )
break;
if ( v176 == *((_DWORD *)v180 + 4) )
{
v189 = v264;
if ( v264 != v265 )
goto LABEL_350;
goto LABEL_355;
}
}
}
}
else
{
v179 = 0;
}
std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash(
(__int64)&v281,
v176,
(_DWORD *)v174 + 4,
(__int64)&v270);
v183 = (float)(unsigned __int64)(v284 + 1);
if ( v183 > (float)((float)v177 * v285) )
{
v184 = 1;
v185 = 2 * v177;
if ( v177 > 2 )
v184 = ((v177 - 1) & v177) != 0;
LABEL_343:
v186 = v184 + v185;
v187 = vcvtps_u32_f32(v183 / v285);
if ( v187 < v186 )
v187 = v186;
std::__hash_table,std::equal_to,std::allocator>::rehash(
(unsigned __int64)&v281,
v187);
v177 = v282;
if ( ((v177 - 1) & v177) == 0 )
{
v179 = v178 & (v282 - 1);
goto LABEL_347;
}
v179 = v178 % v282;
v188 = *((__int64 **)v281 + v178 % v282);
if ( !v188 )
goto LABEL_384;
LABEL_348:
*v270 = (void *)*v188;
*v188 = (__int64)v270;
}
else
{
if ( !v177 )
{
v184 = 1;
v185 = 0;
goto LABEL_343;
}
LABEL_347:
v188 = *((__int64 **)v281 + v179);
if ( v188 )
goto LABEL_348;
LABEL_384:
*v270 = v283;
v283 = v270;
*((_QWORD *)v281 + v179) = &v283;
if ( *v270 )
{
v204 = *((_QWORD *)*v270 + 1);
if ( ((v177 - 1) & v177) != 0 )
v205 = v204 % v177;
else
v205 = (v177 - 1) & v204;
*((_QWORD *)v281 + v205) = v270;
}
}
++v284;
v189 = v264;
if ( v264 == v265 )
{
LABEL_355:
std::vector::__push_back_slow_path((__int64)&v263, (_DWORD *)v174 + 4);
}
else
{
LABEL_350:
if ( v189 )
{
*(_DWORD *)v189 = *((_DWORD *)v174 + 4);
v189 = v264;
}
v264 = v189 + 4;
}
}
v175 = (_DWORD *)std::unordered_map::operator[]((__int64)v286, (int *)v174 + 4);
if ( v173 < *(_DWORD *)std::unordered_map::operator[]((__int64)v286, (int *)v174 + 4) )
{
*v175 = *(_DWORD *)std::unordered_map::operator[]((__int64)v286, (int *)v174 + 4);
v174 = (__int64 *)*v174;
if ( !v174 )
goto LABEL_358;
}
else
{
*v175 = v173;
v174 = (__int64 *)*v174;
if ( !v174 )
goto LABEL_358;
}
continue;
}
}
LABEL_359:
v190 = v287;
if ( v287 )
{
while ( 2 )
{
v191 = v190[4];
LODWORD(v270) = 0;
v192 = v190[5];
if ( v191 <= 0 )
{
LODWORD(v270) = v191;
if ( !v191 )
goto LABEL_364;
}
else
{
MainObject = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)this, v191);
if ( MainObject )
{
LODWORD(v270) = *(_DWORD *)(MainObject + 916);
*(_QWORD *)std::unordered_map::operator[]((__int64)v249, (int *)&v270) = MainObject;
}
if ( !(_DWORD)v270 )
{
LABEL_364:
v190 = *(_DWORD **)v190;
if ( !v190 )
goto LABEL_365;
continue;
}
}
break;
}
v206 = (_DWORD *)std::unordered_map::operator[]((__int64)v250, (int *)&v270);
if ( v192 < *(_DWORD *)std::unordered_map::operator[]((__int64)v250, (int *)&v270) )
*v206 = *(_DWORD *)std::unordered_map::operator[]((__int64)v250, (int *)&v270);
else
*v206 = v192;
goto LABEL_364;
}
LABEL_365:
v271[0] = 0;
v194 = 0;
v271[1] = 0;
v195 = *((__int64 **)this + 1656);
v270 = (void **)v271;
if ( !v195 )
goto LABEL_423;
while ( 2 )
{
while ( 2 )
{
v196 = *((_DWORD *)v195 + 4);
v268[0] = v196;
v197 = *((_DWORD *)v195 + 5);
if ( (v196 & 0x80000000) == 0 )
{
v198 = *((_QWORD *)this + 1650);
if ( v198 )
{
v199 = v198 - 1;
v200 = ((v198 - 1) & v198) != 0 ? v196 % v198 : v199 & v196;
v201 = *(__int64 ***)(*((_QWORD *)this + 1649) + 8 * v200);
if ( v201 )
{
for ( k = *v201; k; k = (__int64 *)*k )
{
v203 = k[1];
if ( ((v198 - 1) & v198) != 0 )
{
if ( v200 != v203 % v198 )
break;
}
else if ( v200 != (v199 & v203) )
{
break;
}
if ( v196 == *((_DWORD *)k + 4) )
goto LABEL_393;
}
}
}
LABEL_368:
std::__tree::__emplace_unique_key_args((__int64 **)&v270, v268, v268);
v195 = (__int64 *)*v195;
if ( !v195 )
goto LABEL_397;
continue;
}
break;
}
LABEL_393:
if ( v197 <= 0 )
goto LABEL_368;
if ( v196 <= 0 )
{
switch ( v196 )
{
case -2:
*(_DWORD *)(*((_QWORD *)this + 408) + 1340LL) = v194;
break;
case -1:
*(_DWORD *)(*((_QWORD *)this + 407) + 1340LL) = v194;
break;
case -3:
*((_DWORD *)this + 286) = v194;
break;
}
}
else
{
*(_DWORD *)(*(_QWORD *)std::unordered_map::operator[]((__int64)v249, v268) + 1340LL) = v194;
}
v194 += v197;
v255 = *((float32x4_t **)this + 140);
LODWORD(v269[0]) = 0;
std::vector::insert((char **)this + 139, v255, 2 * v197, (const float *)v269);
v195 = (__int64 *)*v195;
if ( v195 )
continue;
break;
}
LABEL_397:
v207 = (__int64 *)v270;
if ( v270 == v271 )
{
v223 = (_QWORD **)v271[0];
goto LABEL_421;
}
while ( 2 )
{
LODWORD(v269[0]) = *((_DWORD *)v207 + 7);
std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__erase_unique(
v250,
(int *)v269);
v208 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
v249,
(int *)v269);
if ( !v208 )
goto LABEL_419;
v209 = *((_QWORD *)this + 1650);
v210 = v208[1];
v211 = v209 - 1;
v212 = (v209 - 1) & v209;
if ( v212 )
v213 = v210 % v209;
else
v213 = v211 & v210;
v214 = *((_QWORD *)this + 1649);
for ( m = *(char **)(v214 + 8 * v213); v208 != *(__int64 **)m; m = *(char **)m )
;
if ( m != v247 + 920 )
{
v216 = *((_QWORD *)m + 1);
v217 = v212 ? v216 % v209 : v211 & v216;
if ( v213 == v217 )
goto LABEL_412;
}
v218 = *v208;
if ( !*v208 )
goto LABEL_411;
v219 = *(_QWORD *)(v218 + 8);
if ( v212 )
{
v222 = v219 / v209;
if ( v213 == v219 % v209 )
goto LABEL_415;
LABEL_411:
*(_QWORD *)(v214 + 8 * v213) = 0;
LABEL_412:
v218 = *v208;
v221 = *v208;
if ( !*v208 )
goto LABEL_418;
v219 = *(_QWORD *)(v218 + 8);
if ( !v212 )
{
v220 = v211 & v219;
if ( v213 != v220 )
goto LABEL_417;
goto LABEL_472;
}
v222 = v219 / v209;
LABEL_415:
v220 = v219 - v222 * v209;
goto LABEL_416;
}
v220 = v211 & v219;
if ( v213 != v220 )
goto LABEL_411;
LABEL_416:
if ( v213 != v220 )
{
LABEL_417:
*(_QWORD *)(*((_QWORD *)this + 1649) + 8 * v220) = m;
v221 = *v208;
goto LABEL_418;
}
LABEL_472:
v221 = v218;
LABEL_418:
*(_QWORD *)m = v221;
*v208 = 0;
--*((_QWORD *)this + 1652);
operator delete(v208);
LABEL_419:
v207 = std::__tree_next *>(v207);
if ( v207 != v271 )
continue;
break;
}
v223 = (_QWORD **)v271[0];
LABEL_421:
if ( v223 )
{
std::__tree::destroy((__int64)&v270, *v223);
std::__tree::destroy((__int64)&v270, v223[1]);
operator delete(v223);
}
LABEL_423:
v224 = v287;
if ( v287 )
{
do
{
v225 = (_QWORD *)*v224;
operator delete(v224);
v224 = v225;
}
while ( v225 );
}
v226 = v286[0];
v286[0] = nullptr;
if ( v226 )
operator delete(v226);
v227 = v283;
if ( v283 )
{
do
{
v228 = (_QWORD *)*v227;
operator delete(v227);
v227 = v228;
}
while ( v228 );
}
v229 = v281;
v281 = nullptr;
if ( v229 )
operator delete(v229);
if ( v263 )
{
if ( v263 != v264 )
v264 += 4 * ~((unsigned __int64)(v264 - 4 - v263) >> 2);
operator delete(v263);
}
sub_998FF8(v278);
v230 = v277[0];
v277[0] = nullptr;
if ( v230 )
operator delete(v230);
if ( v259 )
{
if ( v259 != v260 )
v260 += ~((unsigned __int64)((char *)(v260 - 1) - (char *)v259) >> 3);
operator delete(v259);
}
v231 = v274;
if ( v274 )
{
do
{
v232 = (_QWORD *)*v231;
operator delete(v231);
v231 = v232;
}
while ( v232 );
}
v233 = v272;
v272 = nullptr;
if ( v233 )
operator delete(v233);
v234 = v256;
if ( v256 )
{
v235 = v257;
if ( v256 != v257 )
{
do
{
v257 = v235 - 128;
v236 = *((_QWORD **)v235 - 4);
if ( v236 )
{
do
{
v237 = (_QWORD *)*v236;
operator delete(v236);
v236 = v237;
}
while ( v237 );
}
v238 = *((void **)v235 - 6);
*((_QWORD *)v235 - 6) = 0;
if ( v238 )
operator delete(v238);
v239 = *((_QWORD **)v235 - 9);
if ( v239 )
{
do
{
v240 = (_QWORD *)*v239;
operator delete(v239);
v239 = v240;
}
while ( v240 );
}
v241 = *((void **)v235 - 11);
*((_QWORD *)v235 - 11) = 0;
if ( v241 )
operator delete(v241);
v242 = *((_QWORD **)v235 - 14);
if ( v242 )
{
do
{
v243 = (_QWORD *)*v242;
operator delete(v242);
v242 = v243;
}
while ( v243 );
}
v244 = *((void **)v235 - 16);
*((_QWORD *)v235 - 16) = 0;
if ( v244 )
operator delete(v244);
v235 = v257;
}
while ( v234 != v257 );
v235 = v256;
}
operator delete(v235);
}
return _stack_chk_guard;
}