//
// EditorSFXManager::deserializeAll from 0xcc5f94 to 0xcc710c (4472 bytes)
//
// 3 xrefs:
// > EditorSFXManager::ensureLoaded @ 0xcc7178
// > EditorSFXManager::importFromString @ 0xcc76f0
// > ??> @ 0x9d300
//
// 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 13:06:21 +0000
//
__int64 __fastcall EditorSFXManager::deserializeAll(EditorSFXManager *a1, unsigned __int8 *a2, unsigned __int8 a3)
{
char v4; // w0
int v5; // w19
__int64 v6; // x1
size_t v7; // x3
void *v8; // x20
unsigned int v9; // w19
__int64 v11; // x3
int v12; // w21
size_t v13; // x2
const void *v14; // x27
_BYTE *v15; // x0
size_t v16; // x27
int v17; // w20
char *v18; // x1
unsigned __int8 *v19; // x19
size_t v20; // x2
unsigned __int8 *v21; // x0
char *v22; // x0
char *v23; // x19
unsigned __int64 v24; // x0
float v25; // s9
size_t v26; // x1
const char *v27; // x0
unsigned __int8 v28; // w20
int v29; // w22
int v30; // w0
size_t v31; // x0
char *v32; // x1
size_t v33; // x2
char *v34; // x1
size_t v35; // x2
int v36; // w1
int v37; // w3
int v38; // w4
int v39; // w5
int v40; // w6
int v41; // w7
int v42; // w20
char *v43; // x1
unsigned __int8 *v44; // x22
size_t v45; // x2
unsigned __int8 *v46; // x0
char *v47; // x0
char *v48; // x19
_BOOL4 v49; // w19
unsigned __int64 v50; // x1
cocos2d::CCObject *v51; // x1
unsigned __int64 v52; // x0
unsigned __int64 v53; // x27
__int64 v54; // x6
__int64 v55; // x26
__int64 **v56; // x0
__int64 *v57; // x20
size_t v58; // x22
int v59; // w23
char *v60; // x3
unsigned __int64 v61; // x0
unsigned __int64 v62; // x0
_QWORD *v63; // x0
_QWORD *v64; // x23
void **v65; // x20
unsigned __int64 v66; // x1
float v67; // s0
_BOOL8 v68; // x0
__int64 v69; // x2
unsigned __int64 v70; // x2
unsigned __int64 v71; // x1
void **v72; // x0
void **v73; // x19
void **v74; // x20
void **v75; // x0
void *v76; // x0
char *v77; // x1
size_t v78; // x2
cocos2d::CCArray **Binding; // x26
cocos2d::CCArray *v80; // x0
unsigned int i; // w23
SFXTriggerGameObject *v82; // x0
unsigned __int64 v83; // x0
unsigned __int64 v84; // x19
unsigned __int64 v85; // x24
unsigned __int64 v86; // x7
__int64 v87; // x6
__int64 v88; // x20
__int64 **v89; // x0
__int64 *v90; // x22
size_t v91; // x27
__int64 v92; // x5
char *v93; // x8
unsigned __int64 v94; // x0
unsigned __int64 v95; // x0
void **v96; // x22
void *v97; // x1
float v98; // s0
_BOOL8 v99; // x2
__int64 v100; // x0
unsigned __int64 v101; // x2
unsigned __int64 v102; // x1
void **v103; // x0
unsigned __int8 *v104; // x0
unsigned __int8 *v105; // x1
int v106; // t1
char *v107; // x1
int v108; // w0
unsigned __int64 v109; // x1
unsigned __int64 v110; // x0
const char *v111; // x0
const char *v112; // x0
const char *v113; // x0
size_t v114; // x22
_BYTE *v115; // x3
__int64 v116; // x0
unsigned __int64 v117; // x1
unsigned __int64 v118; // x27
char *v119; // x1
int v120; // w0
unsigned __int8 *v121; // x0
unsigned __int8 *v122; // x2
int v123; // t1
char v124; // [xsp+0h] [xbp+0h]
int v125; // [xsp+78h] [xbp+78h]
int v126; // [xsp+7Ch] [xbp+7Ch]
char *v127; // [xsp+80h] [xbp+80h]
int v128; // [xsp+88h] [xbp+88h]
int v129; // [xsp+8Ch] [xbp+8Ch]
unsigned __int64 v130; // [xsp+A8h] [xbp+A8h]
char *v132; // [xsp+C8h] [xbp+C8h]
const void *v133; // [xsp+C8h] [xbp+C8h]
void *v134; // [xsp+C8h] [xbp+C8h]
__int64 v135; // [xsp+D0h] [xbp+D0h]
__int64 v136; // [xsp+D8h] [xbp+D8h]
unsigned __int64 v137; // [xsp+D8h] [xbp+D8h]
unsigned __int64 v138; // [xsp+E0h] [xbp+E0h]
__int64 v139; // [xsp+E0h] [xbp+E0h]
unsigned __int64 v141; // [xsp+108h] [xbp+108h] BYREF
unsigned __int64 v142; // [xsp+110h] [xbp+110h] BYREF
__int64 v143; // [xsp+118h] [xbp+118h] BYREF
__int64 v144; // [xsp+120h] [xbp+120h]
void *v145; // [xsp+128h] [xbp+128h]
__int64 v146; // [xsp+130h] [xbp+130h] BYREF
unsigned __int64 v147; // [xsp+138h] [xbp+138h]
void *v148; // [xsp+140h] [xbp+140h]
__int64 v149; // [xsp+148h] [xbp+148h] BYREF
size_t v150; // [xsp+150h] [xbp+150h]
void *v151; // [xsp+158h] [xbp+158h]
__int64 v152; // [xsp+160h] [xbp+160h] BYREF
size_t v153; // [xsp+168h] [xbp+168h]
void *v154; // [xsp+170h] [xbp+170h]
__int64 v155; // [xsp+178h] [xbp+178h] BYREF
size_t v156; // [xsp+180h] [xbp+180h]
void *v157; // [xsp+188h] [xbp+188h]
void *v158; // [xsp+190h] [xbp+190h] BYREF
size_t v159; // [xsp+198h] [xbp+198h]
void *v160; // [xsp+1A0h] [xbp+1A0h]
__int64 v161; // [xsp+1A8h] [xbp+1A8h] BYREF
__int64 v162; // [xsp+1B0h] [xbp+1B0h]
void *v163; // [xsp+1B8h] [xbp+1B8h]
__int64 v164[3]; // [xsp+1C0h] [xbp+1C0h] BYREF
__int64 v165; // [xsp+1D8h] [xbp+1D8h] BYREF
unsigned __int64 v166; // [xsp+1E0h] [xbp+1E0h]
void *v167; // [xsp+1E8h] [xbp+1E8h]
void *v168; // [xsp+1F0h] [xbp+1F0h] BYREF
unsigned __int64 v169; // [xsp+1F8h] [xbp+1F8h]
void *v170; // [xsp+200h] [xbp+200h] BYREF
__int64 v171; // [xsp+208h] [xbp+208h]
float v172; // [xsp+210h] [xbp+210h]
v129 = a3;
v4 = *a2;
v5 = *a2 & 1;
v6 = *a2 >> 1;
if ( (v4 & 1) != 0 )
v6 = *((_QWORD *)a2 + 1);
if ( !v6 )
return 0;
v7 = std::string::find((__int64)a2, 0x3Bu, 0);
if ( v7 == -1 )
{
v144 = 0;
v145 = nullptr;
v143 = 0;
if ( v5 )
{
std::string::__init(&v143, *((void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
v11 = *((_QWORD *)a2 + 1);
v143 = *(_QWORD *)a2;
v144 = v11;
v145 = *((void **)a2 + 2);
}
}
else
{
std::string::basic_string(&v143, (__int64)a2, 0, v7);
}
if ( (v143 & 1) == 0 )
{
if ( (int)(unsigned __int8)v143 >> 1 )
{
v9 = 0;
if ( (unsigned int)(atoi((const char *)&v143 + 1) - 1) > 1 )
return v9;
goto LABEL_16;
}
return 0;
}
if ( !v144 )
{
v9 = 0;
operator delete(v145);
return v9;
}
v8 = v145;
if ( (unsigned int)(atoi((const char *)v145) - 1) > 1 )
{
v9 = 0;
operator delete(v8);
return v9;
}
LABEL_16:
if ( v129 )
EditorSFXManager::clearAll(a1);
v146 = 0;
v147 = 0;
v12 = *a2;
v148 = nullptr;
if ( (v12 & 1) != 0 )
{
v13 = *((_QWORD *)a2 + 1);
if ( v13 )
{
v14 = *((const void **)a2 + 2);
LABEL_21:
v15 = memchr(v14, 59, v13);
if ( !v15 || (v16 = v15 - (_BYTE *)v14, v16 == -1) )
{
v16 = (unsigned __int8)v12 >> 1;
if ( (v12 & 1) != 0 )
v16 = *((_QWORD *)a2 + 1);
}
std::string::basic_string(&v161, (__int64)a2, 0, v16);
if ( (v146 & 1) != 0 )
{
*(_BYTE *)v148 = 0;
v147 = 0;
}
else
{
LOWORD(v146) = 0;
}
v130 = v16 + 1;
std::string::reserve(&v146, 0);
v148 = v163;
v146 = v161;
v147 = v162;
LABEL_26:
while ( 2 )
{
v17 = *a2;
if ( (v17 & 1) != 0 )
{
v18 = *((char **)a2 + 1);
if ( (unsigned __int64)v18 > v130 )
{
v19 = *((unsigned __int8 **)a2 + 2);
v20 = (size_t)&v18[-v130];
v21 = &v19[v130];
if ( v18 == (char *)v130 )
{
LABEL_143:
v23 = v18;
goto LABEL_31;
}
LABEL_29:
v22 = (char *)memchr(v21, 59, v20);
if ( v22 )
{
v23 = (char *)(v22 - (char *)v19);
if ( v23 != (char *)-1LL )
{
LABEL_31:
std::string::basic_string(&v165, (__int64)a2, v130, (size_t)&v23[-v130]);
if ( (v146 & 1) != 0 )
{
*(_BYTE *)v148 = 0;
v147 = 0;
}
else
{
LOWORD(v146) = 0;
}
v130 = (unsigned __int64)(v23 + 1);
std::string::reserve(&v146, 0);
v146 = v165;
v147 = v166;
v148 = v167;
if ( (v165 & 1) != 0 )
{
v24 = v147;
if ( !v147 )
continue;
if ( *(_BYTE *)v167 == 77 && (v147 == 1 || *((_BYTE *)v167 + 1) == 124) )
goto LABEL_77;
}
else
{
LODWORD(v24) = (int)(unsigned __int8)v165 >> 1;
if ( !(_DWORD)v24 )
continue;
if ( BYTE1(v146) == 77 && ((_DWORD)v24 == 1 || BYTE2(v146) == 124) )
{
v24 = (int)v24;
LABEL_77:
if ( v24 > 2 )
{
std::string::basic_string(&v155, (__int64)&v146, 2u, 0xFFFFFFFFFFFFFFFFLL);
MusicDownloadManager::decodeCustomSFXMappingEntries(
(__int64)&v155,
(__int64)a1 + 120,
1u,
v37,
v38,
v39,
v40,
v41,
v124);
if ( (v155 & 1) != 0 )
operator delete(v157);
}
continue;
}
}
v25 = 0.0;
v141 = 0;
v149 = 0;
v150 = 0;
v151 = nullptr;
v125 = 0;
v152 = 0;
v126 = 0;
v153 = 0;
v128 = -1;
v154 = nullptr;
v155 = 0;
v156 = 0;
v157 = nullptr;
while ( (unsigned __int8)sub_CC3040((unsigned __int8 *)&v146, &v141, &v152, 0x2Cu) )
{
v26 = (unsigned __int8)v152 >> 1;
if ( (v152 & 1) != 0 )
v26 = v153;
if ( v26 )
{
if ( !(unsigned __int8)sub_CC3040((unsigned __int8 *)&v146, &v141, &v155, 0x2Cu) )
break;
v27 = (char *)&v152 + 1;
v28 = v152;
v29 = v152 & 1;
if ( (v152 & 1) != 0 )
v27 = (const char *)v154;
v30 = atoi(v27);
switch ( v30 )
{
case 2:
v112 = (char *)&v155 + 1;
if ( (v155 & 1) != 0 )
v112 = (const char *)v157;
v126 = atoi(v112);
break;
case 3:
v111 = (char *)&v155 + 1;
if ( (v155 & 1) != 0 )
v111 = (const char *)v157;
v125 = 1;
v25 = atof(v111);
break;
case 1:
v113 = (char *)&v155 + 1;
if ( (v155 & 1) != 0 )
v113 = (const char *)v157;
v128 = atoi(v113);
break;
default:
v31 = (unsigned __int8)v149 >> 1;
if ( (v149 & 1) != 0 )
v31 = v150;
if ( v31 )
{
std::string::push_back(&v149, 44);
v28 = v152;
v29 = v152 & 1;
}
if ( v29 )
{
v32 = (char *)v154;
v33 = v153;
}
else
{
v33 = v28 >> 1;
v32 = (char *)&v152 + 1;
}
std::string::append((__int64)&v149, v32, v33);
std::string::push_back(&v149, 44);
if ( (v155 & 1) != 0 )
{
v34 = (char *)v157;
v35 = v156;
}
else
{
v35 = (unsigned __int8)v155 >> 1;
v34 = (char *)&v155 + 1;
}
std::string::append((__int64)&v149, v34, v35);
break;
}
}
}
if ( (v128 & 0x80000000) == 0 )
{
v42 = *a2;
v161 = 0;
v162 = 0;
v163 = nullptr;
if ( (v42 & 1) != 0 )
{
v43 = *((char **)a2 + 1);
if ( (unsigned __int64)v43 > v130 )
{
v44 = *((unsigned __int8 **)a2 + 2);
v45 = (size_t)&v43[-v130];
v46 = &v44[v130];
if ( v43 == (char *)v130 )
{
LABEL_228:
v48 = v43;
goto LABEL_88;
}
LABEL_86:
v47 = (char *)memchr(v46, 59, v45);
if ( v47 )
{
v48 = (char *)(v47 - (char *)v44);
if ( v47 - (char *)v44 != -1 )
{
LABEL_88:
std::string::basic_string(v164, (__int64)a2, v130, (size_t)&v48[-v130]);
if ( (v161 & 1) != 0 )
{
*(_BYTE *)v163 = 0;
v162 = 0;
}
else
{
LOWORD(v161) = 0;
}
v130 = (unsigned __int64)(v48 + 1);
std::string::reserve(&v161, 0);
v161 = v164[0];
v162 = v164[1];
v163 = (void *)v164[2];
if ( v129 )
{
v168 = nullptr;
v169 = 0;
v170 = nullptr;
v171 = 0;
v172 = 1.0;
goto LABEL_92;
}
Binding = (cocos2d::CCArray **)EditorSFXManager::findBinding(a1, v128);
v168 = nullptr;
v169 = 0;
v170 = nullptr;
v171 = 0;
v172 = 1.0;
if ( !Binding )
goto LABEL_92;
v80 = *Binding;
if ( !*Binding )
goto LABEL_92;
for ( i = 0; ; ++i )
{
if ( i >= (unsigned int)cocos2d::CCArray::count(v80) )
{
if ( *Binding )
{
v49 = cocos2d::CCArray::count(*Binding) == 0;
goto LABEL_93;
}
LABEL_92:
v49 = 1;
LABEL_93:
v136 = EditorSFXManager::getOrCreateBinding(a1, v128);
if ( v49 || v129 )
{
*(_DWORD *)(v136 + 8) = v126;
if ( (__int64 *)(v136 + 16) != &v149 )
{
if ( (v149 & 1) != 0 )
{
v77 = (char *)v151;
v78 = v150;
}
else
{
v78 = (unsigned __int8)v149 >> 1;
v77 = (char *)&v149 + 1;
}
std::string::assign((__int64 *)(v136 + 16), v77, v78);
}
if ( v125 )
EditorSFXManager::setActionMinInterval(a1, v128, v25);
}
v165 = 0;
v166 = 0;
v167 = nullptr;
v142 = 0;
while ( 1 )
{
LABEL_96:
if ( !(unsigned __int8)sub_CC3040((unsigned __int8 *)&v161, &v142, &v165, 0x3Au) )
{
if ( (v165 & 1) != 0 )
operator delete(v167);
v73 = (void **)v170;
if ( v170 )
{
do
{
v74 = (void **)*v73;
if ( ((_BYTE)v73[2] & 1) != 0 )
operator delete(v73[4]);
v75 = v73;
v73 = v74;
operator delete(v75);
}
while ( v74 );
}
v76 = v168;
v168 = nullptr;
if ( v76 )
operator delete(v76);
if ( (v161 & 1) != 0 )
operator delete(v163);
if ( (v155 & 1) != 0 )
operator delete(v157);
if ( (v152 & 1) != 0 )
operator delete(v154);
if ( (v149 & 1) != 0 )
operator delete(v151);
goto LABEL_26;
}
v50 = (unsigned __int8)v165 >> 1;
if ( (v165 & 1) != 0 )
v50 = v166;
if ( v50
&& (v129
|| !std::__hash_table,std::equal_to,std::allocator>::find(
&v168,
(char *)&v165)) )
{
v51 = (cocos2d::CCObject *)EditorSFXManager::decodeSound(
(__int64)a1,
(unsigned __int8 *)&v165);
if ( v51 )
{
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)v136, v51);
if ( !v129 )
break;
}
}
}
v52 = sub_CBFF34((__int64)&v165);
v53 = v169;
v138 = v52;
if ( v169 )
{
v54 = (v169 - 1) & v169;
v55 = v52 & (v169 - 1);
if ( v54 )
v55 = v52 % v169;
v56 = *((__int64 ***)v168 + v55);
if ( v56 )
{
v57 = *v56;
if ( *v56 )
{
v58 = v166;
v59 = v165 & 1;
v60 = (char *)v167;
if ( (v165 & 1) == 0 )
v58 = (unsigned __int8)v165 >> 1;
do
{
v61 = v57[1];
v62 = v54 ? v61 % v53 : (v53 - 1) & v61;
if ( v55 != v62 )
break;
if ( (v57[2] & 1) != 0 )
{
if ( v57[3] == v58 )
{
v119 = (char *)&v165 + 1;
if ( v59 )
v119 = v60;
if ( !v58 )
goto LABEL_96;
v127 = v60;
v134 = (void *)v54;
v120 = memcmp((const void *)v57[4], v119, v58);
v54 = (__int64)v134;
v60 = v127;
if ( !v120 )
goto LABEL_96;
}
}
else if ( *((_BYTE *)v57 + 16) >> 1 == v58 )
{
v121 = (unsigned __int8 *)&v165 + 1;
if ( v59 )
v121 = (unsigned __int8 *)v60;
if ( !v58 )
goto LABEL_96;
if ( *((unsigned __int8 *)v57 + 17) == *v121 )
{
v122 = (unsigned __int8 *)v57 + 18;
do
{
++v121;
if ( v122 == (unsigned __int8 *)((char *)v57 + v58 + 17) )
goto LABEL_96;
v123 = *v122++;
}
while ( *v121 == v123 );
}
}
v57 = (__int64 *)*v57;
}
while ( v57 );
}
}
}
else
{
v55 = 0;
}
v63 = (_QWORD *)operator new(0x28u);
v64 = v63 + 2;
v63[2] = 0;
v65 = (void **)v63;
v63[3] = 0;
v63[4] = 0;
if ( (v165 & 1) == 0 )
{
v66 = v166;
v63[2] = v165;
v63[3] = v66;
v63[4] = v167;
goto LABEL_115;
}
v114 = v166;
v133 = v167;
if ( v166 > 0xFFFFFFFFFFFFFFEFLL )
sub_630E18();
if ( v166 > 0x16 )
{
v116 = operator new((v166 + 16) & 0xFFFFFFFFFFFFFFF0LL);
v64[2] = v116;
v65[2] = (void *)((v114 + 16) & 0xFFFFFFFFFFFFFFF0LL | 1);
v115 = (_BYTE *)v116;
v64[1] = v114;
}
else
{
*((_BYTE *)v63 + 16) = 2 * v166;
v115 = (char *)v63 + 17;
if ( !v114 )
{
LABEL_241:
v115[v114] = 0;
LABEL_115:
v65[1] = (void *)v138;
*v65 = nullptr;
v67 = (float)(unsigned __int64)(v171 + 1);
if ( v67 <= (float)((float)v53 * v172) )
{
if ( !v53 )
{
v68 = 1;
v69 = 0;
goto LABEL_118;
}
}
else
{
v68 = 1;
v69 = 2 * v53;
if ( v53 > 2 )
v68 = ((v53 - 1) & v53) != 0;
LABEL_118:
v70 = v69 + v68;
v71 = vcvtps_u32_f32(v67 / v172);
if ( v71 < v70 )
v71 = v70;
std::__hash_table,std::equal_to,std::allocator>::rehash(
(unsigned __int64)&v168,
v71);
v53 = v169;
v55 = v138 & (v169 - 1);
if ( ((v53 - 1) & v53) != 0 )
v55 = v138 % v169;
}
v72 = *((void ***)v168 + v55);
if ( v72 )
{
*v65 = *v72;
*v72 = v65;
}
else
{
*v65 = v170;
v170 = v65;
*((_QWORD *)v168 + v55) = &v170;
if ( *v65 )
{
v117 = *((_QWORD *)*v65 + 1);
if ( ((v53 - 1) & v53) != 0 )
v118 = v117 % v53;
else
v118 = (v53 - 1) & v117;
*((_QWORD *)v168 + v118) = v65;
}
}
++v171;
goto LABEL_96;
}
}
v115 = memcpy(v115, v133, v114);
goto LABEL_241;
}
v82 = (SFXTriggerGameObject *)cocos2d::CCArray::objectAtIndex(*Binding, i);
EditorSFXManager::encodeSound(v82, (__int64 *)&v158);
v83 = sub_CBFF34((__int64)&v158);
v84 = v169;
v85 = v83;
if ( v169 )
{
v86 = v169 - 1;
v87 = (v169 - 1) & v169;
v88 = v83 & (v169 - 1);
if ( v87 )
v88 = v83 % v169;
v89 = *((__int64 ***)v168 + v88);
if ( v89 )
{
v90 = *v89;
if ( *v89 )
{
v91 = v159;
v92 = (unsigned __int8)v158 & 1;
v93 = (char *)v160;
if ( ((unsigned __int8)v158 & 1) == 0 )
v91 = (unsigned __int8)v158 >> 1;
v94 = v90[1];
if ( !v87 )
{
LABEL_171:
v95 = v86 & v94;
goto LABEL_172;
}
while ( 1 )
{
v95 = v94 % v84;
LABEL_172:
if ( v88 != v95 )
break;
if ( (v90[2] & 1) != 0 )
{
if ( v90[3] == v91 )
{
v107 = (char *)&v158 + 1;
if ( (_DWORD)v92 )
v107 = v93;
if ( !v91 )
goto LABEL_183;
v132 = v93;
v135 = v87;
v137 = v86;
v139 = v92;
v108 = memcmp((const void *)v90[4], v107, v91);
v92 = v139;
v86 = v137;
v87 = v135;
v93 = v132;
if ( !v108 )
goto LABEL_183;
}
}
else if ( *((_BYTE *)v90 + 16) >> 1 == v91 )
{
v104 = (unsigned __int8 *)&v158 + 1;
if ( (_DWORD)v92 )
v104 = (unsigned __int8 *)v93;
if ( !v91 )
goto LABEL_183;
if ( *((unsigned __int8 *)v90 + 17) == *v104 )
{
v105 = (unsigned __int8 *)v90 + 18;
while ( 1 )
{
++v104;
if ( v105 == (unsigned __int8 *)((char *)v90 + v91 + 17) )
break;
v106 = *v105++;
if ( *v104 != v106 )
goto LABEL_187;
}
if ( (_DWORD)v92 )
goto LABEL_199;
goto LABEL_184;
}
}
LABEL_187:
v90 = (__int64 *)*v90;
if ( !v90 )
break;
v94 = v90[1];
if ( !v87 )
goto LABEL_171;
}
}
}
}
else
{
v88 = 0;
}
v96 = (void **)operator new(0x28u);
v97 = (void *)v159;
v96[2] = v158;
v96[3] = v97;
v158 = nullptr;
v96[4] = v160;
v159 = 0;
v160 = nullptr;
v96[1] = (void *)v85;
*v96 = nullptr;
v98 = (float)(unsigned __int64)(v171 + 1);
if ( v98 > (float)((float)v84 * v172) )
{
v99 = 1;
v100 = 2 * v84;
if ( v84 > 2 )
v99 = ((v84 - 1) & v84) != 0;
}
else
{
if ( v84 )
goto LABEL_180;
v99 = 1;
v100 = 0;
}
v101 = v99 + v100;
v102 = vcvtps_u32_f32(v98 / v172);
if ( v102 < v101 )
v102 = v101;
std::__hash_table,std::equal_to,std::allocator>::rehash(
(unsigned __int64)&v168,
v102);
v84 = v169;
if ( ((v84 - 1) & v84) == 0 )
{
v88 = v85 & (v169 - 1);
LABEL_180:
v103 = *((void ***)v168 + v88);
if ( !v103 )
goto LABEL_209;
goto LABEL_181;
}
v88 = v85 % v169;
v103 = *((void ***)v168 + v85 % v169);
if ( !v103 )
{
LABEL_209:
*v96 = v170;
v170 = v96;
*((_QWORD *)v168 + v88) = &v170;
if ( *v96 )
{
v109 = *((_QWORD *)*v96 + 1);
if ( ((v84 - 1) & v84) != 0 )
v110 = v109 % v84;
else
v110 = (v84 - 1) & v109;
*((_QWORD *)v168 + v110) = v96;
}
goto LABEL_182;
}
LABEL_181:
*v96 = *v103;
*v103 = v96;
LABEL_182:
++v171;
LODWORD(v92) = (unsigned __int8)v158 & 1;
LABEL_183:
if ( (_DWORD)v92 )
LABEL_199:
operator delete(v160);
LABEL_184:
v80 = *Binding;
}
}
}
LODWORD(v48) = v42 >> 1;
if ( (v42 & 1) != 0 )
{
v43 = *((char **)a2 + 1);
goto LABEL_228;
}
LABEL_146:
v48 = (char *)(int)v48;
goto LABEL_88;
}
}
else
{
LODWORD(v48) = v42 >> 1;
if ( v42 >> 1 > v130 )
{
v45 = (int)v48 - v130;
v44 = a2 + 1;
v46 = &a2[v130 + 1];
if ( !v45 )
goto LABEL_146;
goto LABEL_86;
}
}
}
if ( (v155 & 1) != 0 )
operator delete(v157);
if ( (v152 & 1) != 0 )
operator delete(v154);
if ( (v149 & 1) != 0 )
operator delete(v151);
goto LABEL_64;
}
}
v36 = v17 >> 1;
if ( (v17 & 1) != 0 )
{
v18 = *((char **)a2 + 1);
goto LABEL_143;
}
LABEL_71:
v23 = (char *)v36;
goto LABEL_31;
}
}
else
{
v36 = v17 >> 1;
if ( v17 >> 1 > v130 )
{
v20 = v36 - v130;
v19 = a2 + 1;
v21 = &a2[v130 + 1];
if ( !v20 )
goto LABEL_71;
goto LABEL_29;
}
}
break;
}
v9 = 1;
goto LABEL_65;
}
}
else if ( v12 >> 1 )
{
v13 = v12 >> 1;
v14 = a2 + 1;
goto LABEL_21;
}
LABEL_64:
v9 = 0;
LABEL_65:
if ( (v146 & 1) != 0 )
operator delete(v148);
if ( (v143 & 1) != 0 )
operator delete(v145);
return v9;
}