//
// GJBaseGameLayer::getRecordString from 0x9ee8b0 to 0x9ef9b8 (4360 bytes)
//
// 4 xrefs:
// > PlayLayer::writePersistentSave @ 0x7033ac
// > PlayLayer::levelComplete @ 0x703de8
// > PlayLayer::levelComplete @ 0x7041a8
// > ??> @ 0xc4af8
//
// 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:06 +0000
//
__int64 *__usercall GJBaseGameLayer::getRecordString@(
__int64 *__return_ptr a1@,
GJBaseGameLayer *this@,
unsigned __int8 a3@)
{
__int64 v4; // x20
__int64 v5; // x0
unsigned __int64 v6; // x22
int v7; // w21
size_t v8; // x24
size_t v9; // x21
unsigned int PlayerButtonID; // w21
size_t v11; // x27
size_t v12; // x26
__int64 v13; // x20
size_t v14; // x24
size_t v15; // x21
unsigned __int64 v16; // x2
int v17; // w3
unsigned __int64 v18; // x6
__int64 v19; // x5
unsigned __int64 v20; // x4
__int64 **v21; // x0
__int64 *v22; // x20
unsigned __int64 v23; // x0
unsigned __int64 v24; // x0
size_t v25; // x26
size_t v26; // x21
size_t v27; // x26
size_t v28; // x21
size_t v29; // x27
size_t v30; // x21
cocos2d::CCString *v31; // x0
const char *CString; // x0
size_t v33; // x0
int v34; // w0
size_t v35; // x27
unsigned __int64 v36; // x0
char *v37; // x0
char *v38; // x0
size_t v39; // x27
size_t v40; // x21
size_t v41; // x27
size_t v42; // x21
size_t v43; // x27
size_t v44; // x21
char *v45; // x0
size_t v46; // x27
size_t v47; // x21
size_t v48; // x27
size_t v49; // x21
size_t v50; // x27
size_t v51; // x21
char *v52; // x0
size_t v53; // x27
size_t v54; // x21
size_t v55; // x27
size_t v56; // x21
size_t v57; // x27
size_t v58; // x21
char *v59; // x0
size_t v60; // x27
size_t v61; // x21
size_t v62; // x27
size_t v63; // x21
size_t v64; // x27
size_t v65; // x21
char *v66; // x0
size_t v67; // x27
size_t v68; // x21
size_t v69; // x27
size_t v70; // x21
size_t v71; // x27
size_t v72; // x21
char *v73; // x0
size_t v74; // x27
size_t v75; // x21
size_t v76; // x27
size_t v77; // x21
cocos2d::CCString *v78; // x0
const char *v79; // x0
size_t v80; // x0
int v81; // w0
size_t v82; // x26
unsigned __int64 v83; // x0
size_t v84; // x27
char *v85; // x0
char *v86; // x0
size_t v87; // x26
size_t v88; // x21
size_t v89; // x26
size_t v90; // x21
size_t v91; // x21
const void *v92; // x26
size_t v93; // x27
unsigned __int64 v94; // x0
size_t v95; // x20
char *v96; // x0
char *v97; // x0
size_t v98; // x20
size_t v99; // x0
int v100; // w0
unsigned __int8 v101; // w3
size_t v102; // x20
char *v103; // x7
int v104; // w4
size_t v105; // x23
unsigned __int64 v106; // x1
char *v107; // x24
size_t v108; // x2
size_t v109; // x20
size_t v110; // x1
__int64 v111; // x1
__int64 v112; // x2
char v113; // w0
unsigned __int64 v115; // x0
char *v116; // x0
char *v117; // x3
char *v118; // x1
unsigned __int64 v119; // x0
_BYTE *v120; // x0
_BYTE *v121; // x3
char *v122; // x1
unsigned __int64 v123; // x0
_BYTE *v124; // x0
_BYTE *v125; // x3
char *v126; // x1
unsigned __int64 v127; // x0
char *v128; // x0
char *v129; // x26
char *v130; // x1
unsigned __int64 v131; // x0
char *v132; // x0
char *v133; // x3
char *v134; // x1
unsigned __int64 v135; // x0
char *v136; // x0
char *v137; // x3
char *v138; // x1
unsigned __int64 v139; // x0
char *v140; // x0
char *v141; // x3
char *v142; // x1
unsigned __int64 v143; // x0
char *v144; // x0
char *v145; // x3
char *v146; // x1
unsigned __int64 v147; // x0
char *v148; // x0
char *v149; // x3
char *v150; // x1
unsigned __int64 v151; // x0
char *v152; // x0
char *v153; // x3
char *v154; // x1
unsigned __int64 v155; // x0
char *v156; // x0
char *v157; // x3
char *v158; // x1
__int64 v159; // x0
__int64 v160; // x1
__int64 v161; // x2
_BYTE *v162; // [xsp+60h] [xbp+60h]
_BYTE *v163; // [xsp+60h] [xbp+60h]
int v164; // [xsp+6Ch] [xbp+6Ch]
size_t v166; // [xsp+78h] [xbp+78h]
_BYTE *v167; // [xsp+78h] [xbp+78h]
_BYTE *v168; // [xsp+78h] [xbp+78h]
char *v169; // [xsp+80h] [xbp+80h]
char *v170; // [xsp+80h] [xbp+80h]
char *v171; // [xsp+80h] [xbp+80h]
char *v172; // [xsp+80h] [xbp+80h]
char *v173; // [xsp+88h] [xbp+88h]
char *v174; // [xsp+88h] [xbp+88h]
char *v175; // [xsp+88h] [xbp+88h]
char *v176; // [xsp+88h] [xbp+88h]
char *v177; // [xsp+88h] [xbp+88h]
char *v178; // [xsp+88h] [xbp+88h]
char *v179; // [xsp+88h] [xbp+88h]
char *v180; // [xsp+88h] [xbp+88h]
char *v181; // [xsp+88h] [xbp+88h]
char *v182; // [xsp+88h] [xbp+88h]
char *v183; // [xsp+88h] [xbp+88h]
char *v184; // [xsp+88h] [xbp+88h]
char *v185; // [xsp+88h] [xbp+88h]
char *v186; // [xsp+88h] [xbp+88h]
char *v187; // [xsp+88h] [xbp+88h]
char *v188; // [xsp+88h] [xbp+88h]
char *v189; // [xsp+88h] [xbp+88h]
char *v190; // [xsp+88h] [xbp+88h]
char *v191; // [xsp+98h] [xbp+98h]
__int64 v192; // [xsp+D8h] [xbp+D8h] BYREF
size_t v193; // [xsp+E0h] [xbp+E0h]
char *v194; // [xsp+E8h] [xbp+E8h]
__int64 v195; // [xsp+F0h] [xbp+F0h] BYREF
size_t v196; // [xsp+F8h] [xbp+F8h]
char *v197; // [xsp+100h] [xbp+100h]
__int64 v198; // [xsp+108h] [xbp+108h] BYREF
size_t v199; // [xsp+110h] [xbp+110h]
char *v200; // [xsp+118h] [xbp+118h]
__int64 v201; // [xsp+120h] [xbp+120h] BYREF
size_t v202; // [xsp+128h] [xbp+128h]
char *v203; // [xsp+130h] [xbp+130h]
char *v204; // [xsp+138h] [xbp+138h] BYREF
unsigned __int64 v205; // [xsp+140h] [xbp+140h]
char *v206; // [xsp+148h] [xbp+148h]
_BYTE v207[504]; // [xsp+150h] [xbp+150h] BYREF
v164 = a3;
if ( !*((_BYTE *)this + 12744) )
{
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
std::string::__init(a1, &byte_11B8890, 0);
return a1;
}
v4 = *((_QWORD *)this + 1606);
v5 = *((_QWORD *)this + 1607);
v204 = nullptr;
v205 = 500;
v206 = v207;
if ( !((v5 - v4) >> 4) )
{
v98 = 0;
goto LABEL_107;
}
v6 = 0;
v7 = 1;
do
{
while ( 2 )
{
v13 = v4 + 16 * v6;
if ( !v7 )
{
v14 = (size_t)v204;
v15 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v15;
v206[v14] = aLjavaLangClass[24];
}
if ( !*(_BYTE *)(v13 + 4) )
{
v8 = (size_t)v204;
v9 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v9;
v206[v8] = 45;
}
fmt::BasicWriter::FormatInt,char>>(
(size_t *)&v204,
*(_DWORD *)(v13 + 8));
PlayerButtonID = GJBaseGameLayer::getPlayerButtonID(this, *(_DWORD *)v13, *(_BYTE *)(v13 + 5));
if ( PlayerButtonID != 1 )
{
v11 = (size_t)v204;
v12 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v12;
v206[v11] = 44;
fmt::BasicWriter::FormatInt,char>>(
(size_t *)&v204,
PlayerButtonID);
if ( PlayerButtonID - 98 <= 1 )
{
v16 = *((_QWORD *)this + 1610);
v17 = *(_DWORD *)(v13 + 12);
if ( v16 )
{
v18 = v16 - 1;
v19 = (v16 - 1) & v16;
v20 = v19 ? v17 % v16 : v17 & v18;
v21 = *(__int64 ***)(*((_QWORD *)this + 1609) + 8 * v20);
if ( v21 )
{
v22 = *v21;
if ( *v21 )
{
v23 = v22[1];
if ( !v19 )
{
LABEL_23:
v24 = v18 & v23;
goto LABEL_24;
}
while ( 1 )
{
v24 = v23 % v16;
LABEL_24:
if ( v20 != v24 )
goto LABEL_12;
if ( v17 == *((_DWORD *)v22 + 4) )
break;
v22 = (__int64 *)*v22;
if ( !v22 )
goto LABEL_12;
v23 = v22[1];
if ( !v19 )
goto LABEL_23;
}
v25 = (size_t)v204;
v26 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v26;
v206[v25] = aGeneratorUncom[24];
v27 = (size_t)v204;
v28 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v28;
v206[v27] = aReachPathOfLav[24];
v29 = (size_t)v204;
v30 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v30;
v206[v29] = 44;
v31 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%llu",
(const char *)v22[4]);
CString = (const char *)cocos2d::CCString::getCString(v31);
v192 = 0;
v193 = 0;
v194 = nullptr;
v173 = (char *)CString;
v33 = strlen(CString);
std::string::__init(&v192, v173, v33);
if ( (v192 & 1) != 0 )
{
v35 = v193;
v169 = v194;
if ( v193 || !v194 )
{
LABEL_38:
v166 = (size_t)v204;
v36 = v205;
v174 = &v204[v35];
if ( (unsigned __int64)&v204[v35] <= v205 )
{
LABEL_39:
v37 = v206;
goto LABEL_40;
}
LABEL_151:
v123 = v36 + (v36 >> 1);
if ( (unsigned __int64)v174 >= v123 )
v123 = (unsigned __int64)v174;
v205 = v123;
v124 = (_BYTE *)operator new[](v123);
v125 = v124;
v126 = v206;
if ( v204 )
{
v163 = v124;
memmove(v124, v206, (size_t)v204);
v126 = v206;
v125 = v163;
}
if ( v126 != v207 && v126 )
{
v162 = v125;
operator delete[](v126);
v125 = v162;
}
v206 = v125;
v37 = v125;
LABEL_40:
v204 = v174;
if ( v35 )
{
memmove(&v37[v166], v169, v35);
v174 = v204;
}
if ( (unsigned __int64)(v174 + 1) > v205 )
{
v135 = v205 + (v205 >> 1);
if ( (unsigned __int64)(v174 + 1) >= v135 )
v135 = (unsigned __int64)(v174 + 1);
v205 = v135;
v136 = (char *)operator new[](v135);
v137 = v136;
v138 = v206;
if ( v204 )
{
v172 = v136;
memmove(v136, v206, (size_t)v204);
v138 = v206;
v137 = v172;
}
if ( v138 != v207 && v138 )
{
v171 = v137;
operator delete[](v138);
v137 = v171;
}
v206 = v137;
v38 = v137;
}
else
{
v38 = v206;
}
v204 = v174 + 1;
v174[(_QWORD)v38] = 44;
if ( (v192 & 1) != 0 )
operator delete(v194);
v39 = (size_t)v204;
v40 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v40;
v206[v39] = 50;
v41 = (size_t)v204;
v42 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v42;
v206[v41] = 44;
fmt::BasicWriter::FormatInt,char>>(
(size_t *)&v204,
*((_DWORD *)v22 + 6));
v43 = (size_t)v204;
v44 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
{
v131 = v205 + (v205 >> 1);
if ( v131 < v44 )
v131 = (unsigned __int64)(v204 + 1);
v205 = v131;
v132 = (char *)operator new[](v131);
v133 = v132;
v134 = v206;
if ( v204 )
{
v190 = v132;
memmove(v132, v206, (size_t)v204);
v134 = v206;
v133 = v190;
}
if ( v134 != v207 && v134 )
{
v178 = v133;
operator delete[](v134);
v133 = v178;
}
v206 = v133;
v45 = v133;
}
else
{
v45 = v206;
}
v204 = (char *)v44;
v45[v43] = 44;
v46 = (size_t)v204;
v47 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v47;
v206[v46] = aReachPathOfLav_1[24];
v48 = (size_t)v204;
v49 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v49;
v206[v48] = 44;
fmt::BasicWriter::FormatInt,char>>(
(size_t *)&v204,
*((_DWORD *)v22 + 10));
v50 = (size_t)v204;
v51 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
{
v155 = v205 + (v205 >> 1);
if ( v155 < v51 )
v155 = (unsigned __int64)(v204 + 1);
v205 = v155;
v156 = (char *)operator new[](v155);
v157 = v156;
v158 = v206;
if ( v204 )
{
v184 = v156;
memmove(v156, v206, (size_t)v204);
v158 = v206;
v157 = v184;
}
if ( v158 != v207 && v158 )
{
v183 = v157;
operator delete[](v158);
v157 = v183;
}
v206 = v157;
v52 = v157;
}
else
{
v52 = v206;
}
v204 = (char *)v51;
v52[v50] = 44;
v53 = (size_t)v204;
v54 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v54;
v206[v53] = 52;
v55 = (size_t)v204;
v56 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v56;
v206[v55] = 44;
fmt::BasicWriter::FormatInt,char>>(
(size_t *)&v204,
*((_DWORD *)v22 + 11));
v57 = (size_t)v204;
v58 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
{
v151 = v205 + (v205 >> 1);
if ( v151 < v58 )
v151 = (unsigned __int64)(v204 + 1);
v205 = v151;
v152 = (char *)operator new[](v151);
v153 = v152;
v154 = v206;
if ( v204 )
{
v185 = v152;
memmove(v152, v206, (size_t)v204);
v154 = v206;
v153 = v185;
}
if ( v154 != v207 && v154 )
{
v182 = v153;
operator delete[](v154);
v153 = v182;
}
v206 = v153;
v59 = v153;
}
else
{
v59 = v206;
}
v204 = (char *)v58;
v59[v57] = 44;
v60 = (size_t)v204;
v61 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v61;
v206[v60] = aReachPathOfLav_3[24];
v62 = (size_t)v204;
v63 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v63;
v206[v62] = 44;
fmt::BasicWriter::FormatInt,char>>(
(size_t *)&v204,
*((_DWORD *)v22 + 14));
v64 = (size_t)v204;
v65 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
{
v147 = v205 + (v205 >> 1);
if ( v147 < v65 )
v147 = (unsigned __int64)(v204 + 1);
v205 = v147;
v148 = (char *)operator new[](v147);
v149 = v148;
v150 = v206;
if ( v204 )
{
v186 = v148;
memmove(v148, v206, (size_t)v204);
v150 = v206;
v149 = v186;
}
if ( v150 != v207 && v150 )
{
v181 = v149;
operator delete[](v150);
v149 = v181;
}
v206 = v149;
v66 = v149;
}
else
{
v66 = v206;
}
v204 = (char *)v65;
v66[v64] = 44;
v67 = (size_t)v204;
v68 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v68;
v206[v67] = aReachPathOfLav_4[24];
v69 = (size_t)v204;
v70 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v70;
v206[v69] = 44;
fmt::BasicWriter::FormatInt,char>>(
(size_t *)&v204,
*((_DWORD *)v22 + 15));
v71 = (size_t)v204;
v72 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
{
v143 = v205 + (v205 >> 1);
if ( v143 < v72 )
v143 = (unsigned __int64)(v204 + 1);
v205 = v143;
v144 = (char *)operator new[](v143);
v145 = v144;
v146 = v206;
if ( v204 )
{
v187 = v144;
memmove(v144, v206, (size_t)v204);
v146 = v206;
v145 = v187;
}
if ( v146 != v207 && v146 )
{
v180 = v145;
operator delete[](v146);
v145 = v180;
}
v206 = v145;
v73 = v145;
}
else
{
v73 = v206;
}
v204 = (char *)v72;
v73[v71] = 44;
v74 = (size_t)v204;
v75 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v75;
v206[v74] = aReachPathOfLav_5[24];
v76 = (size_t)v204;
v77 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v77;
v206[v76] = 44;
v78 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%llu",
(const char *)v22[6]);
v79 = (const char *)cocos2d::CCString::getCString(v78);
v195 = 0;
v196 = 0;
v197 = nullptr;
v175 = (char *)v79;
v80 = strlen(v79);
std::string::__init(&v195, v175, v80);
if ( (v195 & 1) != 0 )
{
v82 = v196;
v176 = v197;
if ( v196 || !v197 )
{
LABEL_83:
v170 = v204;
v83 = v205;
v84 = (size_t)&v204[v82];
if ( (unsigned __int64)&v204[v82] <= v205 )
{
LABEL_84:
v85 = v206;
goto LABEL_85;
}
LABEL_140:
v119 = v83 + (v83 >> 1);
if ( v84 >= v119 )
v119 = v84;
v205 = v119;
v120 = (_BYTE *)operator new[](v119);
v121 = v120;
v122 = v206;
if ( v204 )
{
v168 = v120;
memmove(v120, v206, (size_t)v204);
v122 = v206;
v121 = v168;
}
if ( v122 != v207 && v122 )
{
v167 = v121;
operator delete[](v122);
v121 = v167;
}
v206 = v121;
v85 = v121;
LABEL_85:
v204 = (char *)v84;
if ( v82 )
{
memmove(&v170[(_QWORD)v85], v176, v82);
v84 = (size_t)v204;
}
if ( v84 + 1 > v205 )
{
v139 = v205 + (v205 >> 1);
if ( v84 + 1 >= v139 )
v139 = v84 + 1;
v205 = v139;
v140 = (char *)operator new[](v139);
v141 = v140;
v142 = v206;
if ( v204 )
{
v188 = v140;
memmove(v140, v206, (size_t)v204);
v142 = v206;
v141 = v188;
}
if ( v142 != v207 && v142 )
{
v179 = v141;
operator delete[](v142);
v141 = v179;
}
v206 = v141;
v86 = v141;
}
else
{
v86 = v206;
}
v204 = (char *)(v84 + 1);
v86[v84] = 44;
if ( (v195 & 1) != 0 )
operator delete(v197);
v87 = (size_t)v204;
v88 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v88;
v206[v87] = aReachPathOfLav_6[24];
v89 = (size_t)v204;
v90 = (size_t)(v204 + 1);
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
v204 = (char *)v90;
v206[v89] = 44;
if ( (v22[8] & 1) != 0 )
{
v91 = v22[9];
v92 = (const void *)v22[10];
if ( v91 )
{
LABEL_98:
v93 = (size_t)v204;
v94 = v205;
v95 = (size_t)&v204[v91];
if ( (unsigned __int64)&v204[v91] <= v205 )
{
LABEL_99:
v96 = v206;
goto LABEL_100;
}
LABEL_129:
v115 = v94 + (v94 >> 1);
if ( v95 >= v115 )
v115 = v95;
v205 = v115;
v116 = (char *)operator new[](v115);
v117 = v116;
v118 = v206;
if ( v204 )
{
v189 = v116;
memmove(v116, v206, (size_t)v204);
v118 = v206;
v117 = v189;
}
if ( v118 != v207 && v118 )
{
v177 = v117;
operator delete[](v118);
v117 = v177;
}
v206 = v117;
v96 = v117;
LABEL_100:
v204 = (char *)v95;
if ( v91 )
{
memmove(&v96[v93], v92, v91);
v95 = (size_t)v204;
}
if ( v95 + 1 > v205 )
{
v127 = v205 + (v205 >> 1);
if ( v95 + 1 >= v127 )
v127 = v95 + 1;
v205 = v127;
v128 = (char *)operator new[](v127);
v129 = v128;
v130 = v206;
if ( v204 )
{
memmove(v128, v206, (size_t)v204);
v130 = v206;
}
if ( v130 != v207 && v130 )
operator delete[](v130);
v206 = v129;
v97 = v129;
}
else
{
v97 = v206;
}
v204 = (char *)(v95 + 1);
++v6;
v7 = 0;
v97[v95] = 44;
v4 = *((_QWORD *)this + 1606);
if ( v6 < (*((_QWORD *)this + 1607) - v4) >> 4 )
continue;
goto LABEL_105;
}
if ( !v92 )
{
v93 = (size_t)v204;
v94 = v205;
v95 = (size_t)v204;
if ( (unsigned __int64)v204 <= v205 )
goto LABEL_99;
goto LABEL_129;
}
}
else
{
v91 = *((_BYTE *)v22 + 64) >> 1;
v92 = (char *)v22 + 65;
if ( *((_BYTE *)v22 + 64) >> 1 )
goto LABEL_98;
}
v91 = strlen((const char *)v92);
goto LABEL_98;
}
}
else
{
v81 = (int)(unsigned __int8)v195 >> 1;
v82 = v81;
if ( v81 )
{
v176 = (char *)&v195 + 1;
goto LABEL_83;
}
v176 = (char *)&v195 + 1;
}
v82 = strlen(v176);
v170 = v204;
v83 = v205;
v84 = (size_t)&v204[v82];
if ( (unsigned __int64)&v204[v82] <= v205 )
goto LABEL_84;
goto LABEL_140;
}
}
else
{
v34 = (int)(unsigned __int8)v192 >> 1;
v35 = v34;
if ( v34 )
{
v169 = (char *)&v192 + 1;
goto LABEL_38;
}
v169 = (char *)&v192 + 1;
}
v35 = strlen(v169);
v166 = (size_t)v204;
v36 = v205;
v174 = &v204[v35];
if ( (unsigned __int64)&v204[v35] <= v205 )
goto LABEL_39;
goto LABEL_151;
}
}
}
}
}
break;
}
LABEL_12:
v4 = *((_QWORD *)this + 1606);
++v6;
v7 = 0;
}
while ( v6 < (*((_QWORD *)this + 1607) - v4) >> 4 );
LABEL_105:
v98 = (size_t)v204;
if ( (unsigned __int64)(v204 + 1) > v205 )
fmt::internal::Array::grow((size_t *)&v204, (unsigned __int64)(v204 + 1));
LABEL_107:
v206[v98] = 0;
v198 = 0;
v199 = 0;
v200 = nullptr;
v191 = v206;
v99 = strlen(v206);
std::string::__init(&v198, v191, v99);
GJBaseGameLayer::getRecordExtra(this, &v201);
v100 = v201 & 1;
if ( !v100 )
{
v101 = v198;
v102 = (unsigned __int8)v201 >> 1;
v103 = (char *)&v201 + 1;
v104 = v198 & 1;
if ( v104 )
goto LABEL_109;
LABEL_227:
v105 = v101 >> 1;
v106 = 22;
if ( v102 > 22 - v105 )
goto LABEL_228;
LABEL_110:
if ( v102 )
{
v107 = (char *)&v198 + 1;
if ( v104 )
v107 = v200;
v108 = v102;
v109 = v105 + v102;
memcpy(&v107[v105], v103, v108);
if ( (v198 & 1) != 0 )
v199 = v109;
else
LOBYTE(v198) = 2 * v109;
v107[v109] = 0;
v100 = v201 & 1;
}
if ( !v100 )
goto LABEL_117;
LABEL_229:
operator delete(v203);
if ( !v164 )
goto LABEL_230;
LABEL_118:
v110 = (unsigned __int8)v198 >> 1;
if ( (v198 & 1) != 0 )
v110 = v199;
if ( !v110 )
goto LABEL_230;
cocos2d::ZipUtils::compressString(&v201, (int)&v198, 0, -1);
v111 = v202;
v112 = (__int64)v203;
*a1 = v201;
a1[1] = v111;
v113 = v198;
a1[2] = v112;
if ( (v113 & 1) == 0 )
goto LABEL_122;
LABEL_231:
operator delete(v200);
goto LABEL_122;
}
v101 = v198;
v103 = v203;
v102 = v202;
v104 = v198 & 1;
if ( !v104 )
goto LABEL_227;
LABEL_109:
v105 = v199;
v106 = (v198 & 0xFFFFFFFFFFFFFFFELL) - 1;
if ( v102 <= v106 - v199 )
goto LABEL_110;
LABEL_228:
std::string::__grow_by_and_replace((__int64)&v198, v106, v105 + v102 - v106, v105, v105, 0, v102, v103);
if ( (v201 & 1) != 0 )
goto LABEL_229;
LABEL_117:
if ( v164 )
goto LABEL_118;
LABEL_230:
v159 = v198;
v160 = v199;
v198 = 0;
v161 = (__int64)v200;
*a1 = v159;
a1[1] = v160;
LOBYTE(v159) = v198;
a1[2] = v161;
v199 = 0;
v200 = nullptr;
if ( (v159 & 1) != 0 )
goto LABEL_231;
LABEL_122:
if ( v206 != v207 && v206 )
operator delete[](v206);
return a1;
}