//
// InvitesPopup::buildRows from 0x10050ed34 to 0x10050ff28 (4596 bytes)
//
// 6 xrefs:
// > sub_10050EB50 @ 0x10050ebcc
// > sub_10050EC8C @ 0x10050ed04
// > InvitesPopup::textChanged @ 0x100510068
// > InvitesPopup::threadInvitesFinished @ 0x100510184
// > sub_10051078C @ 0x100510870
// > InvitesPopup::threadUpdateFinished @ 0x100510a10
//
// 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 11:07:02 +0000
//
__int64 __fastcall InvitesPopup::buildRows(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x27
float v4; // s8
int v5; // w20
unsigned int v6; // w22
float v7; // s10
float v8; // s11
__int64 v9; // x0
__n128 v10; // q0
__int64 v11; // x28
signed __int64 size; // x8
char v13; // w21
std::string *p_dst; // x20
char v15; // w9
char *v16; // x24
signed __int64 v17; // x26
signed __int64 v18; // x8
int v19; // w21
void *v20; // x0
std::string *v21; // x20
char v22; // w9
char *v23; // x26
signed __int64 v24; // x23
char *v25; // x24
char *v26; // x25
char v27; // w20
char *v28; // x27
int v29; // w23
std::string *v30; // x0
signed __int64 v31; // x8
char *v32; // x0
char *v33; // x25
int v34; // w27
std::string *v35; // x0
signed __int64 v36; // x8
char *v37; // x0
bool v38; // zf
float v39; // s12
_WORD *v40; // x23
float v41; // s15
float v42; // s8
_QWORD *v43; // x24
unsigned __int64 v44; // x2
_QWORD *v45; // x0
float v46; // s0
__int64 v47; // x8
void *v48; // x24
_BOOL4 v49; // w25
float v50; // s0
float v51; // s1
float v52; // s14
float v53; // s11
float v54; // s13
const char *v55; // x9
void *v56; // x0
const char *CString; // x0
const char *v58; // x0
char *v59; // x1
void *v60; // x0
__int64 v61; // x26
float v62; // s0
float v63; // s8
float v64; // s8
void *v65; // x24
float v66; // s13
float v67; // s0
float v68; // s1
float v69; // s14
__int64 v70; // x23
int v71; // w8
float v72; // s9
const char *v73; // x0
void *v74; // x23
float v75; // s8
float v76; // s8
void *v77; // x23
const char *v78; // x8
void *v79; // x0
const char *v80; // x0
void *v81; // x24
float v82; // s0
float v83; // s1
const char *v84; // x8
void *v85; // x0
const char *v86; // x0
std::string *v87; // x0
__int128 v88; // q0
std::string *v89; // x0
__int128 v90; // q0
std::string::size_type v91; // x9
std::string *p_str; // x8
int v93; // w0
void *v94; // x24
std::string *v95; // x1
float v96; // s8
float v97; // s0
std::string::size_type v98; // x8
unsigned __int64 v99; // x26
std::string *v100; // x8
int v101; // w9
bool v102; // w21
std::string *v103; // x0
__int128 v104; // q0
std::string *v105; // x1
float v106; // s8
char *v107; // x9
void *v108; // x0
void *v109; // x23
float v110; // s1
void *v111; // x0
void *v112; // x23
float v113; // s11
_WORD *v114; // x24
void *v115; // x23
_OWORD *v116; // x23
const char *v117; // x1
void *__p; // [xsp+10h] [xbp-170h]
__int64 v120; // [xsp+20h] [xbp-160h]
int v121; // [xsp+50h] [xbp-130h]
int v122; // [xsp+54h] [xbp-12Ch]
void *v123; // [xsp+58h] [xbp-128h] BYREF
char *v124; // [xsp+60h] [xbp-120h]
__int64 v125; // [xsp+68h] [xbp-118h]
std::string __str; // [xsp+70h] [xbp-110h] BYREF
void *v127; // [xsp+90h] [xbp-F0h] BYREF
void *v128; // [xsp+98h] [xbp-E8h]
__int64 v129; // [xsp+A0h] [xbp-E0h]
std::string v130; // [xsp+A8h] [xbp-D8h] BYREF
std::string __dst; // [xsp+C0h] [xbp-C0h] BYREF
std::allocator __a; // [xsp+E7h] [xbp-99h] BYREF
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1352LL))(a1);
sub_10051B070(a1);
v2 = *(_QWORD *)(a1 + 792);
if ( !v2
|| (v3 = *(_QWORD *)(*(_QWORD *)(a1 + 688) + 416LL), v4 = *(float *)(a1 + 704), v122 = sub_1002E757C(v2), v122 < 1) )
{
LABEL_185:
if ( (*(char *)(a1 + 863) & 0x8000000000000000LL) != 0 )
{
if ( *(_QWORD *)(a1 + 848) )
goto LABEL_187;
}
else if ( *(_BYTE *)(a1 + 863) )
{
LABEL_187:
v117 = "No matches";
LABEL_192:
sub_10051B1FC(a1, v117);
v5 = 0;
goto LABEL_193;
}
if ( *(_BYTE *)(a1 + 813) )
v117 = "Nothing ignored";
else
v117 = "No pending invites";
goto LABEL_192;
}
v5 = 0;
v6 = 0;
v7 = (float)(v4 + -40.0) + -75.0;
v8 = 27.0;
v120 = v3;
do
{
v9 = sub_1002E75A0(*(_QWORD *)(a1 + 792), v6);
if ( *(unsigned __int8 *)(v9 + 273) != *(unsigned __int8 *)(a1 + 813) )
goto LABEL_183;
v11 = v9;
v121 = v5;
if ( (*(char *)(a1 + 863) & 0x8000000000000000LL) != 0 )
{
if ( !*(_QWORD *)(a1 + 848) )
goto LABEL_68;
}
else if ( !*(_BYTE *)(a1 + 863) )
{
goto LABEL_68;
}
sub_100510098(&__dst, v9 + 64);
size = HIBYTE(__dst.__r_.__value_.__r.__words[2]);
v13 = HIBYTE(__dst.__r_.__value_.__r.__words[2]);
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
p_dst = &__dst;
else
p_dst = (std::string *)__dst.__r_.__value_.__r.__words[0];
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
size = __dst.__r_.__value_.__l.__size_;
v15 = *(_BYTE *)(a1 + 863);
if ( v15 >= 0 )
v16 = (char *)(a1 + 840);
else
v16 = *(char **)(a1 + 840);
if ( v15 >= 0 )
v17 = *(unsigned __int8 *)(a1 + 863);
else
v17 = *(_QWORD *)(a1 + 848);
if ( !v17 )
{
v27 = 0;
if ( (*((_BYTE *)&__dst.__r_.__value_.__s + 23) & 0x80) == 0 )
goto LABEL_62;
goto LABEL_67;
}
if ( size >= v17 )
{
v28 = (char *)p_dst + size;
v29 = *v16;
v30 = p_dst;
do
{
v31 = size - v17;
if ( v31 == -1 )
break;
v32 = (char *)memchr(v30, v29, v31 + 1);
if ( !v32 )
break;
v33 = v32;
if ( !memcmp(v32, v16, v17) )
{
if ( v33 == v28 || v33 - (char *)p_dst == -1 )
break;
v27 = 0;
v3 = v120;
if ( (v13 & 0x80) == 0 )
goto LABEL_62;
goto LABEL_67;
}
v30 = (std::string *)(v33 + 1);
size = v28 - (v33 + 1);
}
while ( size >= v17 );
}
sub_100510098(&v130, v11 + 88);
v18 = HIBYTE(v130.__r_.__value_.__r.__words[2]);
v19 = SHIBYTE(v130.__r_.__value_.__r.__words[2]);
v20 = (void *)v130.__r_.__value_.__r.__words[0];
if ( (v130.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v21 = &v130;
else
v21 = (std::string *)v130.__r_.__value_.__r.__words[0];
if ( (v130.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v18 = v130.__r_.__value_.__l.__size_;
v22 = *(_BYTE *)(a1 + 863);
if ( v22 >= 0 )
v23 = (char *)(a1 + 840);
else
v23 = *(char **)(a1 + 840);
if ( v22 >= 0 )
v24 = *(unsigned __int8 *)(a1 + 863);
else
v24 = *(_QWORD *)(a1 + 848);
if ( !v24 )
{
v27 = 0;
v3 = v120;
if ( (SHIBYTE(v130.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_61;
LABEL_60:
operator delete(v20);
goto LABEL_61;
}
v25 = (char *)v21 + v18;
if ( v18 >= v24 )
{
__p = (void *)v130.__r_.__value_.__r.__words[0];
v34 = *v23;
v35 = v21;
do
{
v36 = v18 - v24;
if ( v36 == -1 )
break;
v37 = (char *)memchr(v35, v34, v36 + 1);
if ( !v37 )
break;
v26 = v37;
if ( !memcmp(v37, v23, v24) )
goto LABEL_52;
v35 = (std::string *)(v26 + 1);
v18 = v25 - (v26 + 1);
}
while ( v18 >= v24 );
v26 = v25;
LABEL_52:
v3 = v120;
v20 = __p;
}
else
{
v26 = (char *)v21 + v18;
v3 = v120;
}
v38 = v26 == v25 || v26 - (char *)v21 == -1;
v27 = v38;
if ( v19 < 0 )
goto LABEL_60;
LABEL_61:
if ( (*((_BYTE *)&__dst.__r_.__value_.__s + 23) & 0x80) == 0 )
{
LABEL_62:
if ( (v27 & 1) != 0 )
goto LABEL_63;
goto LABEL_68;
}
LABEL_67:
operator delete(__dst.__r_.__value_.__l.__data_);
if ( (v27 & 1) != 0 )
{
LABEL_63:
v5 = v121;
goto LABEL_183;
}
LABEL_68:
v39 = v8 + (float)((float)v121 * 54.0);
if ( v121 >= 1 )
{
LODWORD(__dst.__r_.__value_.__l.__data_) = 838860800;
v40 = cocos2d::CCLayerColor::create((__int64)&__dst);
sub_1000262BC((float *)&__dst, 8.0, v8 - v39);
(*(void (__fastcall **)(_WORD *, std::string *))(*(_QWORD *)v40 + 184LL))(v40, &__dst);
(*(void (__fastcall **)(__int64, _WORD *, _QWORD))(*(_QWORD *)v3 + 464LL))(v3, v40, 0);
}
v41 = -(float)(v8 + (float)((float)v121 * 54.0));
if ( (*(_BYTE *)(v11 + 264) & 1) != 0 )
{
v42 = 6.0;
if ( *(_BYTE *)(v11 + 305) != 1 )
goto LABEL_88;
v43 = (_QWORD *)sub_1005101EC(v11, 0.5);
goto LABEL_87;
}
v42 = 6.0;
if ( *(char *)(v11 + 263) < 0 )
{
v44 = *(_QWORD *)(v11 + 248);
if ( v44 )
{
sub_1000097D0(&__dst, *(void **)(v11 + 240), v44);
goto LABEL_79;
}
}
else if ( *(_BYTE *)(v11 + 263) )
{
__dst = *(std::string *)(v11 + 240);
goto LABEL_79;
}
sub_100009900(&__dst, "na");
LABEL_79:
v45 = EmoteSprite::createWithName((__int64)&__dst);
v43 = v45;
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
{
operator delete(__dst.__r_.__value_.__l.__data_);
if ( v43 )
goto LABEL_86;
}
else if ( v45 )
{
goto LABEL_86;
}
sub_100009900(&__dst, "na");
v43 = EmoteSprite::createWithName((__int64)&__dst);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( v43 )
{
LABEL_86:
v46 = sub_1004DC170();
EmoteSprite::fitToHeight(v43, (float)(v46 * 13.5) * 1.2, 0.0);
LABEL_87:
sub_1000262BC((float *)&__dst, 22.0, v41);
(*(void (__fastcall **)(_QWORD *, std::string *))(*v43 + 184LL))(v43, &__dst);
(*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v3 + 464LL))(v3, v43, 1);
}
LABEL_88:
if ( *(_BYTE *)(v11 + 264) == 1 )
{
v47 = *(char *)(v11 + 143);
if ( v47 < 0 )
v47 = *(_QWORD *)(v11 + 128);
v48 = nullptr;
v49 = v47 != 0;
v50 = 10.0;
if ( v47 )
v50 = 18.0;
v51 = 1.0;
if ( !v47 )
v51 = -9.0;
v52 = v50 - v39;
v53 = v51 - v39;
v54 = 0.0;
LABEL_99:
v58 = (const char *)(v11 + 64);
v59 = "goldFont.fnt";
if ( (*(char *)(v11 + 87) & 0x80000000) == 0 )
goto LABEL_101;
LABEL_100:
v58 = *(const char **)v58;
goto LABEL_101;
}
v55 = "";
if ( *(_DWORD *)(v11 + 168) != 1 )
v55 = "s";
v56 = sub_1003065B0("%i Member%s", *(_DWORD *)(v11 + 168), v55);
CString = (const char *)cocos2d::CCString::getCString((__int64)v56);
v48 = cocos2d::CCLabelBMFont::create_1(CString, "goldFont.fnt");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v48 + 160LL))(v48, 0.45);
v54 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v48 + 328LL))(v48) * 0.45;
v52 = 10.0 - v39;
v53 = -9.0 - v39;
v49 = 0;
if ( (*(_BYTE *)(v11 + 264) & 1) != 0 )
goto LABEL_99;
v58 = (const char *)(v11 + 88);
v59 = "bigFont.fnt";
if ( *(char *)(v11 + 111) < 0 )
goto LABEL_100;
LABEL_101:
v60 = cocos2d::CCLabelBMFont::create_1(v58, v59);
v61 = (__int64)v60;
v62 = v54 + v42;
if ( !v48 )
v62 = 0.0;
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v60, v7 - v62, 0.45, 0.2);
v63 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v61 + 328LL))(v61);
v64 = v63 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v61 + 168LL))(v61);
if ( *(_BYTE *)(v11 + 264) == 1 )
{
v65 = CCMenuItemSpriteExtra::create(v61, 0, a1, (__int64)sub_1005102C8, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v65, 1.3);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v65 + 648LL))(v65, v11);
v66 = 0.5;
v67 = (float)(v64 * 0.5) + 40.0;
}
else
{
sub_1000262BC((float *)&__dst, 0.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v61 + 296LL))(v61, &__dst);
sub_1000262BC((float *)&__dst, 40.0, v52);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v61 + 184LL))(v61, &__dst);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v3 + 464LL))(v3, v61, 1);
v65 = CCMenuItemSpriteExtra::create((__int64)v48, 0, a1, (__int64)sub_100510310, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v65, 1.3);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v65 + 648LL))(v65, v11);
v68 = v54 * 0.5;
v66 = 0.5;
v67 = v68 + (float)((float)(v64 + 40.0) + 6.0);
}
sub_1000262BC((float *)&__dst, v67, v52);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v65 + 184LL))(v65, &__dst);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v3 + 464LL))(v3, v65, 2);
if ( (*(_BYTE *)(v11 + 264) & 1) != 0 )
{
v69 = 40.0;
LABEL_116:
v78 = (const char *)(v11 + 144);
if ( *(char *)(v11 + 167) < 0 )
v78 = *(const char **)v78;
v79 = sub_1003065B0("Message Request - %s ago", v78);
v80 = (const char *)cocos2d::CCString::getCString((__int64)v79);
v81 = cocos2d::CCLabelBMFont::create_1(v80, "chatFont.fnt");
sub_1000262BC((float *)&__dst, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v81 + 296LL))(v81, &__dst);
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v81, v7 - (float)(v69 + -40.0), 0.5, 0.32);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v81 + 1024LL))(v81, 150);
v82 = v69;
v83 = v53;
goto LABEL_122;
}
if ( *(_BYTE *)(v11 + 305) == 1 )
{
v70 = sub_1005101EC(v11, 0.36);
sub_1000262BC((float *)&__dst, 46.0, v53);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v70 + 184LL))(v70, &__dst);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v3 + 464LL))(v3, v70, 1);
v71 = 1113587712;
}
else
{
v71 = 1109393408;
}
v72 = *(float *)&v71;
v73 = (const char *)(v11 + 64);
if ( *(char *)(v11 + 87) < 0 )
v73 = *(const char **)v73;
v74 = cocos2d::CCLabelBMFont::create_1(v73, "goldFont.fnt");
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v74, 100.0, 0.45, 0.2);
v75 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v74 + 328LL))(v74);
v76 = v75 * (*(float (__fastcall **)(void *))(*(_QWORD *)v74 + 168LL))(v74);
v77 = CCMenuItemSpriteExtra::create((__int64)v74, 0, a1, (__int64)sub_1005102C8, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v77, 1.3);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v77 + 648LL))(v77, v11);
sub_1000262BC((float *)&__dst, v72 + (float)(v76 * v66), v53);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v77 + 184LL))(v77, &__dst);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v3 + 464LL))(v3, v77, 2);
v69 = v72 + (float)(v76 + 4.0);
if ( (*(_BYTE *)(v11 + 264) & 1) != 0 )
goto LABEL_116;
v84 = (const char *)(v11 + 144);
if ( *(char *)(v11 + 167) < 0 )
v84 = *(const char **)v84;
v85 = sub_1003065B0("invited you %s ago", v84);
v86 = (const char *)cocos2d::CCString::getCString((__int64)v85);
v81 = cocos2d::CCLabelBMFont::create_1(v86, "chatFont.fnt");
sub_1000262BC((float *)&__dst, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v81 + 296LL))(v81, &__dst);
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v81, v7 - (float)(v69 + -40.0), 0.5, 0.32);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v81 + 1024LL))(v81, 150);
v83 = v53 + -0.5;
v82 = v72 + (float)(v76 + 4.0);
LABEL_122:
sub_1000262BC((float *)&__dst, v82, v83);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v81 + 184LL))(v81, &__dst);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v3 + 464LL))(v3, v81, 1);
if ( v49 )
{
v127 = nullptr;
v128 = nullptr;
v129 = 0;
sub_1004FEEB4((const std::string *)(v11 + 120), &v127, (__int64)&v130);
v87 = std::string::insert(&v130, 0, "\"");
v88 = *(_OWORD *)&v87->__r_.__value_.__l.__data_;
__dst.__r_.__value_.__r.__words[2] = v87->__r_.__value_.__r.__words[2];
*(_OWORD *)&__dst.__r_.__value_.__l.__data_ = v88;
v87->__r_.__value_.__l.__size_ = 0;
v87->__r_.__value_.__r.__words[2] = 0;
v87->__r_.__value_.__r.__words[0] = 0;
v89 = std::string::append(&__dst, "\"");
v90 = *(_OWORD *)&v89->__r_.__value_.__l.__data_;
__str.__r_.__value_.__r.__words[2] = v89->__r_.__value_.__r.__words[2];
*(_OWORD *)&__str.__r_.__value_.__l.__data_ = v90;
v89->__r_.__value_.__l.__size_ = 0;
v89->__r_.__value_.__r.__words[2] = 0;
v89->__r_.__value_.__r.__words[0] = 0;
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( SHIBYTE(v130.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v130.__r_.__value_.__l.__data_);
v91 = HIBYTE(__str.__r_.__value_.__r.__words[2]);
p_str = &__str;
if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
{
v91 = __str.__r_.__value_.__l.__size_;
p_str = (std::string *)__str.__r_.__value_.__r.__words[0];
}
for ( ; v91; --v91 )
{
if ( p_str->__r_.__value_.__s.__data_[0] == 10 )
p_str->__r_.__value_.__s.__data_[0] = 32;
p_str = (std::string *)((char *)p_str + 1);
}
v123 = nullptr;
v124 = nullptr;
v125 = 0;
v93 = EmoteSprite::maxEmotesMessage();
EmoteSprite::parseTokens(&__str, (__int64)&v123, v93);
if ( v123 != v124 )
{
EmoteSprite::replaceTokens((__int64)&__str, (__int64 *)&v123, (__int64)&__dst, 0.0);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
__str = __dst;
}
v94 = cocos2d::CCLabelBMFont::create_1("", "chatFont.fnt");
sub_1000262BC((float *)&__dst, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v94 + 296LL))(v94, &__dst);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v94 + 160LL))(v94, 0.45);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v94 + 1024LL))(v94, 210);
if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v95 = &__str;
else
v95 = (std::string *)__str.__r_.__value_.__r.__words[0];
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v94 + 928LL))(v94, v95);
v96 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v94 + 328LL))(v94);
v97 = v96 * (*(float (__fastcall **)(void *))(*(_QWORD *)v94 + 168LL))(v94);
v98 = HIBYTE(__str.__r_.__value_.__r.__words[2]);
if ( v97 <= v7 )
{
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
{
v99 = __str.__r_.__value_.__l.__size_;
goto LABEL_167;
}
goto LABEL_145;
}
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
{
v98 = __str.__r_.__value_.__l.__size_;
if ( !__str.__r_.__value_.__l.__size_ )
{
LABEL_165:
v99 = 0;
goto LABEL_167;
}
}
else if ( !*((_BYTE *)&__str.__r_.__value_.__s + 23) )
{
LABEL_145:
v99 = SHIBYTE(__str.__r_.__value_.__r.__words[2]);
LABEL_167:
if ( v123 != v124 )
{
v107 = v124 - 24;
do
{
if ( *(_QWORD *)v107 < v99 )
break;
v124 = v107;
v38 = v107 == v123;
v107 -= 24;
}
while ( !v38 );
}
sub_1000262BC((float *)&__dst, 40.0, -15.0 - v39);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v94 + 184LL))(v94, &__dst);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v3 + 464LL))(v3, v94, 1);
EmoteSprite::attachToLabel((__int64)v94, v3, (__int64 *)&v123, 0.0);
if ( v123 )
{
v124 = (char *)v123;
operator delete(v123);
}
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
if ( v127 )
{
v128 = v127;
operator delete(v127);
}
goto LABEL_178;
}
v99 = (unsigned __int64)(float)((float)(v7 / v97) * (float)v98);
if ( v99 )
{
LABEL_148:
v100 = &__str;
if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v100 = (std::string *)__str.__r_.__value_.__r.__words[0];
do
{
v101 = v100->__r_.__value_.__s.__data_[v99] & 0xC0;
v102 = v101 == 128;
if ( v101 != 128 )
break;
--v99;
}
while ( v99 );
goto LABEL_154;
}
while ( 1 )
{
v102 = 1;
LABEL_154:
std::string::basic_string(&v130, &__str, 0, v99, &__a);
v103 = std::string::append(&v130, "...");
v104 = *(_OWORD *)&v103->__r_.__value_.__l.__data_;
__dst.__r_.__value_.__r.__words[2] = v103->__r_.__value_.__r.__words[2];
*(_OWORD *)&__dst.__r_.__value_.__l.__data_ = v104;
v103->__r_.__value_.__l.__size_ = 0;
v103->__r_.__value_.__r.__words[2] = 0;
v103->__r_.__value_.__r.__words[0] = 0;
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v105 = &__dst;
else
v105 = (std::string *)__dst.__r_.__value_.__r.__words[0];
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v94 + 928LL))(v94, v105);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( SHIBYTE(v130.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v130.__r_.__value_.__l.__data_);
if ( v102 )
goto LABEL_165;
v106 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v94 + 328LL))(v94);
if ( (float)(v106 * (*(float (__fastcall **)(void *))(*(_QWORD *)v94 + 168LL))(v94)) <= v7 )
goto LABEL_167;
if ( --v99 )
goto LABEL_148;
}
}
LABEL_178:
v108 = ButtonSprite::create_1(
(__int64)"Accept",
44,
0,
1,
(__int64)"bigFont.fnt",
(__int64)"GJ_button_01.png",
0.35,
20.0);
v109 = CCMenuItemSpriteExtra::create((__int64)v108, 0, a1, (__int64)sub_10051035C, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v109, 1.2);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v109 + 648LL))(v109, v11);
v110 = 11.0 - v39;
if ( *(_BYTE *)(a1 + 813) )
v110 = v41;
sub_1000262BC((float *)&__dst, *(float *)(a1 + 704) + -37.0, v110);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v109 + 184LL))(v109, &__dst);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v3 + 464LL))(v3, v109, 2);
if ( (*(_BYTE *)(a1 + 813) & 1) == 0 )
{
v111 = ButtonSprite::create_1(
(__int64)"Ignore",
44,
0,
1,
(__int64)"bigFont.fnt",
(__int64)"GJ_button_05.png",
0.35,
20.0);
v112 = CCMenuItemSpriteExtra::create((__int64)v111, 0, a1, (__int64)sub_100510390, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v112, 1.2);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v112 + 648LL))(v112, v11);
sub_1000262BC((float *)&__dst, *(float *)(a1 + 704) + -37.0, -11.0 - v39);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v112 + 184LL))(v112, &__dst);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v3 + 464LL))(v3, v112, 2);
}
v5 = v121 + 1;
v113 = *(float *)(a1 + 704) + -70.0;
LODWORD(__dst.__r_.__value_.__l.__data_) = 1015209215;
v114 = cocos2d::CCLayerColor::create((__int64)&__dst);
(*(void (__fastcall **)(_WORD *, _QWORD))(*(_QWORD *)v114 + 440LL))(v114, 0);
sub_1000262BC((float *)&__dst, 0.0, 0.5);
(*(void (__fastcall **)(_WORD *, std::string *))(*(_QWORD *)v114 + 296LL))(v114, &__dst);
sub_1000262BC((float *)&__dst, 0.0, v41);
(*(void (__fastcall **)(_WORD *, std::string *))(*(_QWORD *)v114 + 184LL))(v114, &__dst);
(*(void (__fastcall **)(_WORD *, _QWORD))(*(_QWORD *)v114 + 344LL))(v114, 0);
(*(void (__fastcall **)(__int64, _WORD *, _QWORD))(*(_QWORD *)v3 + 464LL))(v3, v114, 0);
v115 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"whiteSquare60_001.png");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v115 + 128LL))(v115, v113 / 60.0);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v115 + 144LL))(v115, 0.9);
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v115 + 344LL))(v115, 0);
v116 = RowPressItem::create((__int64)v115, a1, (__int64)sub_1005103C4, 0);
*((_QWORD *)v116 + 63) = v114;
*((_BYTE *)v116 + 408) = 0;
CCMenuItemSpriteExtra::setSizeMult((__int64)v116, 1.0);
sub_1000262C4((float *)&__dst, v113, 54.0);
(*(void (__fastcall **)(_OWORD *, std::string *))(*(_QWORD *)v116 + 320LL))(v116, &__dst);
(*(void (__fastcall **)(_OWORD *, __int64))(*(_QWORD *)v116 + 648LL))(v116, v11);
sub_1000262BC((float *)&__dst, v113 * v66, v41);
(*(void (__fastcall **)(_OWORD *, std::string *))(*(_QWORD *)v116 + 184LL))(v116, &__dst);
(*(void (__fastcall **)(__int64, _OWORD *, __int64))(*(_QWORD *)v3 + 464LL))(v3, v116, 2);
v8 = 27.0;
LABEL_183:
++v6;
}
while ( v6 != v122 );
if ( !v5 )
goto LABEL_185;
LABEL_193:
v10.n128_f32[0] = (float)((float)v5 * 54.0) + 6.0;
if ( v10.n128_f32[0] < *(float *)(a1 + 708) )
v10.n128_u32[0] = *(_DWORD *)(a1 + 708);
return ScrollableContentLayer::setContentHeight(*(_QWORD *)(a1 + 688), v10);
}