//
// InvitesPopup::buildRows from 0xc816cc to 0xc82b70 (5284 bytes)
//
// 7 xrefs:
// > InvitesPopup::onToggleIgnored @ 0xc82c24
// > InvitesPopup::textChanged @ 0xc82cd0
// > InvitesPopup::onClearSearch @ 0xc82d90
// > InvitesPopup::threadInvitesFinished @ 0xc82e40
// > InvitesPopup::removeInviteRow @ 0xc82ef0
// > InvitesPopup::threadUpdateFinished @ 0xc88824
// > ??> @ 0x6bf08
//
// 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:05:40 +0000
//
__int64 __fastcall InvitesPopup::buildRows(cocos2d::CCArray **this)
{
cocos2d::CCArray *v2; // x0
float v3; // s12
unsigned int v4; // w25
float v5; // s12
__int64 v6; // x24
long double v7; // q0
__int64 v8; // x1
float v9; // s8
float v10; // s9
float v11; // s0
__int64 v12; // x19
void (__fastcall *v13)(__int64, void **); // x20
int v14; // w1
int v15; // w0
size_t v16; // x2
EmoteSprite *v17; // x19
EmoteSprite *v18; // x0
float v19; // s0
long double v20; // q1
float v21; // s1
__int64 v22; // x1
float v23; // s0
void (__fastcall *v24)(EmoteSprite *, void **); // x20
const char *v25; // x1
float v26; // s13
float v27; // w21
char *v28; // x2
int v29; // w20
cocos2d::CCString *v30; // x0
cocos2d::CCLabelBMFont *CString; // x0
const char *v32; // x2
__int64 v33; // x19
const char *v34; // x2
float v35; // s11
cocos2d::CCLabelBMFont *v36; // x0
cocos2d::CCLabelBMFont *v37; // x22
float v38; // s0
float v39; // w28
float v40; // s3
__int64 v41; // x22
float v42; // s1
void (__fastcall *v43)(__int64, void **); // x21
const char *v44; // x2
long double v45; // q0
float v46; // w21
cocos2d::CCLabelBMFont *v47; // x0
cocos2d::CCLabelBMFont *v48; // x22
float v49; // s11
float v50; // s11
__int64 v51; // x22
void (__fastcall *v52)(__int64, void **); // x19
float v53; // s11
const char *v54; // x1
cocos2d::CCString *v55; // x0
cocos2d::CCLabelBMFont *v56; // x0
const char *v57; // x2
cocos2d::CCLabelBMFont *v58; // x22
void (__fastcall *v59)(cocos2d::CCLabelBMFont *, void **); // x23
void (__fastcall *v60)(cocos2d::CCLabelBMFont *, void **); // x21
const char *v61; // x6
__int64 *v62; // x0
__int64 v63; // x3
__int64 v64; // x0
size_t v65; // x3
EmoteSprite *v66; // x0
size_t v67; // x2
EmoteSprite *i; // x2
int v69; // w0
const char *v70; // x2
__int64 v71; // x22
void (__fastcall *v72)(__int64, char *); // x19
char *v73; // x1
float v74; // s11
float v75; // s0
size_t j; // x19
float v77; // s11
char *v78; // x0
void (__fastcall *v79)(__int64, char *); // x28
__int64 v80; // x0
size_t v81; // x3
char *v82; // x1
char *k; // x0
size_t v84; // x1
void (__fastcall *v85)(__int64, char *); // x19
__int64 v86; // x0
__int64 v87; // x20
void (__fastcall *v88)(__int64, void **); // x21
float v89; // s1
const char *v90; // x6
float v91; // s8
float v92; // s8
__int64 v93; // x20
void (__fastcall *v94)(__int64, void **); // x19
void (__fastcall *v95)(__int64, void **); // x19
const char *v96; // x1
__int64 v97; // x19
__int64 v98; // x19
void (__fastcall *v99)(__int64, void **); // x20
void (__fastcall *v100)(__int64, void **); // x20
float v101; // s0
char *v103; // x20
unsigned __int64 v104; // x0
unsigned __int8 *v105; // x2
unsigned __int64 v106; // x3
int v107; // w0
unsigned __int8 v108; // w3
unsigned __int64 v109; // x1
char *v110; // x20
unsigned __int64 v111; // x3
unsigned __int8 *v112; // x2
_BOOL4 v113; // w19
const char *v114; // x1
cocos2d::CCString *v115; // x0
cocos2d::CCLabelBMFont *v116; // x0
const char *v117; // x2
cocos2d::CCLabelBMFont *v118; // x21
void (__fastcall *v119)(cocos2d::CCLabelBMFont *, void **); // x22
void (__fastcall *v120)(cocos2d::CCLabelBMFont *, void **); // x22
cocos2d::CCLabelBMFont *v121; // x0
void (__fastcall *v122)(cocos2d::CCLabelBMFont *, void **); // x23
void (__fastcall *v123)(cocos2d::CCLabelBMFont *, void **); // x23
void (__fastcall *v124)(__int64, void **); // x23
char *v125; // x21
__int64 v126; // x0
__int64 v127; // x0
__int64 v128; // x19
void (__fastcall *v129)(__int64, void **); // x20
size_t v130; // x1
__int64 v131; // x21
void (__fastcall *v132)(__int64, void **); // x22
__int64 v133; // x0
char *v134; // x1
char *v135; // x22
__int64 v136; // x0
float v137; // [xsp+B0h] [xbp+B0h]
__int64 v138; // [xsp+C0h] [xbp+C0h]
int v139; // [xsp+C8h] [xbp+C8h]
int v140; // [xsp+CCh] [xbp+CCh]
float v141; // [xsp+D0h] [xbp+D0h]
char v142[8]; // [xsp+E0h] [xbp+E0h] BYREF
void *v143; // [xsp+E8h] [xbp+E8h] BYREF
char *v144; // [xsp+F0h] [xbp+F0h]
__int64 v145; // [xsp+F8h] [xbp+F8h]
__int64 v146; // [xsp+100h] [xbp+100h] BYREF
size_t v147; // [xsp+108h] [xbp+108h]
void *v148; // [xsp+110h] [xbp+110h]
__int64 v149[3]; // [xsp+118h] [xbp+118h] BYREF
void *v150; // [xsp+130h] [xbp+130h] BYREF
char *v151; // [xsp+138h] [xbp+138h]
__int64 v152; // [xsp+140h] [xbp+140h]
__int64 v153[2]; // [xsp+148h] [xbp+148h] BYREF
void *v154; // [xsp+158h] [xbp+158h]
__int64 v155; // [xsp+160h] [xbp+160h] BYREF
size_t v156; // [xsp+168h] [xbp+168h]
void *v157; // [xsp+170h] [xbp+170h]
(*((void (__fastcall **)(cocos2d::CCArray **))*this + 169))(this);
PagedListPopup::clearStatus((__int64)this);
v2 = *(this + 99);
v3 = *((float *)this + 176);
v138 = *((_QWORD *)*(this + 86) + 52);
if ( v2 )
{
v140 = cocos2d::CCArray::count(v2);
if ( v140 > 0 )
{
v4 = 0;
v139 = 0;
v5 = (float)(v3 - 40.0) - 75.0;
while ( 1 )
{
while ( 1 )
{
v6 = cocos2d::CCArray::objectAtIndex(*(this + 99), v4);
if ( *(unsigned __int8 *)(v6 + 273) != *((unsigned __int8 *)this + 813) )
goto LABEL_4;
v8 = *((_BYTE *)this + 840) >> 1;
if ( (*(_BYTE *)(this + 105) & 1) != 0 )
v8 = (__int64)*(this + 106);
if ( v8 )
break;
LABEL_9:
v9 = (float)((float)v139 * 54.0) + 27.0;
v10 = -v9;
if ( v139 )
{
v11 = *((float *)this + 176) - 16.0;
LODWORD(v150) = 838860800;
v12 = cocos2d::CCLayerColor::create(&v150, v11, 1.0);
v13 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v12 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, 8.0, 27.0 - v9);
v13(v12, &v150);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v138 + 464LL))(v138, v12, 0);
}
v14 = *(unsigned __int8 *)(v6 + 264);
++v139;
if ( *(_BYTE *)(v6 + 264) )
{
if ( !*(_BYTE *)(v6 + 305) )
goto LABEL_63;
LODWORD(v7) = 0.5;
v17 = (EmoteSprite *)sub_C630DC((_DWORD *)v6, v7);
v21 = -v9;
v23 = 22.0;
v22 = *(_QWORD *)v17;
goto LABEL_18;
}
v15 = *(unsigned __int8 *)(v6 + 240);
if ( (v15 & 1) != 0 )
{
v16 = *(_QWORD *)(v6 + 248);
if ( v16 )
{
v155 = 0;
v156 = 0;
v157 = nullptr;
std::string::__init(&v155, *(void **)(v6 + 256), v16);
goto LABEL_15;
}
}
else if ( v15 >> 1 )
{
v130 = *(_QWORD *)(v6 + 248);
v155 = *(_QWORD *)(v6 + 240);
v156 = v130;
v157 = *(void **)(v6 + 256);
goto LABEL_15;
}
v155 = 0;
v156 = 0;
v157 = nullptr;
std::string::__init(&v155, "na", 2u);
LABEL_15:
v17 = EmoteSprite::createWithName((char *)&v155);
v18 = (EmoteSprite *)(unsigned __int8)v155;
if ( (v155 & 1) != 0 )
{
operator delete(v157);
if ( v17 )
goto LABEL_17;
}
else if ( v17 )
{
goto LABEL_17;
}
v155 = 0;
v156 = 0;
v157 = nullptr;
std::string::__init(&v155, "na", 2u);
v17 = EmoteSprite::createWithName((char *)&v155);
v18 = (EmoteSprite *)(unsigned __int8)v155;
if ( (v155 & 1) != 0 )
{
operator delete(v157);
if ( v17 )
{
LABEL_17:
v19 = EmoteSprite::heightFactor(v18);
LODWORD(v20) = 0;
EmoteSprite::fitToHeight(v17, (float)(v19 * 13.5) * 1.2, v20);
v21 = -v9;
v22 = *(_QWORD *)v17;
v23 = 22.0;
LABEL_18:
v24 = *(void (__fastcall **)(EmoteSprite *, void **))(v22 + 184);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, v23, v21);
v24(v17, &v150);
(*(void (__fastcall **)(__int64, EmoteSprite *, __int64))(*(_QWORD *)v138 + 464LL))(v138, v17, 1);
v14 = *(unsigned __int8 *)(v6 + 264);
if ( !*(_BYTE *)(v6 + 264) )
goto LABEL_19;
goto LABEL_63;
}
}
else if ( v17 )
{
goto LABEL_17;
}
v14 = *(unsigned __int8 *)(v6 + 264);
if ( !*(_BYTE *)(v6 + 264) )
{
LABEL_19:
v25 = (const char *)*(unsigned int *)(v6 + 168);
v26 = -9.0 - v9;
v27 = 10.0 - v9;
if ( (_DWORD)v25 == 1 )
v28 = &byte_11B8890;
else
v28 = "s";
v29 = 0;
v30 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i Member%s", v25, v28);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v30);
v33 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v32);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v33 + 160LL))(v33, 0.45);
v35 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v33 + 328LL))(v33) * 0.45;
if ( *(_BYTE *)(v6 + 264) )
goto LABEL_22;
goto LABEL_120;
}
LABEL_63:
v34 = (const char *)(*(_BYTE *)(v6 + 120) >> 1);
if ( (*(_BYTE *)(v6 + 120) & 1) != 0 )
v34 = *(const char **)(v6 + 128);
if ( !v34 )
{
v29 = 0;
v33 = 0;
v26 = -9.0 - v9;
v35 = 0.0;
v27 = 10.0 - v9;
LABEL_22:
v36 = (cocos2d::CCLabelBMFont *)(v6 + 65);
if ( (*(_BYTE *)(v6 + 64) & 1) != 0 )
v36 = *(cocos2d::CCLabelBMFont **)(v6 + 80);
v37 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v36, "goldFont.fnt", v34);
if ( v33 )
goto LABEL_25;
goto LABEL_123;
}
v29 = 1;
v33 = 0;
v26 = 1.0 - v9;
v35 = 0.0;
v27 = 18.0 - v9;
if ( v14 )
goto LABEL_22;
LABEL_120:
v121 = (cocos2d::CCLabelBMFont *)(v6 + 89);
if ( (*(_BYTE *)(v6 + 88) & 1) != 0 )
v121 = *(cocos2d::CCLabelBMFont **)(v6 + 104);
v37 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v121, "bigFont.fnt", v34);
if ( v33 )
{
LABEL_25:
v38 = v35 + 6.0;
goto LABEL_26;
}
LABEL_123:
v38 = 0.0;
LABEL_26:
cocos2d::CCLabelBMFont::limitLabelWidth(v37, v5 - v38, 0.45, 0.2);
v39 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v37 + 328LL))(v37);
v40 = v39 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v37 + 168LL))(v37);
if ( *(_BYTE *)(v6 + 264) )
{
v141 = v40;
v41 = CCMenuItemSpriteExtra::create((__int64)v37, 0, (__int64)this, (__int64)InvitesPopup::onViewInviter, 0);
CCMenuItemSpriteExtra::setSizeMult(v41, 1.3);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v41 + 648LL))(v41, v6);
v42 = v27;
v43 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v41 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, (float)(v141 * 0.5) + 40.0, v42);
v43(v41, &v150);
}
else
{
v137 = v40;
v122 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v37 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, 0.0, 0.5);
v122(v37, &v150);
v123 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v37 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, 40.0, v27);
v123(v37, &v150);
(*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v138 + 464LL))(v138, v37, 1);
v41 = CCMenuItemSpriteExtra::create(v33, 0, (__int64)this, (__int64)InvitesPopup::onViewMembers, 0);
CCMenuItemSpriteExtra::setSizeMult(v41, 1.3);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v41 + 648LL))(v41, v6);
v124 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v41 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v150,
(float)((float)(v137 + 40.0) + 6.0) + (float)(v35 * 0.5),
v27);
v124(v41, &v150);
}
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v138 + 464LL))(v138, v41, 2);
if ( *(_BYTE *)(v6 + 264) )
{
v53 = 40.0;
}
else
{
v46 = 40.0;
if ( *(_BYTE *)(v6 + 305) )
{
LODWORD(v45) = 1052266988;
v131 = sub_C630DC((_DWORD *)v6, v45);
v132 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v131 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, 46.0, v26);
v132(v131, &v150);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v138 + 464LL))(v138, v131, 1);
v46 = 56.0;
}
v47 = (cocos2d::CCLabelBMFont *)(v6 + 65);
if ( (*(_BYTE *)(v6 + 64) & 1) != 0 )
v47 = *(cocos2d::CCLabelBMFont **)(v6 + 80);
v48 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v47, "goldFont.fnt", v44);
cocos2d::CCLabelBMFont::limitLabelWidth(v48, 100.0, 0.45, 0.2);
v49 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v48 + 328LL))(v48);
v50 = v49 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v48 + 168LL))(v48);
v51 = CCMenuItemSpriteExtra::create((__int64)v48, 0, (__int64)this, (__int64)InvitesPopup::onViewInviter, 0);
CCMenuItemSpriteExtra::setSizeMult(v51, 1.3);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v51 + 648LL))(v51, v6);
v52 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v51 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, v46 + (float)(v50 * 0.5), v26);
v52(v51, &v150);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v138 + 464LL))(v138, v51, 2);
v53 = (float)(v50 + 4.0) + v46;
if ( !*(_BYTE *)(v6 + 264) )
{
v54 = (const char *)(v6 + 145);
if ( (*(_BYTE *)(v6 + 144) & 1) != 0 )
v54 = *(const char **)(v6 + 160);
v55 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"invited you %s ago",
v54);
v56 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v55);
v58 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v56, "chatFont.fnt", v57);
v59 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v58 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, 0.0, 0.5);
v59(v58, &v150);
cocos2d::CCLabelBMFont::limitLabelWidth(v58, v5 - (float)(v53 - 40.0), 0.5, 0.32);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v58 + 1024LL))(v58, 4294967190LL);
v60 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v58 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, v53, v26 - 0.5);
v60(v58, &v150);
(*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v138 + 464LL))(
v138,
v58,
1);
goto LABEL_37;
}
}
v114 = (const char *)(v6 + 145);
if ( (*(_BYTE *)(v6 + 144) & 1) != 0 )
v114 = *(const char **)(v6 + 160);
v115 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Message Request - %s ago",
v114);
v116 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v115);
v118 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v116, "chatFont.fnt", v117);
v119 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v118 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, 0.0, 0.5);
v119(v118, &v150);
cocos2d::CCLabelBMFont::limitLabelWidth(v118, v5 - (float)(v53 - 40.0), 0.5, 0.32);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v118 + 1024LL))(v118, 4294967190LL);
v120 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v118 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, v53, v26);
v120(v118, &v150);
(*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v138 + 464LL))(v138, v118, 1);
LABEL_37:
if ( v29 )
{
v143 = nullptr;
v144 = nullptr;
v145 = 0;
ThreadViewPopup::expandShareTokens(v6 + 120, &v143, v149);
v62 = std::string::insert(v149, 0, &byte_11ACB00);
v63 = v62[1];
v155 = *v62;
v156 = v63;
v157 = (void *)v62[2];
*v62 = 0;
v62[1] = 0;
v62[2] = 0;
v64 = std::string::append((__int64)&v155, &byte_11ACB00);
v65 = *(_QWORD *)(v64 + 8);
v146 = *(_QWORD *)v64;
v147 = v65;
v148 = *(void **)(v64 + 16);
*(_QWORD *)v64 = 0;
*(_QWORD *)(v64 + 8) = 0;
*(_QWORD *)(v64 + 16) = 0;
if ( (v155 & 1) != 0 )
operator delete(v157);
if ( (v149[0] & 1) != 0 )
operator delete((void *)v149[2]);
if ( (v146 & 1) != 0 )
{
v66 = (EmoteSprite *)v148;
v67 = v147;
}
else
{
v67 = (unsigned __int8)v146 >> 1;
v66 = (EmoteSprite *)((char *)&v146 + 1);
}
for ( i = (EmoteSprite *)((char *)v66 + v67); v66 != i; v66 = (EmoteSprite *)((char *)v66 + 1) )
{
while ( *(_BYTE *)v66 != 10 )
{
v66 = (EmoteSprite *)((char *)v66 + 1);
if ( v66 == i )
goto LABEL_49;
}
*(_BYTE *)v66 = 32;
}
LABEL_49:
v150 = nullptr;
v151 = nullptr;
v152 = 0;
v69 = EmoteSprite::maxEmotesMessage(v66);
EmoteSprite::parseTokens((char *)&v146, &v150, v69);
if ( v150 != v151 )
{
EmoteSprite::replaceTokens((__int64)&v146, (__int64 *)&v150, &v155, 0.0);
if ( (v146 & 1) != 0 )
{
*(_BYTE *)v148 = 0;
v147 = 0;
}
else
{
LOWORD(v146) = 0;
}
std::string::reserve(&v146, 0);
v70 = (const char *)v157;
v148 = v157;
v146 = v155;
v147 = v156;
}
v71 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11B8890, "chatFont.fnt", v70);
v72 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v71 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v142, 0.0, 0.5);
v72(v71, v142);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v71 + 160LL))(v71, 0.45);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v71 + 1024LL))(v71, 4294967250LL);
v73 = (char *)&v146 + 1;
if ( (v146 & 1) != 0 )
v73 = (char *)v148;
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v71 + 928LL))(v71, v73);
v74 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v71 + 328LL))(v71);
v75 = v74 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v71 + 168LL))(v71);
if ( v5 >= v75 )
{
if ( (v146 & 1) == 0 )
{
LODWORD(j) = (int)(unsigned __int8)v146 >> 1;
goto LABEL_149;
}
j = v147;
}
else
{
if ( (v146 & 1) != 0 )
{
j = v147;
if ( !v147 )
{
j = 0;
goto LABEL_80;
}
LABEL_126:
for ( j = (unsigned __int64)(float)((float)j * (float)(v5 / v75)); ; --j )
{
if ( !j )
goto LABEL_173;
v78 = (char *)&v146 + 1;
if ( (v146 & 1) != 0 )
v78 = (char *)v148;
if ( (v78[j] & 0xC0) != 0x80 )
{
LABEL_173:
v79 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v71 + 928LL);
std::string::basic_string(v153, (__int64)&v146, 0, j);
v80 = std::string::append((__int64)v153, "...");
v81 = *(_QWORD *)(v80 + 8);
v155 = *(_QWORD *)v80;
v156 = v81;
v157 = *(void **)(v80 + 16);
*(_QWORD *)v80 = 0;
*(_QWORD *)(v80 + 8) = 0;
*(_QWORD *)(v80 + 16) = 0;
v82 = (char *)&v155 + 1;
if ( (v155 & 1) != 0 )
v82 = (char *)v157;
v79(v71, v82);
if ( (v155 & 1) != 0 )
operator delete(v157);
if ( (v153[0] & 1) != 0 )
operator delete(v154);
if ( !j )
break;
v77 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v71 + 328LL))(v71);
if ( v5 >= (float)(v77 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v71 + 168LL))(v71)) )
break;
}
}
goto LABEL_80;
}
LODWORD(j) = (int)(unsigned __int8)v146 >> 1;
if ( (_DWORD)j )
{
j = (int)j;
goto LABEL_126;
}
LABEL_149:
j = (int)j;
}
LABEL_80:
for ( k = v151; v150 != k; v151 = k )
{
v84 = *((_QWORD *)k - 3);
k -= 24;
if ( v84 < j )
break;
}
v85 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v71 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v142, 40.0, v10 - 15.0);
v85(v71, v142);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v138 + 464LL))(v138, v71, 1);
EmoteSprite::attachToLabel(v71, v138, (__int64 *)&v150, 0.0);
if ( v150 )
{
if ( v150 != v151 )
v151 += -24
* ((0xAAAAAAAAAAAAAABLL * ((unsigned __int64)(v151 - 24 - (_BYTE *)v150) >> 3))
& 0x1FFFFFFFFFFFFFFFLL)
- 24;
operator delete(v150);
}
if ( (v146 & 1) != 0 )
operator delete(v148);
if ( v143 )
{
if ( v143 != v144 )
v144 += -24
* ((0xAAAAAAAAAAAAAABLL * ((unsigned __int64)(v144 - 24 - (_BYTE *)v143) >> 3))
& 0x1FFFFFFFFFFFFFFFLL)
- 24;
operator delete(v143);
}
}
v86 = ButtonSprite::create(
(ButtonSprite *)"Accept",
(const char *)&qword_28 + 4,
0,
1,
0.35,
"bigFont.fnt",
"GJ_button_01.png",
v61,
20.0);
v87 = CCMenuItemSpriteExtra::create(v86, 0, (__int64)this, (__int64)InvitesPopup::onAccept, 0);
CCMenuItemSpriteExtra::setSizeMult(v87, 1.2);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v87 + 648LL))(v87, v6);
v88 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v87 + 184LL);
v89 = -v9;
if ( !*((_BYTE *)this + 813) )
v89 = 11.0 - v9;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, *((float *)this + 176) - 37.0, v89);
v88(v87, &v150);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v138 + 464LL))(v138, v87, 2);
if ( !*((_BYTE *)this + 813) )
{
v127 = ButtonSprite::create(
(ButtonSprite *)"Ignore",
(const char *)&qword_28 + 4,
0,
1,
0.35,
"bigFont.fnt",
"GJ_button_05.png",
v90,
20.0);
v128 = CCMenuItemSpriteExtra::create(v127, 0, (__int64)this, (__int64)InvitesPopup::onDecline, 0);
CCMenuItemSpriteExtra::setSizeMult(v128, 1.2);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v128 + 648LL))(v128, v6);
v129 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v128 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, *((float *)this + 176) - 37.0, v10 - 11.0);
v129(v128, &v150);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v138 + 464LL))(v138, v128, 2);
}
v91 = *((float *)this + 176);
LODWORD(v150) = 1015209215;
v92 = v91 - 70.0;
++v4;
v93 = cocos2d::CCLayerColor::create(&v150, v92, 54.0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v93 + 440LL))(v93, 0);
v94 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v93 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, 0.0, 0.5);
v94(v93, &v150);
v95 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v93 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, 0.0, v10);
v95(v93, &v150);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v93 + 344LL))(v93, 0);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v138 + 464LL))(v138, v93, 0);
v97 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v96);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v97 + 128LL))(v97, v92 / 60.0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v97 + 144LL))(v97, 0.9);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v97 + 344LL))(v97, 0);
v98 = RowPressItem::create(v97, (__int64)this, (__int64)InvitesPopup::onViewRequest, 0);
*(_QWORD *)(v98 + 504) = v93;
*(_BYTE *)(v98 + 408) = 0;
CCMenuItemSpriteExtra::setSizeMult(v98, 1.0);
v99 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v98 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v150, v92, 54.0);
v99(v98, &v150);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v98 + 648LL))(v98, v6);
v100 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v98 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, v92 * 0.5, v10);
v100(v98, &v150);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v138 + 464LL))(v138, v98, 2);
if ( v140 == v4 )
{
LABEL_98:
if ( v139 )
goto LABEL_99;
goto LABEL_153;
}
}
sub_C6E0CC(v6 + 64, v153);
if ( (v153[0] & 1) != 0 )
{
v103 = (char *)v154;
v104 = v153[1];
}
else
{
v104 = LOBYTE(v153[0]) >> 1;
v103 = (char *)v153 + 1;
}
if ( (*(_BYTE *)(this + 105) & 1) != 0 )
{
v105 = (unsigned __int8 *)*(this + 107);
v106 = (unsigned __int64)*(this + 106);
}
else
{
v105 = (unsigned __int8 *)this + 841;
v106 = *((_BYTE *)this + 840) >> 1;
}
if ( v104 >= v106 )
{
if ( !v106 )
{
if ( (v153[0] & 1) == 0 )
goto LABEL_9;
LABEL_135:
v113 = 0;
goto LABEL_136;
}
v125 = &v103[v104];
v126 = std::__search(
(__int64)v103,
(__int64)&v103[v104],
v105,
&v105[v106],
(unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq);
if ( v125 != (char *)v126 && v126 - (_QWORD)v103 != -1 )
{
if ( (v153[0] & 1) == 0 )
goto LABEL_9;
goto LABEL_135;
}
}
sub_C6E0CC(v6 + 88, &v155);
v107 = v155 & 1;
if ( v107 )
{
v108 = *((_BYTE *)this + 840);
v110 = (char *)v157;
v109 = v156;
if ( (v108 & 1) != 0 )
{
LABEL_109:
v111 = (unsigned __int64)*(this + 106);
v112 = (unsigned __int8 *)*(this + 107);
if ( v109 < v111 )
goto LABEL_160;
goto LABEL_110;
}
}
else
{
v108 = *((_BYTE *)this + 840);
v109 = (unsigned __int8)v155 >> 1;
v110 = (char *)&v155 + 1;
if ( (v108 & 1) != 0 )
goto LABEL_109;
}
v111 = v108 >> 1;
v112 = (unsigned __int8 *)this + 841;
if ( v109 < v111 )
{
LABEL_160:
v113 = 1;
goto LABEL_161;
}
LABEL_110:
v113 = 0;
if ( v111 )
{
v135 = &v110[v109];
v136 = std::__search(
(__int64)v110,
(__int64)&v110[v109],
v112,
&v112[v111],
(unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq);
if ( v135 == (char *)v136 )
{
v113 = 1;
v107 = v155 & 1;
LABEL_161:
if ( !v107 )
goto LABEL_112;
goto LABEL_162;
}
v113 = v136 - (_QWORD)v110 == -1;
v107 = v155 & 1;
}
if ( !v107 )
goto LABEL_112;
LABEL_162:
operator delete(v157);
LABEL_112:
if ( (v153[0] & 1) == 0 )
{
if ( !v113 )
goto LABEL_9;
goto LABEL_4;
}
LABEL_136:
operator delete(v154);
if ( !v113 )
goto LABEL_9;
LABEL_4:
if ( v140 == ++v4 )
goto LABEL_98;
}
}
}
LABEL_153:
v133 = *((_BYTE *)this + 840) >> 1;
if ( (*(_BYTE *)(this + 105) & 1) != 0 )
v133 = (__int64)*(this + 106);
if ( v133 )
{
v134 = "No matches";
}
else if ( *((_BYTE *)this + 813) )
{
v134 = "Nothing ignored";
}
else
{
v134 = "No pending invites";
}
v139 = 0;
PagedListPopup::showStatus((PagedListPopup *)this, (cocos2d::CCLabelBMFont *)v134);
LABEL_99:
v101 = *((float *)this + 177);
if ( (float)((float)((float)v139 * 54.0) + 6.0) >= v101 )
v101 = (float)((float)v139 * 54.0) + 6.0;
ScrollableContentLayer::setContentHeight(*(this + 86), v101);
return _stack_chk_guard;
}