//
// InvitesPopup::buildRows from 0x758c58 to 0x759af6 (3742 bytes)
//
// 6 xrefs:
// > InvitesPopup::onToggleIgnored @ 0x759b88
// > InvitesPopup::textChanged @ 0x759c0a
// > InvitesPopup::onClearSearch @ 0x759c9e
// > InvitesPopup::threadInvitesFinished @ 0x759cec
// > InvitesPopup::removeInviteRow @ 0x759d66
// > InvitesPopup::threadUpdateFinished @ 0x75d2b6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:58 +0000
//
void __fastcall InvitesPopup::buildRows(ScrollableContentLayer **this)
{
cocos2d::CCArray *v2; // r0
int v3; // r6
float v4; // s16
unsigned __int8 *v5; // r0
int v6; // r1
int v7; // r2
unsigned __int8 *v8; // r4
int v9; // r3
int v10; // r3
unsigned __int8 *v11; // r8
unsigned int v12; // r7
int v13; // r2
unsigned int v14; // r2
unsigned __int8 *v15; // r3
_BOOL4 v16; // r7
unsigned __int8 *v17; // r7
unsigned __int8 *v18; // r8
unsigned int v19; // r7
int v20; // r2
unsigned int v21; // r2
unsigned __int8 *v22; // r3
unsigned __int8 *v23; // r7
float v24; // s23
float v25; // s21
float v26; // s14
int v27; // r10
void (__fastcall *v28)(int, int *); // r9
int v29; // r3
int v30; // r3
int v31; // r1
int v32; // r2
int v33; // r3
cocos2d::CCSprite *v34; // r8
int v35; // r1
int v36; // r2
int v37; // r3
float v38; // r0
void (__fastcall *v39)(cocos2d::CCSprite *, int *); // r7
cocos2d::CCSprite *v40; // r7
void (__fastcall *v41)(cocos2d::CCSprite *, int *); // r8
const char *v42; // r2
float v43; // s17
int v44; // r3
int v45; // r3
int v46; // r10
float v47; // s18
float v48; // s17
float v49; // s18
const char *v50; // r1
__int16 *v51; // r2
cocos2d::CCString *v52; // r0
cocos2d::CCLabelBMFont *CString; // r0
const char *v54; // r2
int v55; // r8
float v56; // s24
const char *v57; // r1
int v58; // r3
cocos2d::CCLabelBMFont *v59; // r0
int v60; // r7
float v61; // s15
float v62; // s19
float v63; // s19
int v64; // r7
void (__fastcall *v65)(int, int *); // r8
int v66; // r1
const char *v67; // r2
int v68; // r8
void (__fastcall *v69)(int, int *); // r7
float v70; // s17
cocos2d::CCSprite *v71; // r7
void (__fastcall *v72)(cocos2d::CCSprite *, int *); // r8
cocos2d::CCLabelBMFont *v73; // r0
cocos2d::CCLabelBMFont *v74; // r7
float v75; // s19
float v76; // r0
float v77; // s19
int v78; // r7
void (__fastcall *v79)(int, int *); // r8
float v80; // s17
const char *v81; // r1
cocos2d::CCString *v82; // r0
cocos2d::CCLabelBMFont *v83; // r0
const char *v84; // r2
cocos2d::CCLabelBMFont *v85; // r8
void (__fastcall *v86)(cocos2d::CCLabelBMFont *, int *); // r9
float v87; // r1
float v88; // r2
void (__fastcall *v89)(cocos2d::CCLabelBMFont *, int *); // r9
const char *v90; // r1
cocos2d::CCString *v91; // r0
cocos2d::CCLabelBMFont *v92; // r0
const char *v93; // r2
void (__fastcall *v94)(cocos2d::CCLabelBMFont *, int *); // r9
int *v95; // r0
int v96; // r1
unsigned __int8 *v97; // r2
int *v98; // r0
int v99; // r1
unsigned __int8 *v100; // r2
int v101; // r0
unsigned __int8 *v102; // r3
int v103; // r2
char *v104; // r2
int v105; // r0
const char *v106; // r2
int v107; // r0
size_t v108; // r1
unsigned __int8 *v109; // r2
int v110; // r7
void (__fastcall *v111)(int, _BYTE *); // r9
char *v112; // r1
float v113; // s17
float v114; // r0
int v115; // r3
size_t i; // r8
int *v117; // r3
int *v118; // r3
int v119; // r1
unsigned __int8 *v120; // r2
int *v121; // r1
void (__fastcall *v122)(int, _BYTE *); // r9
ButtonSprite *v123; // r0
int v124; // r9
void (__fastcall *v125)(int, int *); // r8
float v126; // s23
int v127; // r8
ButtonSprite *v128; // r0
int v129; // r9
void (__fastcall *v130)(int, int *); // r8
float v131; // s15
int v132; // r8
void (__fastcall *v133)(int, int *); // r9
void (__fastcall *v134)(int, int *); // r9
const char *v135; // r1
int v136; // r10
int v137; // r10
void (__fastcall *v138)(int, int *); // r8
void (__fastcall *v139)(int, int *); // r4
int v140; // r3
int v141; // r3
char *v142; // r1
float v143; // r1
float v144; // s17
int *v145; // [sp+0h] [bp-CCh]
char *v146; // [sp+4h] [bp-C8h]
char *v147; // [sp+8h] [bp-C4h]
char *v148; // [sp+Ch] [bp-C0h]
float v149; // [sp+10h] [bp-BCh]
int v150; // [sp+14h] [bp-B8h]
signed int v151; // [sp+18h] [bp-B4h]
cocos2d::CCArray *v152; // [sp+1Ch] [bp-B0h]
void (__fastcall *v153)(int, int *); // [sp+20h] [bp-ACh]
void (__fastcall *v154)(int, int *); // [sp+20h] [bp-ACh]
void (__fastcall *v155)(int, int *); // [sp+20h] [bp-ACh]
int v156; // [sp+3Ch] [bp-90h]
_BYTE v157[8]; // [sp+44h] [bp-88h] BYREF
ProfilePage *(__fastcall *v158)(InvitesPopup *, cocos2d::CCObject *); // [sp+4Ch] [bp-80h]
int v159; // [sp+50h] [bp-7Ch]
MemberListPopup *(__fastcall *v160)(InvitesPopup *, cocos2d::CCObject *); // [sp+54h] [bp-78h]
int v161; // [sp+58h] [bp-74h]
ProfilePage *(__fastcall *v162)(InvitesPopup *, cocos2d::CCObject *); // [sp+5Ch] [bp-70h]
int v163; // [sp+60h] [bp-6Ch]
int *(__fastcall *v164)(InvitesPopup *, cocos2d::CCObject *); // [sp+64h] [bp-68h]
int v165; // [sp+68h] [bp-64h]
int (__fastcall *v166)(InvitesPopup *, cocos2d::CCObject *); // [sp+6Ch] [bp-60h]
int v167; // [sp+70h] [bp-5Ch]
ThreadRequestPopup *(__fastcall *v168)(InvitesPopup *, cocos2d::CCObject *); // [sp+74h] [bp-58h]
int v169; // [sp+78h] [bp-54h]
char *v170[3]; // [sp+7Ch] [bp-50h] BYREF
int v171; // [sp+88h] [bp-44h] BYREF
size_t v172; // [sp+8Ch] [bp-40h]
unsigned __int8 *v173; // [sp+90h] [bp-3Ch]
int v174[3]; // [sp+94h] [bp-38h] BYREF
int v175; // [sp+A0h] [bp-2Ch] BYREF
unsigned __int8 *v176; // [sp+A4h] [bp-28h]
int v177; // [sp+A8h] [bp-24h]
int v178[3]; // [sp+ACh] [bp-20h] BYREF
int v179; // [sp+B8h] [bp-14h] BYREF
unsigned int v180; // [sp+BCh] [bp-10h]
unsigned __int8 *v181; // [sp+C0h] [bp-Ch]
(*((void (__fastcall **)(ScrollableContentLayer **))*this + 169))(this);
PagedListPopup::clearStatus((PagedListPopup *)this);
v2 = *(this + 151);
v3 = *((_DWORD *)*(this + 136) + 80);
v4 = (float)(*((float *)this + 138) - 40.0) - 75.0;
if ( v2 )
v2 = (cocos2d::CCArray *)cocos2d::CCArray::count(v2);
v151 = 0;
v150 = 0;
v152 = v2;
while ( v151 < (int)v152 )
{
v5 = (unsigned __int8 *)cocos2d::CCArray::objectAtIndex(*(this + 151), v151);
v7 = v5[177];
v8 = v5;
if ( v7 != *((unsigned __int8 *)this + 617) )
goto LABEL_140;
v9 = *((unsigned __int8 *)this + 632);
if ( (v9 & 1) != 0 )
v10 = (int)*(this + 159);
else
v10 = v9 >> 1;
if ( !v10 )
goto LABEL_31;
sub_74CD0E(v178, (int)(v5 + 60));
if ( (v178[0] & 1) != 0 )
{
v11 = (unsigned __int8 *)v178[2];
v12 = v178[1];
}
else
{
v12 = (int)LOBYTE(v178[0]) >> 1;
v11 = (unsigned __int8 *)v178 + 1;
}
v13 = *((unsigned __int8 *)this + 632);
if ( (v13 & 1) != 0 )
{
v14 = (unsigned int)*(this + 159);
v15 = (unsigned __int8 *)*(this + 160);
}
else
{
v14 = v13 >> 1;
v15 = (unsigned __int8 *)this + 633;
}
if ( v12 >= v14 )
{
if ( !v14
|| (v17 = &v11[v12],
LOBYTE(v147) = 0,
LOBYTE(v148) = 0,
std::__search(
(unsigned __int8 **)&v175,
v11,
v17,
v15,
&v15[v14],
(int (__fastcall *)(int, _DWORD))std::char_traits::eq),
(unsigned __int8 *)v175 != v17)
&& v175 - (_DWORD)v11 != -1 )
{
v16 = 0;
goto LABEL_30;
}
}
sub_74CD0E(&v179, (int)(v8 + 72));
if ( (v179 & 1) != 0 )
{
v18 = v181;
v19 = v180;
}
else
{
v19 = (int)(unsigned __int8)v179 >> 1;
v18 = (unsigned __int8 *)&v179 + 1;
}
v20 = *((unsigned __int8 *)this + 632);
if ( (v20 & 1) != 0 )
{
v21 = (unsigned int)*(this + 159);
v22 = (unsigned __int8 *)*(this + 160);
}
else
{
v21 = v20 >> 1;
v22 = (unsigned __int8 *)this + 633;
}
if ( v19 < v21 )
goto LABEL_157;
if ( !v21 )
{
v16 = 0;
goto LABEL_29;
}
v23 = &v18[v19];
LOBYTE(v147) = 0;
LOBYTE(v148) = 0;
std::__search(
(unsigned __int8 **)&v175,
v18,
v23,
v22,
&v22[v21],
(int (__fastcall *)(int, _DWORD))std::char_traits::eq);
if ( (unsigned __int8 *)v175 == v23 )
LABEL_157:
v16 = 1;
else
v16 = v175 - (_DWORD)v18 == -1;
LABEL_29:
std::string::~string((int)&v179);
LABEL_30:
v5 = (unsigned __int8 *)std::string::~string((int)v178);
if ( v16 )
goto LABEL_140;
LABEL_31:
v24 = (float)((float)v150 * 54.0) + 27.0;
v25 = -v24;
if ( v150 )
{
v26 = *((float *)this + 138);
v175 = 838860800;
v27 = cocos2d::CCLayerColor::create(&v175, v26 - 16.0, 1065353216);
v28 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v27 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, 8.0, 27.0 - v24);
v28(v27, &v175);
v5 = (unsigned __int8 *)(*(int (__fastcall **)(int, int, _DWORD))(*(_DWORD *)v3 + 232))(v3, v27, 0);
}
++v150;
if ( v8[168] )
{
if ( v8[209] )
{
v40 = sub_745C90(v8, v6, v7, v8[209]);
v41 = *(void (__fastcall **)(cocos2d::CCSprite *, int *))(*(_DWORD *)v40 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, 22.0, -v24);
v41(v40, &v175);
v5 = (unsigned __int8 *)(*(int (__fastcall **)(int, cocos2d::CCSprite *, int))(*(_DWORD *)v3 + 232))(v3, v40, 1);
}
}
else
{
v29 = v8[156];
if ( (v29 & 1) != 0 )
v30 = *((_DWORD *)v8 + 40);
else
v30 = v29 >> 1;
if ( v30 )
{
std::string::basic_string(&v179, (int)(v8 + 156));
}
else
{
v179 = 0;
v180 = 0;
v181 = nullptr;
std::string::__init(&v179, "na", 2u);
}
v34 = EmoteSprite::createWithName((int)&v179, v31, v32, v33);
v5 = (unsigned __int8 *)std::string::~string((int)&v179);
if ( v34
|| (v179 = 0,
v180 = 0,
v181 = nullptr,
std::string::__init(&v179, "na", 2u),
v34 = EmoteSprite::createWithName((int)&v179, v35, v36, v37),
v5 = (unsigned __int8 *)std::string::~string((int)&v179),
v34) )
{
v38 = COERCE_FLOAT(EmoteSprite::heightFactor((EmoteSprite *)v5));
EmoteSprite::fitToHeight(v34, (float)(v38 * 13.5) * 1.2, 0.0);
v39 = *(void (__fastcall **)(cocos2d::CCSprite *, int *))(*(_DWORD *)v34 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, 22.0, -v24);
v39(v34, &v175);
v5 = (unsigned __int8 *)(*(int (__fastcall **)(int, cocos2d::CCSprite *, int))(*(_DWORD *)v3 + 232))(v3, v34, 1);
}
}
v42 = (const char *)v8[168];
if ( v8[168] )
{
v43 = 18.0;
v44 = v8[92];
v5 = (unsigned __int8 *)(v44 << 31);
if ( (v44 & 1) != 0 )
v45 = *((_DWORD *)v8 + 24);
else
v45 = v44 >> 1;
v46 = v45 != 0;
if ( !v45 )
v43 = 10.0;
}
else
{
v43 = 10.0;
v46 = v8[168];
}
v47 = -9.0;
if ( v46 )
v47 = 1.0;
v48 = v43 - v24;
v49 = v47 - v24;
if ( v8[168] )
{
v56 = 0.0;
v55 = 0;
}
else
{
v50 = *((const char **)v8 + 29);
if ( v50 == (_BYTE *)&dword_0 + 1 )
v51 = (__int16 *)&unk_B6B226;
else
v51 = &a1i2r3e45s789g[8];
v52 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i Member%s", v50, v51);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v52);
v55 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v54);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v55 + 80))(v55, 1055286886);
v5 = (unsigned __int8 *)(*(int (__fastcall **)(int))(*(_DWORD *)v55 + 164))(v55);
v56 = *(float *)v5 * 0.45;
}
if ( v8[168] )
{
if ( (v8[60] & 1) != 0 )
v5 = *((unsigned __int8 **)v8 + 17);
else
v5 = v8 + 61;
v57 = "goldFont.fnt";
}
else
{
v58 = v8[72];
v42 = (const char *)(v58 << 31);
if ( (v58 & 1) == 0 )
v5 = v8 + 73;
v57 = "bigFont.fnt";
if ( (v58 & 1) != 0 )
v5 = *((unsigned __int8 **)v8 + 20);
}
v59 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v5, v57, v42);
v60 = (int)v59;
if ( v55 )
v61 = v56 + 6.0;
else
v61 = 0.0;
cocos2d::CCLabelBMFont::limitLabelWidth(v59, v4 - v61, 0.45, 0.2);
v62 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v60 + 164))(v60);
v63 = v62 * (*(float (__fastcall **)(int))(*(_DWORD *)v60 + 84))(v60);
if ( v8[168] )
{
v159 = 0;
v158 = InvitesPopup::onViewInviter;
v64 = CCMenuItemSpriteExtra::create(v60, 0, (int)this, (int)InvitesPopup::onViewInviter, 0);
CCMenuItemSpriteExtra::setSizeMult(v64, 1.3);
(*(void (__fastcall **)(int, unsigned __int8 *))(*(_DWORD *)v64 + 324))(v64, v8);
v65 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v64 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, (float)(v63 * 0.5) + 40.0, v48);
v65(v64, &v175);
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v3 + 232))(v3, v64, 2);
}
else
{
v156 = v8[168];
v153 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v60 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, 0.0, 0.5);
v153(v60, &v175);
v154 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v60 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, 40.0, v48);
v154(v60, &v175);
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v3 + 232))(v3, v60, 1);
v161 = v156;
v160 = InvitesPopup::onViewMembers;
v68 = CCMenuItemSpriteExtra::create(v55, v156, (int)this, (int)InvitesPopup::onViewMembers, v156);
CCMenuItemSpriteExtra::setSizeMult(v68, 1.3);
(*(void (__fastcall **)(int, unsigned __int8 *))(*(_DWORD *)v68 + 324))(v68, v8);
v69 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v68 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, (float)((float)(v63 + 40.0) + 6.0) + (float)(v56 * 0.5), v48);
v69(v68, &v175);
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v3 + 232))(v3, v68, 2);
}
if ( v8[168] )
{
v80 = 40.0;
}
else
{
if ( v8[209] )
{
v70 = 56.0;
v71 = sub_745C90(v8, v66, (int)v67, v8[209]);
v72 = *(void (__fastcall **)(cocos2d::CCSprite *, int *))(*(_DWORD *)v71 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, 46.0, v49);
v72(v71, &v175);
(*(void (__fastcall **)(int, cocos2d::CCSprite *, int))(*(_DWORD *)v3 + 232))(v3, v71, 1);
}
else
{
v70 = 40.0;
}
if ( (v8[60] & 1) != 0 )
v73 = *((cocos2d::CCLabelBMFont **)v8 + 17);
else
v73 = (cocos2d::CCLabelBMFont *)(v8 + 61);
v74 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v73, "goldFont.fnt", v67);
cocos2d::CCLabelBMFont::limitLabelWidth(v74, 100.0, 0.45, 0.2);
v75 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v74 + 164))(v74);
v76 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v74 + 84))(v74);
v163 = 0;
v162 = InvitesPopup::onViewInviter;
v77 = v75 * v76;
v78 = CCMenuItemSpriteExtra::create((int)v74, 0, (int)this, (int)InvitesPopup::onViewInviter, 0);
CCMenuItemSpriteExtra::setSizeMult(v78, 1.3);
(*(void (__fastcall **)(int, unsigned __int8 *))(*(_DWORD *)v78 + 324))(v78, v8);
v79 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v78 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, v70 + (float)(v77 * 0.5), v49);
v79(v78, &v175);
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v3 + 232))(v3, v78, 2);
v80 = v70 + (float)(v77 + 4.0);
}
if ( v8[168] )
{
if ( (v8[104] & 1) != 0 )
v81 = *((const char **)v8 + 28);
else
v81 = (const char *)(v8 + 105);
v82 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Message Request - %s ago",
v81);
v83 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v82);
v85 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v83, "chatFont.fnt", v84);
v86 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int *))(*(_DWORD *)v85 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, 0.0, 0.5);
v86(v85, &v175);
cocos2d::CCLabelBMFont::limitLabelWidth(v85, v4 - (float)(v80 - 40.0), 0.5, 0.32);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v85 + 512))(v85, 150);
v87 = v80;
v88 = v49;
v89 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int *))(*(_DWORD *)v85 + 92);
}
else
{
if ( (v8[104] & 1) != 0 )
v90 = *((const char **)v8 + 28);
else
v90 = (const char *)(v8 + 105);
v91 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"invited you %s ago", v90);
v92 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v91);
v85 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v92, "chatFont.fnt", v93);
v94 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int *))(*(_DWORD *)v85 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, 0.0, 0.5);
v94(v85, &v175);
cocos2d::CCLabelBMFont::limitLabelWidth(v85, v4 - (float)(v80 - 40.0), 0.5, 0.32);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v85 + 512))(v85, 150);
v87 = v80;
v89 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int *))(*(_DWORD *)v85 + 92);
v88 = v49 - 0.5;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, v87, v88);
v89(v85, &v175);
(*(void (__fastcall **)(int, cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v3 + 232))(v3, v85, 1);
if ( !v46 )
goto LABEL_134;
memset(v170, 0, sizeof(v170));
ThreadViewPopup::expandShareTokens(v174, v8 + 92, (int)v170);
v95 = std::string::insert(v174, 0, "\"");
v96 = v95[1];
v97 = (unsigned __int8 *)v95[2];
v179 = *v95;
v180 = v96;
v181 = v97;
*v95 = 0;
v95[1] = 0;
v95[2] = 0;
v98 = std::string::append(&v179, "\"");
v99 = v98[1];
v100 = (unsigned __int8 *)v98[2];
v171 = *v98;
v172 = v99;
v173 = v100;
*v98 = 0;
v98[1] = 0;
v98[2] = 0;
std::string::~string((int)&v179);
v101 = std::string::~string((int)v174);
if ( (v171 & 1) != 0 )
{
v102 = v173;
v103 = v172;
}
else
{
v103 = (int)(unsigned __int8)v171 >> 1;
v102 = (unsigned __int8 *)&v171 + 1;
}
v104 = (char *)&v102[v103];
while ( v102 != (unsigned __int8 *)v104 )
{
v101 = *v102++;
if ( v101 == 10 )
*(v102 - 1) = 32;
}
v175 = 0;
v176 = nullptr;
v177 = 0;
v105 = EmoteSprite::maxEmotesMessage((EmoteSprite *)v101);
EmoteSprite::parseTokens((unsigned __int8 *)&v171, (int)&v175, v105);
v106 = (const char *)v175;
if ( (unsigned __int8 *)v175 != v176 )
{
EmoteSprite::replaceTokens(&v179, (unsigned __int8 *)&v171, &v175, 0.0);
if ( (v171 & 1) != 0 )
{
*v173 = 0;
v172 = 0;
}
else
{
LOWORD(v171) = 0;
}
std::string::reserve(&v171, 0);
v107 = v179;
v108 = v180;
v109 = v181;
v179 = 0;
v180 = 0;
v181 = nullptr;
v171 = v107;
v172 = v108;
v173 = v109;
std::string::~string((int)&v179);
}
v110 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "chatFont.fnt", v106);
v111 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v110 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v157, 0.0, 0.5);
v111(v110, v157);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v110 + 80))(v110, 1055286886);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v110 + 512))(v110, 210);
if ( (v171 & 1) != 0 )
v112 = (char *)v173;
else
v112 = (char *)&v171 + 1;
(*(void (__fastcall **)(int, char *, int))(*(_DWORD *)v110 + 464))(v110, v112, (unsigned __int8)v171 << 31);
v113 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v110 + 164))(v110);
v114 = (*(float (__fastcall **)(int))(*(_DWORD *)v110 + 84))(v110);
if ( (float)(v113 * v114) <= v4 )
{
if ( (v171 & 1) != 0 )
goto LABEL_117;
}
else
{
if ( (v171 & 1) != 0 )
{
v115 = v172;
if ( v172 )
goto LABEL_119;
LABEL_117:
i = v172;
goto LABEL_130;
}
v115 = (int)(unsigned __int8)v171 >> 1;
if ( v115 )
{
LABEL_119:
for ( i = (unsigned int)(float)((float)(unsigned int)v115 * (float)(v4 / (float)(v113 * v114))); ; --i )
{
if ( i )
{
v117 = (v171 & 1) != 0 ? (int *)v173 : (int *)((char *)&v171 + 1);
if ( (*((_BYTE *)v117 + i) & 0xC0) == 0x80 )
continue;
}
v145 = &v171;
v155 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v110 + 464);
std::string::basic_string(v178, (unsigned __int8 *)&v171, 0, i);
v118 = std::string::append(v178, "...");
v119 = v118[1];
v120 = (unsigned __int8 *)v118[2];
v179 = *v118;
v180 = v119;
v181 = v120;
*v118 = 0;
v118[1] = 0;
v118[2] = 0;
v121 = (v179 & 1) != 0 ? (int *)v181 : (int *)((char *)&v179 + 1);
v155(v110, v121);
std::string::~string((int)&v179);
std::string::~string((int)v178);
if ( !i )
break;
v144 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v110 + 164))(v110);
if ( (float)(v144 * (*(float (__fastcall **)(int))(*(_DWORD *)v110 + 84))(v110)) <= v4 )
break;
}
goto LABEL_130;
}
}
i = (int)(unsigned __int8)v171 >> 1;
LABEL_130:
while ( (unsigned __int8 *)v175 != v176 && *((_DWORD *)v176 - 3) >= i )
v176 -= 12;
v122 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v110 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v157, 40.0, v25 - 15.0);
v122(v110, v157);
(*(void (__fastcall **)(int, int, int, _DWORD, int *, char *, char *, char *))(*(_DWORD *)v3 + 232))(
v3,
v110,
1,
*(_DWORD *)(*(_DWORD *)v3 + 232),
v145,
v146,
v147,
v148);
EmoteSprite::attachToLabel(v110, v3, &v175, 0.0);
std::__vector_base::~__vector_base((char **)&v175);
std::string::~string((int)&v171);
std::__vector_base::~__vector_base(v170);
LABEL_134:
v123 = ButtonSprite::create(
(ButtonSprite *)"Accept",
(const char *)&word_2C,
0,
0.35,
1,
"bigFont.fnt",
"GJ_button_01.png",
(const char *)0x41A00000,
v149);
v165 = 0;
v164 = InvitesPopup::onAccept;
v124 = CCMenuItemSpriteExtra::create((int)v123, 0, (int)this, (int)InvitesPopup::onAccept, 0);
CCMenuItemSpriteExtra::setSizeMult(v124, 1.2);
(*(void (__fastcall **)(int, unsigned __int8 *))(*(_DWORD *)v124 + 324))(v124, v8);
v125 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v124 + 92);
if ( *((_BYTE *)this + 617) )
v126 = -v24;
else
v126 = 11.0 - v24;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, *((float *)this + 138) - 37.0, v126);
v125(v124, &v175);
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v3 + 232))(v3, v124, 2);
v127 = *((unsigned __int8 *)this + 617);
if ( !*((_BYTE *)this + 617) )
{
v128 = ButtonSprite::create(
(ButtonSprite *)"Ignore",
(const char *)&word_2C,
v127,
0.35,
1,
"bigFont.fnt",
"GJ_button_05.png",
(const char *)0x41A00000,
v149);
v167 = v127;
v166 = InvitesPopup::onDecline;
v129 = CCMenuItemSpriteExtra::create((int)v128, v127, (int)this, (int)InvitesPopup::onDecline, v127);
CCMenuItemSpriteExtra::setSizeMult(v129, 1.2);
(*(void (__fastcall **)(int, unsigned __int8 *))(*(_DWORD *)v129 + 324))(v129, v8);
v130 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v129 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, *((float *)this + 138) - 37.0, v25 - 11.0);
v130(v129, &v175);
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v3 + 232))(v3, v129, 2);
}
v131 = *((float *)this + 138);
v175 = 1015209215;
v132 = cocos2d::CCLayerColor::create(&v175, v131 - 70.0, 1113063424);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v132 + 220))(v132, 0);
v133 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v132 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, 0.0, 0.5);
v133(v132, &v175);
v134 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v132 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, 0.0, v25);
v134(v132, &v175);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v132 + 172))(v132, 0);
(*(void (__fastcall **)(int, int, _DWORD))(*(_DWORD *)v3 + 232))(v3, v132, 0);
v136 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v135);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v136 + 64))(v136, (float)(v131 - 70.0) / 60.0);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v136 + 72))(v136, 1063675494);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v136 + 172))(v136, 0);
v169 = 0;
v168 = InvitesPopup::onViewRequest;
v137 = RowPressItem::create(v136, (int)this, (int)InvitesPopup::onViewRequest, 0);
*(_DWORD *)(v137 + 392) = v132;
*(_BYTE *)(v137 + 320) = 0;
CCMenuItemSpriteExtra::setSizeMult(v137, 1.0);
v138 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v137 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v175, v131 - 70.0, 54.0);
v138(v137, &v175);
(*(void (__fastcall **)(int, unsigned __int8 *))(*(_DWORD *)v137 + 324))(v137, v8);
v139 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v137 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v175, (float)(v131 - 70.0) * 0.5, v25);
v139(v137, &v175);
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v3 + 232))(v3, v137, 2);
LABEL_140:
++v151;
}
if ( !v150 )
{
v140 = *((unsigned __int8 *)this + 632);
if ( (v140 & 1) != 0 )
v141 = (int)*(this + 159);
else
v141 = v140 >> 1;
if ( v141 )
{
v142 = "No matches";
}
else if ( *((_BYTE *)this + 617) )
{
v142 = "Nothing ignored";
}
else
{
v142 = "No pending invites";
}
PagedListPopup::showStatus((PagedListPopup *)this, (cocos2d::CCLabelBMFont *)v142);
}
if ( (float)((float)((float)v150 * 54.0) + 6.0) < *((float *)this + 139) )
v143 = *((float *)this + 139);
else
v143 = (float)((float)v150 * 54.0) + 6.0;
ScrollableContentLayer::setContentHeight(*(this + 136), v143);
}