//
// sub_10097E2F0 from 0x10097e2f0 to 0x10097f1d6 (3814 bytes)
//
// 4 xrefs:
// > sub_10097D570 @ 0x10097db8c
// > AutoBackupPopup::backupsChanged @ 0x100980dc7
// > sub_100980DD0 @ 0x100980df1
// > AutoBackupPopup::textChanged @ 0x100980f8a
//
// This function is hookable on this platform (idp: pc, 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:38:59 +0000
//
void __fastcall sub_10097E2F0(__int64 a1)
{
__int64 v1; // r13
__int64 v2; // r12
__int64 v3; // r14
__int64 i; // rbx
__int64 v5; // rax
bool v6; // zf
unsigned __int8 *v7; // r15
__int64 v8; // rbx
unsigned int v9; // ecx
unsigned __int64 j; // r15
char v11; // bl
signed __int64 v12; // rdx
_BYTE *v13; // rax
char v14; // al
_BYTE *v15; // rcx
char *v16; // r15
unsigned int v17; // r12d
signed __int64 v18; // r12
char *v19; // r13
char *v20; // r15
bool v21; // r15
__int64 v22; // rsi
unsigned __int64 v23; // rbx
size_t v24; // rdx
char *v25; // rax
unsigned __int8 *v26; // rbx
__int64 v27; // r9
__int64 **v28; // r14
char *v29; // rcx
unsigned __int8 *v30; // rcx
unsigned int v31; // r15d
size_t v32; // r15
const void *v33; // r12
unsigned int v34; // r13d
size_t v35; // r13
__int64 *v36; // rsi
size_t v37; // rbx
int v38; // eax
bool v39; // cl
int v40; // eax
bool v41; // cl
__int128 v42; // kr00_16
__int64 v43; // rsi
__int64 v44; // rdi
__int128 v45; // xmm0
__int64 v46; // rcx
_QWORD *v47; // rax
_QWORD *v48; // rdi
_QWORD *v49; // rcx
__int64 v50; // rdi
__int64 v51; // rdi
__int64 v52; // r9
__int64 v53; // rcx
double v54; // xmm0_8
char *v55; // r15
char *v56; // r12
unsigned __int8 *v57; // rbx
__int64 **v58; // r14
unsigned int v59; // r8d
size_t v60; // r8
const void *v61; // r13
unsigned int v62; // r15d
size_t v63; // r15
__int64 *v64; // rsi
size_t v65; // rbx
size_t v66; // r12
int v67; // eax
bool v68; // cl
int v69; // eax
bool v70; // cl
unsigned __int8 v71; // al
char *v72; // rdi
char *v73; // r14
__int64 v74; // rbx
char *v75; // r15
unsigned __int64 v76; // rax
__int64 v77; // r14
_BYTE *v78; // r12
signed __int64 v79; // r15
__int64 v80; // r14
unsigned __int64 v81; // rcx
__int64 v82; // rax
unsigned __int64 v83; // r13
_QWORD *v84; // rbx
_QWORD *v85; // rax
char *v86; // rax
void *v87; // rax
unsigned __int8 *v88; // r14
void *v89; // r15
double v90; // xmm0_8
char *v91; // r15
__int64 v92; // rax
void *v93; // r15
__int64 v94; // rdi
void *v95; // r15
unsigned __int8 *v96; // rax
unsigned int v97; // r14d
size_t v98; // r15
unsigned __int64 v99; // r13
char *data; // r12
const void *v101; // rsi
size_t v102; // rbx
unsigned __int8 *v103; // rbx
const std::string::value_type *v104; // rsi
std::string::size_type v105; // rdx
std::string *v106; // rax
__int64 v107; // rax
char *v108; // rax
const std::string::value_type *CString; // rax
std::string::pointer v110; // rdi
__int64 v111; // rbx
void *v112; // r14
float v113; // xmm0_4
const char *v114; // rsi
float v115; // [rsp+0h] [rbp-110h]
__int64 ***v116; // [rsp+18h] [rbp-F8h]
__int64 v117; // [rsp+20h] [rbp-F0h]
__int64 v118; // [rsp+28h] [rbp-E8h]
float v119; // [rsp+30h] [rbp-E0h]
void *v120[2]; // [rsp+48h] [rbp-C8h] BYREF
void *v121; // [rsp+58h] [rbp-B8h]
std::string __dst; // [rsp+60h] [rbp-B0h] BYREF
std::string v123; // [rsp+80h] [rbp-90h] BYREF
_QWORD *v124; // [rsp+98h] [rbp-78h]
_BYTE __s[24]; // [rsp+A0h] [rbp-70h] BYREF
int __c[2]; // [rsp+B8h] [rbp-58h]
unsigned __int8 *v127; // [rsp+C0h] [rbp-50h]
__int64 v128; // [rsp+C8h] [rbp-48h]
unsigned __int8 *v129; // [rsp+D0h] [rbp-40h]
char *v130; // [rsp+D8h] [rbp-38h]
void *__s2; // [rsp+E0h] [rbp-30h]
v1 = a1;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1352LL))(a1);
sub_10095CEF0(a1);
v2 = a1 + 848;
v3 = *(_QWORD *)(a1 + 848);
for ( i = *(_QWORD *)(a1 + 856); i != v3; sub_1009865F0(a1 + 848, i) )
i -= 128;
*(_QWORD *)(a1 + 856) = v3;
v5 = *(_QWORD *)(a1 + 824);
v6 = *(_QWORD *)(a1 + 832) == v5;
v124 = (_QWORD *)a1;
if ( v6 )
goto LABEL_44;
v127 = (unsigned __int8 *)(a1 + 873);
v7 = nullptr;
v128 = a1 + 848;
while ( 2 )
{
v9 = *(unsigned __int8 *)(v1 + 872);
if ( (v9 & 1) != 0 )
{
if ( !*(_QWORD *)(v1 + 880) )
goto LABEL_32;
}
else if ( !(v9 >> 1) )
{
goto LABEL_32;
}
v6 = (*(_BYTE *)(v5 + ((_QWORD)v7 << 7) + 48) & 1) == 0;
v129 = v7;
if ( v6 )
{
*(_QWORD *)&__s[16] = *(_QWORD *)(v5 + ((_QWORD)v7 << 7) + 64);
*(_OWORD *)__s = *(_OWORD *)(v5 + ((_QWORD)v7 << 7) + 48);
}
else
{
sub_10001AD30(__s, *(const void **)(v5 + ((_QWORD)v7 << 7) + 64), *(_QWORD *)(v5 + ((_QWORD)v7 << 7) + 56));
}
for ( j = 0; ; ++j )
{
v11 = __s[0];
if ( (__s[0] & 1) != 0 )
break;
v12 = __s[0] >> 1;
if ( j >= v12 )
{
v16 = &__s[1];
v17 = *(unsigned __int8 *)(v1 + 872);
if ( (v17 & 1) == 0 )
goto LABEL_35;
LABEL_26:
__s2 = *(void **)(v1 + 888);
v18 = *(_QWORD *)(v1 + 880);
if ( !v18 )
goto LABEL_36;
goto LABEL_27;
}
LABEL_21:
v13 = &__s[1];
if ( (__s[0] & 1) != 0 )
v13 = *(_BYTE **)&__s[16];
v14 = __tolower((unsigned __int8)v13[j]);
v15 = &__s[1];
if ( (__s[0] & 1) != 0 )
v15 = *(_BYTE **)&__s[16];
v15[j] = v14;
}
v12 = *(_QWORD *)&__s[8];
if ( j < *(_QWORD *)&__s[8] )
goto LABEL_21;
v16 = *(char **)&__s[16];
v17 = *(unsigned __int8 *)(v1 + 872);
if ( (v17 & 1) != 0 )
goto LABEL_26;
LABEL_35:
v18 = v17 >> 1;
__s2 = v127;
if ( !v18 )
{
LABEL_36:
v21 = 0;
v1 = (__int64)v124;
v2 = v128;
if ( (__s[0] & 1) == 0 )
goto LABEL_31;
LABEL_30:
operator delete(*(void **)&__s[16]);
goto LABEL_31;
}
LABEL_27:
v19 = &v16[v12];
v130 = v16;
if ( v12 >= v18 )
{
__c[0] = *(char *)__s2;
do
{
v24 = v12 - v18 + 1;
if ( !v24 )
break;
v25 = (char *)memchr(v16, __c[0], v24);
if ( !v25 )
break;
v20 = v25;
if ( !memcmp(v25, __s2, v18) )
goto LABEL_29;
v16 = v20 + 1;
v12 = v19 - v16;
}
while ( v19 - v16 >= v18 );
}
v20 = v19;
LABEL_29:
v21 = v20 == v19 || v20 - v130 == -1;
v1 = (__int64)v124;
v2 = v128;
if ( (v11 & 1) != 0 )
goto LABEL_30;
LABEL_31:
v5 = *(_QWORD *)(v1 + 824);
v6 = !v21;
v7 = v129;
if ( v6 )
{
LABEL_32:
v22 = v5 + ((_QWORD)v7 << 7);
v23 = *(_QWORD *)(v1 + 856);
if ( v23 >= *(_QWORD *)(v1 + 864) )
{
v8 = sub_100986670(v2, v22);
}
else
{
sub_1009868A0(*(_QWORD *)(v1 + 856), v22);
v8 = v23 + 128;
*(_QWORD *)(v1 + 856) = v8;
}
*(_QWORD *)(v1 + 856) = v8;
v5 = *(_QWORD *)(v1 + 824);
}
if ( (unsigned __int64)++v7 < (*(_QWORD *)(v1 + 832) - v5) >> 7 )
continue;
break;
}
LABEL_44:
sub_100980B10(v1);
*(_OWORD *)&__s[8] = 0;
*(_QWORD *)__s = &__s[8];
v26 = *(unsigned __int8 **)(v1 + 848);
v27 = *(_QWORD *)(v1 + 856);
if ( (unsigned __int8 *)v27 == v26 )
{
v43 = 0;
v42 = (unsigned __int64)&__s[8];
goto LABEL_73;
}
v129 = *(unsigned __int8 **)(v1 + 848);
v28 = *(__int64 ***)(v1 + 952);
if ( !v28 )
{
v43 = 0;
v26 = v129;
v42 = (unsigned __int64)&__s[8];
goto LABEL_73;
}
v29 = nullptr;
LABEL_47:
v128 = v27;
v130 = v29;
v30 = &v129[128 * (_QWORD)v29];
v31 = *v30;
if ( (v31 & 1) != 0 )
{
v32 = *((_QWORD *)v30 + 1);
v33 = *((const void **)v30 + 2);
}
else
{
v32 = v31 >> 1;
v33 = v30 + 1;
}
v127 = v30;
*(_QWORD *)__c = v33;
while ( 2 )
{
v34 = *((unsigned __int8 *)v28 + 32);
if ( (v34 & 1) != 0 )
{
v35 = (size_t)v28[5];
v36 = v28[6];
}
else
{
v35 = v34 >> 1;
v36 = (__int64 *)((char *)v28 + 33);
}
v37 = v32;
if ( v35 < v32 )
v37 = v35;
__s2 = v36;
v38 = memcmp(v33, v36, v37);
v39 = v32 < v35;
if ( v38 )
v39 = v38 < 0;
if ( v39 )
{
LABEL_51:
v28 = (__int64 **)*v28;
if ( !v28 )
{
v1 = (__int64)v124;
v26 = v129;
v27 = v128;
goto LABEL_66;
}
continue;
}
break;
}
v40 = memcmp(__s2, v33, v37);
v41 = v35 < v32;
if ( v40 )
v41 = v40 < 0;
if ( v41 )
{
++v28;
v33 = *(const void **)__c;
goto LABEL_51;
}
sub_1005913C0((__int64 **)__s, v127, (__int64)v127);
v1 = (__int64)v124;
v26 = (unsigned __int8 *)v124[106];
v27 = v124[107];
LABEL_66:
v29 = v130;
while ( (unsigned __int64)++v29 < (v27 - (__int64)v26) >> 7 )
{
v129 = v26;
v28 = *(__int64 ***)(v1 + 952);
if ( v28 )
goto LABEL_47;
v26 = v129;
}
v42 = *(_OWORD *)__s;
v43 = *(_QWORD *)&__s[16];
LABEL_73:
v44 = *(_QWORD *)(v1 + 952);
v45 = *(_OWORD *)(v1 + 944);
*(_OWORD *)(v1 + 944) = v42;
*(_OWORD *)__s = v45;
v46 = *(_QWORD *)(v1 + 960);
*(_QWORD *)(v1 + 960) = v43;
*(_QWORD *)&__s[16] = v46;
v47 = (_QWORD *)(*((_QWORD *)&v42 + 1) + 16LL);
if ( !v43 )
v47 = (_QWORD *)(v1 + 944);
v48 = (_QWORD *)(v44 + 16);
v6 = v46 == 0;
v49 = __s;
if ( !v6 )
v49 = v48;
v116 = (__int64 ***)(v1 + 952);
*v47 = v1 + 952;
*v49 = &__s[8];
v50 = *(_QWORD *)(v1 + 992);
if ( v50 )
{
sub_10029CC00(v50, v43);
v26 = *(unsigned __int8 **)(v1 + 848);
v27 = *(_QWORD *)(v1 + 856);
}
if ( v26 == (unsigned __int8 *)v27 )
{
v114 = "No matching backups";
if ( *(_QWORD *)(v1 + 824) == *(_QWORD *)(v1 + 832) )
v114 = "No backups yet";
sub_10095D0B0(v1, (__int64)v114);
ScrollableContentLayer::setContentHeight(*(_QWORD *)(v1 + 688), 0.0);
goto LABEL_153;
}
v51 = *(_QWORD *)(v1 + 688);
v52 = (v27 - (__int64)v26) >> 7;
if ( (int)v52 <= 0 )
goto LABEL_146;
v127 = *(unsigned __int8 **)(v51 + 416);
v117 = v1 + 896;
v118 = v1 + 904;
v53 = 0;
while ( 2 )
{
v128 = v53;
HIDWORD(v54) = 0;
*(float *)&v54 = (float)((float)(int)v53 * 40.0) + 20.0;
v119 = *(float *)&v54;
v55 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_checkOn_001.png", v54);
v56 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_checkOff_001.png", v54);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v55 + 160LL))(v55, 0.60000002);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v56 + 160LL))(v56, 0.60000002);
v130 = CCMenuItemToggler::create((__int64)v56, (__int64)v55, v1, (__int64)sub_100981080, 0);
v57 = &v26[128 * v128];
v58 = *v116;
v6 = *v116 == nullptr;
v129 = v57;
if ( v6 )
{
LABEL_101:
v71 = 0;
}
else
{
v59 = *v57;
if ( (v59 & 1) != 0 )
{
v60 = *((_QWORD *)v57 + 1);
v61 = *((const void **)v57 + 2);
}
else
{
v60 = v59 >> 1;
v61 = v57 + 1;
}
*(_QWORD *)__c = v61;
while ( 1 )
{
while ( 1 )
{
v62 = *((unsigned __int8 *)v58 + 32);
if ( (v62 & 1) != 0 )
{
v63 = (size_t)v58[5];
v64 = v58[6];
}
else
{
v63 = v62 >> 1;
v64 = (__int64 *)((char *)v58 + 33);
}
v65 = v60;
if ( v63 < v60 )
v65 = v63;
v66 = v60;
__s2 = v64;
v67 = memcmp(v61, v64, v65);
v68 = v66 < v63;
if ( v67 )
v68 = v67 < 0;
if ( !v68 )
break;
v60 = v66;
v58 = (__int64 **)*v58;
if ( !v58 )
goto LABEL_101;
}
v69 = memcmp(__s2, v61, v65);
v70 = v63 < v66;
if ( v69 )
v70 = v69 < 0;
if ( !v70 )
break;
v60 = v66;
v61 = *(const void **)__c;
v58 = (__int64 **)v58[1];
if ( !v58 )
goto LABEL_101;
}
v71 = 1;
}
CCMenuItemToggler::toggle((__int64)v130, v71);
v72 = v130;
v130[393] = 1;
CCMenuItemToggler::setSizeMult((__int64)v72, 1.3);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v130 + 72LL))(v130, v128);
v115 = -*(float *)&v54;
sub_100278250((float *)&v123, 17.0, -*(float *)&v54);
v73 = v130;
(*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v130 + 184LL))(v130, &v123);
(*(void (__fastcall **)(unsigned __int8 *, char *, __int64))(*(_QWORD *)v127 + 464LL))(v127, v73, 2);
v74 = (__int64)v124;
v75 = (char *)v124[122];
v76 = v124[123];
if ( (unsigned __int64)v75 >= v76 )
{
v78 = (_BYTE *)v124[121];
v79 = v75 - v78;
v80 = v79 >> 3;
v81 = (v79 >> 3) + 1;
if ( v81 > 0x1FFFFFFFFFFFFFFFLL )
sub_1009689A0();
v82 = v76 - (_QWORD)v78;
v83 = v82 >> 2;
if ( v82 >> 2 <= v81 )
v83 = (v79 >> 3) + 1;
if ( (unsigned __int64)v82 >= 0x7FFFFFFFFFFFFFF8LL )
v83 = 0x1FFFFFFFFFFFFFFFLL;
if ( v83 )
{
if ( v83 > 0x1FFFFFFFFFFFFFFFLL )
sub_10001ADB0();
v84 = operator new(8 * v83);
}
else
{
v84 = nullptr;
}
v84[v80] = v130;
v77 = (__int64)&v84[v80 + 1];
memcpy(v84, v78, v79);
v85 = v124;
v124[121] = v84;
v85[122] = v77;
v85[123] = &v84[v83];
v74 = (__int64)v85;
if ( v78 )
operator delete(v78);
}
else
{
*(_QWORD *)v75 = v130;
v77 = (__int64)(v75 + 8);
}
*(_QWORD *)(v74 + 976) = v77;
*(float *)&__s2 = *(float *)(v74 + 704) + -10.0;
v86 = ButtonSprite::create_1(
(__int64)"Restore",
0x32u,
0,
1u,
(__int64)"bigFont.fnt",
(__int64)"GJ_button_01.png",
0.40000001,
22.0);
v87 = CCMenuItemSpriteExtra::create((__int64)v86, 0, v74, (__int64)sub_1009812B0, 0);
v88 = v129;
v89 = v87;
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v87 + 72LL))(v87, v128);
*(float *)&__s2 = *(float *)&__s2 + -10.0;
sub_100278250((float *)&v123, *(float *)&__s2 + -25.0, v115);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v89 + 184LL))(v89, &v123);
v90 = (*(double (__fastcall **)(unsigned __int8 *, void *, __int64))(*(_QWORD *)v127 + 464LL))(v127, v89, 2);
v91 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"threadBtn_delete_001.png", v90);
v92 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v91 + 328LL))(v91);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v91 + 160LL))(v91, 22.0 / *(float *)(v92 + 4));
__c[0] = *(_DWORD *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v91 + 328LL))(v91);
LODWORD(v130) = (*(float (__fastcall **)(char *))(*(_QWORD *)v91 + 168LL))(v91);
*(float *)&__s2 = *(float *)&__s2 + -50.0;
v93 = CCMenuItemSpriteExtra::create((__int64)v91, 0, v74, (__int64)sub_100981650, 0);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v93 + 72LL))(v93, v128);
*(float *)__c = *(float *)__c * *(float *)&v130;
*(float *)&__s2 = (float)(*(float *)&__s2 + -10.0) + -10.0;
sub_100278250((float *)&v123, (float)(*(float *)__c * -0.5) + *(float *)&__s2, v115);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v93 + 184LL))(v93, &v123);
(*(void (__fastcall **)(unsigned __int8 *, void *, __int64))(*(_QWORD *)v127 + 464LL))(v127, v93, 2);
if ( (v88[48] & 1) != 0 )
v94 = *((_QWORD *)v88 + 8);
else
v94 = (__int64)(v88 + 49);
v95 = cocos2d::CCLabelBMFont::create_3(v94, (__int64)"bigFont.fnt");
sub_100278250((float *)&v123, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v95 + 296LL))(v95, &v123);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v95 + 160LL))(v95, 0.44999999);
*(float *)&__s2 = (float)((float)(*(float *)&__s2 - *(float *)__c) + -34.0) + -10.0;
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v95, *(float *)&__s2, (__m128)0x3EE66666u, (__m128)0x3E4CCCCDu);
sub_100278250((float *)&v123, 34.0, 8.0 - v119);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v95 + 184LL))(v95, &v123);
(*(void (__fastcall **)(unsigned __int8 *, void *, __int64))(*(_QWORD *)v127 + 464LL))(v127, v95, 1);
v96 = v88;
v97 = v88[72];
if ( (v97 & 1) != 0 )
v98 = *((_QWORD *)v96 + 10);
else
v98 = v97 >> 1;
v99 = v98 + 3;
if ( v98 + 3 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
if ( v99 >= 0x17 )
{
v102 = (v99 | 7) + 1;
if ( (v99 | 7) == 0x17 )
v102 = 26;
data = (char *)operator new(v102);
__dst.__r_.__value_.__r.__words[0] = v102 | 1;
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data;
__dst.__r_.__value_.__l.__size_ = v98 + 3;
v1 = (__int64)v124;
if ( (v97 & 1) == 0 )
goto LABEL_130;
LABEL_126:
v101 = *((const void **)v129 + 11);
LABEL_131:
memmove(data, v101, v98);
}
else
{
memset(&__dst, 0, sizeof(__dst));
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v99);
data = __dst.__r_.__value_.__s.__data_;
v1 = (__int64)v124;
if ( v98 )
{
if ( (v97 & 1) != 0 )
goto LABEL_126;
LABEL_130:
v101 = v129 + 73;
goto LABEL_131;
}
}
*(_DWORD *)&data[v98] = 2105376;
v103 = v129;
sub_1006494B0(v120);
if ( ((__int64)v120[0] & 1) != 0 )
{
v104 = (const std::string::value_type *)v121;
v105 = (std::string::size_type)v120[1];
}
else
{
v105 = LOBYTE(v120[0]) >> 1;
v104 = (char *)v120 + 1;
}
v106 = std::string::append(&__dst, v104, v105);
v123 = *v106;
*(_OWORD *)&v106->__r_.__value_.__l.0 = 0;
v106->__r_.__value_.__r.__words[2] = 0;
if ( ((__int64)v120[0] & 1) != 0 )
operator delete(v121);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
v107 = sub_100309350(v117, v103 + 24);
if ( v107 != v118 )
{
v108 = sub_10088E820(" Rev: %i", *(_DWORD *)(v107 + 56));
CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v108);
std::string::append(&v123, CString);
}
v110 = v123.__r_.__value_.__s.__data_;
v111 = v128;
if ( (*(_BYTE *)&v123.__r_.__value_.__s.0 & 1) != 0 )
v110 = v123.__r_.__value_.__l.__data_;
v112 = cocos2d::CCLabelBMFont::create_3((__int64)v110, (__int64)"chatFont.fnt");
sub_100278250((float *)&__dst, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v112 + 296LL))(v112, &__dst);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v112 + 160LL))(v112, 0.5);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v112 + 1024LL))(v112, 160);
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v112, *(float *)&__s2, (__m128)0x3F000000u, (__m128)0x3E4CCCCDu);
sub_100278250((float *)&__dst, 34.0, -9.0 - v119);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v112 + 184LL))(v112, &__dst);
(*(void (__fastcall **)(unsigned __int8 *, void *, __int64))(*(_QWORD *)v127 + 464LL))(v127, v112, 1);
if ( (*(_BYTE *)&v123.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v123.__r_.__value_.__l.__data_);
v53 = v111 + 1;
v26 = *(unsigned __int8 **)(v1 + 848);
if ( v53 < (int)((*(_QWORD *)(v1 + 856) - (_QWORD)v26) >> 7) )
continue;
break;
}
v52 = (__int64)(*(_QWORD *)(v1 + 856) - (_QWORD)v26) >> 7;
v51 = *(_QWORD *)(v1 + 688);
LABEL_146:
if ( v52 < 0 )
v113 = (float)(int)(((unsigned __int64)v52 >> 1) | v52 & 1) + (float)(int)(((unsigned __int64)v52 >> 1) | v52 & 1);
else
v113 = (float)(int)v52;
ScrollableContentLayer::setContentHeight(v51, v113 * 40.0);
LABEL_153:
sub_1001EAE60((__int64)__s, *(_QWORD **)&__s[8]);
}