//
// InvitesPopup::buildRows from 0x1400f7a30 to 0x1400f9185 (5973 bytes)
//
// 7 xrefs:
// > InvitesPopup::onToggleIgnored @ 0x1400f728f
// > InvitesPopup::textChanged @ 0x1400f74bd
// > InvitesPopup::onClearSearch @ 0x1400f755c
// > InvitesPopup::threadInvitesFinished @ 0x1400f75c5
// > InvitesPopup::threadUpdateFinished @ 0x1400f99fa
// > InvitesPopup::threadUpdateFinished @ 0x1400f9ba2
// > ??> @ 0x140915380
//
// 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 11:26:39 +0000
//
// Hidden C++ exception states: #wind=14
void __fastcall InvitesPopup::buildRows(__int64 a1, __int64 a2, __int64 a3, double a4)
{
__int64 v4; // r15
unsigned int v5; // r14d
__int64 v6; // rcx
float v7; // xmm14_4
int v8; // edi
cocos2d::CCArray *v9; // rcx
signed int v10; // eax
struct cocos2d::CCObject *v11; // rax
__int64 v12; // rdx
__int64 v13; // r8
struct cocos2d::CCObject *v14; // r13
__int64 v15; // rcx
int v16; // r14d
char *v17; // rsi
_QWORD *v18; // rdx
unsigned __int64 v19; // r8
_QWORD *v20; // rbx
unsigned __int64 v21; // r10
unsigned __int8 *v22; // rbx
char *v23; // rdi
signed __int64 v24; // rsi
_QWORD *v25; // r15
__int64 v26; // r9
_QWORD *v27; // rcx
unsigned __int64 *v28; // r12
int v29; // r14d
char *v30; // rsi
_QWORD *v31; // rdx
unsigned __int64 v32; // r8
_QWORD *v33; // rbx
unsigned __int64 v34; // r10
unsigned __int8 *v35; // rbx
char *v36; // rdi
signed __int64 v37; // rsi
_QWORD *v38; // rcx
char v39; // bl
int v40; // esi
float v41; // xmm11_4
struct cocos2d::CCLayerColor *v42; // rdi
__int64 v43; // rbx
__int64 v44; // rax
__int64 *v45; // r12
void **p_Src; // rcx
__int128 *v47; // rsi
unsigned __int64 v48; // rdi
unsigned __int64 v49; // rbx
__int64 v50; // rax
__int64 v51; // rdx
__int64 v52; // rcx
__int64 v53; // r8
__int64 *v54; // rdi
void *v55; // rcx
__int64 v56; // rax
__int64 v57; // rbx
__int64 v58; // rax
__int64 *v59; // rdi
__int64 v60; // rbx
__int64 v61; // rax
char v62; // al
char v63; // r15
float v64; // xmm9_4
float v65; // xmm8_4
struct cocos2d::CCLabelBMFont *v66; // rsi
float v67; // xmm10_4
char v68; // al
char *v69; // rcx
const char *v70; // rdx
cocos2d::CCLabelBMFont *v71; // rax
cocos2d::CCLabelBMFont *v72; // rdi
float v73; // xmm0_4
int v74; // edx
const char *v75; // r8
cocos2d::CCString *v76; // rax
const char *CString; // rax
float v78; // xmm6_4
double v79; // xmm0_8
float v80; // xmm7_4
int v81; // esi
cocos2d::CCObject *v82; // rdi
__int64 v83; // rbx
__int64 v84; // rax
__int64 v85; // rbx
__int64 v86; // rax
__int64 v87; // rbx
__int64 v88; // rax
cocos2d::CCObject *v89; // rdi
__int64 v90; // rbx
__int64 v91; // rax
float v92; // xmm9_4
__int64 *v93; // rdi
__int64 v94; // rbx
__int64 v95; // rax
const char *v96; // rcx
cocos2d::CCLabelBMFont *v97; // rbx
float v98; // xmm6_4
double v99; // xmm0_8
float v100; // xmm7_4
cocos2d::CCObject *v101; // rdi
__int64 v102; // rbx
__int64 v103; // rax
const char *v104; // rdx
unsigned __int64 v105; // rax
cocos2d::CCString *v106; // rax
const char *v107; // rax
struct cocos2d::CCLabelBMFont *v108; // rdi
__int64 v109; // rbx
__int64 v110; // rax
__int64 v111; // rdx
cocos2d::CCPoint *v112; // rcx
cocos2d::CCString *v113; // rax
const char *v114; // rax
__int64 v115; // rbx
__int64 v116; // rax
__int64 v117; // rdx
__int64 v118; // rbx
__int64 v119; // rax
_QWORD *v120; // rax
__int64 v121; // rax
_QWORD *v122; // rax
void *v123; // rcx
__int64 v124; // rdx
__int128 *v125; // r8
__int128 *v126; // rcx
__int128 *i; // rax
int v128; // r14d
__int64 v129; // r9
unsigned __int64 v130; // rbx
unsigned __int64 v131; // rsi
char *v132; // r8
signed __int64 v133; // rcx
unsigned __int64 v134; // rdx
__int64 v135; // rdi
size_t v136; // r8
__int128 *v137; // rdx
bool v138; // al
char v139; // dl
__int64 v140; // rax
size_t v141; // rax
size_t v142; // r8
__int128 *v143; // rdx
void *v144; // rcx
struct cocos2d::CCLabelBMFont *v145; // rdi
__int64 v146; // rbx
__int64 v147; // rax
__int64 v148; // rdx
size_t v149; // rax
size_t *v150; // rdx
size_t *v151; // rcx
void (__fastcall **v152)(_QWORD, _QWORD); // rbx
__int64 v153; // rax
void *v154; // r8
void *v155; // rcx
void *v156; // r8
cocos2d::CCObject *v157; // rbx
cocos2d::CCObject *v158; // rdi
float v159; // xmm2_4
__int64 v160; // rbx
__int64 v161; // rax
cocos2d::CCObject *v162; // rbx
cocos2d::CCObject *v163; // rdi
__int64 v164; // rbx
__int64 v165; // rax
float v166; // xmm6_4
struct cocos2d::CCLayerColor *v167; // rsi
__int64 v168; // rbx
__int64 v169; // rax
__int64 v170; // rbx
__int64 v171; // rax
struct cocos2d::CCSprite *v172; // rbx
__int64 v173; // rdi
__int64 v174; // rbx
__int64 v175; // rax
__int64 v176; // rbx
__int64 v177; // rax
const char *v178; // rdx
__int64 v179; // rbx
__int64 v180; // rcx
_DWORD v181[3]; // [rsp+5Ch] [rbp-ACh] BYREF
__int64 Block; // [rsp+68h] [rbp-A0h]
void *Block_8[2]; // [rsp+70h] [rbp-98h] BYREF
__int64 v184; // [rsp+80h] [rbp-88h]
signed int v185; // [rsp+88h] [rbp-80h]
int v186; // [rsp+8Ch] [rbp-7Ch] BYREF
int v187; // [rsp+90h] [rbp-78h]
__int64 *v188; // [rsp+98h] [rbp-70h]
char v189[8]; // [rsp+A0h] [rbp-68h] BYREF
char v190[8]; // [rsp+A8h] [rbp-60h] BYREF
char v191[8]; // [rsp+B0h] [rbp-58h] BYREF
char v192[8]; // [rsp+B8h] [rbp-50h] BYREF
char v193[8]; // [rsp+C0h] [rbp-48h] BYREF
char v194[8]; // [rsp+C8h] [rbp-40h] BYREF
char v195[8]; // [rsp+D0h] [rbp-38h] BYREF
char v196[8]; // [rsp+D8h] [rbp-30h] BYREF
char v197[8]; // [rsp+E0h] [rbp-28h] BYREF
char v198; // [rsp+E8h] [rbp-20h] BYREF
char v199[8]; // [rsp+F0h] [rbp-18h] BYREF
char v200; // [rsp+F8h] [rbp-10h] BYREF
char v201[8]; // [rsp+100h] [rbp-8h] BYREF
char v202[8]; // [rsp+108h] [rbp+0h] BYREF
void *v203; // [rsp+110h] [rbp+8h]
char v204[8]; // [rsp+118h] [rbp+10h] BYREF
void *v205; // [rsp+120h] [rbp+18h]
char v206[8]; // [rsp+128h] [rbp+20h] BYREF
char v207[8]; // [rsp+130h] [rbp+28h] BYREF
char v208[8]; // [rsp+138h] [rbp+30h] BYREF
char v209[8]; // [rsp+140h] [rbp+38h] BYREF
char v210[8]; // [rsp+148h] [rbp+40h] BYREF
char v211[8]; // [rsp+150h] [rbp+48h] BYREF
__int128 Src; // [rsp+158h] [rbp+50h] BYREF
__int128 v213; // [rsp+168h] [rbp+60h]
__int128 v214; // [rsp+178h] [rbp+70h] BYREF
__int128 v215; // [rsp+188h] [rbp+80h]
void *v216[2]; // [rsp+198h] [rbp+90h] BYREF
__int64 v217; // [rsp+1A8h] [rbp+A0h]
__int64 v218; // [rsp+1B0h] [rbp+A8h]
_QWORD v219[2]; // [rsp+1B8h] [rbp+B0h] BYREF
unsigned __int64 v220; // [rsp+1C8h] [rbp+C0h]
unsigned __int64 v221; // [rsp+1D0h] [rbp+C8h]
_QWORD v222[2]; // [rsp+1D8h] [rbp+D0h] BYREF
unsigned __int64 v223; // [rsp+1E8h] [rbp+E0h]
unsigned __int64 v224; // [rsp+1F0h] [rbp+E8h]
_QWORD v225[4]; // [rsp+1F8h] [rbp+F0h] BYREF
v4 = a1;
Block = a1;
v5 = 0;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1088LL))(a1);
v6 = *(_QWORD *)(v4 + 760);
if ( v6 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 512LL))(v6);
*(_QWORD *)(v4 + 760) = 0;
}
v188 = *(__int64 **)(*(_QWORD *)(v4 + 688) + 416LL);
v7 = (float)(*(float *)(v4 + 704) - 40.0) - 75.0;
v8 = 0;
v181[0] = 0;
v9 = *(cocos2d::CCArray **)(v4 + 792);
if ( !v9 )
goto LABEL_194;
v187 = cocos2d::CCArray::count(v9);
v10 = 0;
v185 = 0;
if ( v187 <= 0 )
goto LABEL_194;
do
{
v11 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v4 + 792), v10);
v14 = v11;
v15 = *(unsigned __int8 *)(v4 + 813);
if ( *((_BYTE *)v11 + 329) == (_BYTE)v15 )
{
if ( !*(_QWORD *)(v4 + 856) )
goto LABEL_38;
sub_14003F4F0((__int64)v222, (__int64)v11 + 64);
v16 = v5 | 0x10;
v17 = (char *)v222;
v18 = (_QWORD *)v222[0];
v19 = v224;
if ( v224 > 0xF )
v17 = (char *)v222[0];
v20 = v222;
if ( v224 > 0xF )
v20 = (_QWORD *)v222[0];
v21 = v223;
v22 = (unsigned __int8 *)v20 + v223;
v23 = (char *)v222;
if ( v224 > 0xF )
v23 = (char *)v222[0];
if ( v23 != (char *)v22 )
{
v24 = v17 - v23;
do
{
v23[v24] = tolower((unsigned __int8)*v23);
++v23;
}
while ( v23 != (char *)v22 );
v19 = v224;
v21 = v223;
v18 = (_QWORD *)v222[0];
}
v5 = v16 | 1;
v25 = (_QWORD *)(v4 + 840);
v26 = (__int64)v25;
if ( v25[3] > 0xFu )
v26 = *v25;
v27 = v222;
if ( v19 > 0xF )
v27 = v18;
v28 = v25 + 2;
if ( sub_14003EFB0((__int64)v27, v21, 0, v26, v25[2]) != -1 )
goto LABEL_38;
sub_14003F4F0((__int64)v219, (__int64)v14 + 96);
v29 = v5 | 0x80;
v30 = (char *)v219;
v31 = (_QWORD *)v219[0];
v32 = v221;
if ( v221 > 0xF )
v30 = (char *)v219[0];
v33 = v219;
if ( v221 > 0xF )
v33 = (_QWORD *)v219[0];
v34 = v220;
v35 = (unsigned __int8 *)v33 + v220;
v36 = (char *)v219;
if ( v221 > 0xF )
v36 = (char *)v219[0];
if ( v36 != (char *)v35 )
{
v37 = v30 - v36;
do
{
v36[v37] = tolower((unsigned __int8)*v36);
++v36;
}
while ( v36 != (char *)v35 );
v32 = v221;
v34 = v220;
v31 = (_QWORD *)v219[0];
}
v5 = v29 | 2;
if ( v25[3] > 0xFu )
v25 = (_QWORD *)*v25;
v38 = v219;
if ( v32 > 0xF )
v38 = v31;
if ( sub_14003EFB0((__int64)v38, v34, 0, (__int64)v25, *v28) == -1 )
v39 = 1;
else
LABEL_38:
v39 = 0;
if ( (v5 & 2) != 0 )
{
v5 &= ~2u;
sub_14003D310((__int64)v219);
}
if ( (v5 & 1) != 0 )
{
v5 &= ~1u;
sub_14003D310((__int64)v222);
}
if ( v39 )
{
v4 = Block;
}
else
{
v40 = v181[0];
v41 = -(float)((float)((float)v181[0] * 54.0) + 27.0);
if ( v181[0] <= 0 )
{
v45 = v188;
}
else
{
v181[1] = 838860800;
v181[0] = 838860800;
v42 = cocos2d::CCLayerColor::create(
(const struct cocos2d::_ccColor4B *)v181,
*(float *)(Block + 704) - 16.0,
1.0);
v43 = *(_QWORD *)v42;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v211, 8.0, v41 + 27.0);
(*(void (__fastcall **)(struct cocos2d::CCLayerColor *, __int64))(v43 + 184))(v42, v44);
v45 = v188;
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCLayerColor *, _QWORD))(*v188 + 456))(v188, v42, 0);
}
v181[0] = v40 + 1;
if ( *((_BYTE *)v14 + 320) )
{
if ( *((_BYTE *)v14 + 361) )
{
v59 = (__int64 *)sub_1400F78D0((unsigned int *)v14);
v60 = *v59;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v190, 22.0, v41);
(*(void (__fastcall **)(__int64 *, __int64))(v60 + 184))(v59, v61);
(*(void (__fastcall **)(__int64 *, __int64 *, __int64))(*v45 + 456))(v45, v59, 1);
}
}
else
{
if ( *((_QWORD *)v14 + 38) )
{
Src = 0;
v213 = 0u;
v47 = (__int128 *)((char *)v14 + 288);
if ( *((_QWORD *)v14 + 39) > 0xFu )
v47 = *((__int128 **)v14 + 36);
v48 = *((_QWORD *)v14 + 38);
if ( v48 > 0x7FFFFFFFFFFFFFFFLL )
sub_140009D90(v15);
if ( v48 > 0xF )
{
v49 = v48 | 0xF;
if ( (v48 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL )
{
if ( v49 < 0x16 )
v49 = 22;
}
else
{
v49 = 0x7FFFFFFFFFFFFFFFLL;
}
*(_QWORD *)&Src = sub_14003D460(v49 + 1);
*(_QWORD *)&v213 = v48;
*((_QWORD *)&v213 + 1) = v49;
memcpy((void *)Src, v47, v48 + 1);
}
else
{
*(_QWORD *)&v213 = *((_QWORD *)v14 + 38);
*((_QWORD *)&v213 + 1) = 15;
Src = *v47;
}
p_Src = (void **)&Src;
v5 |= 8u;
}
else
{
*(_OWORD *)v216 = 0;
v217 = 2;
v218 = 15;
strcpy((char *)v216, "na");
p_Src = v216;
v5 |= 4u;
}
v50 = EmoteSprite::defForName((__int64)p_Src, v12, v13, a4);
if ( v50 )
v54 = EmoteSprite::createWithDef(v50);
else
v54 = nullptr;
if ( (v5 & 8) != 0 )
{
v5 &= ~8u;
v51 = *((_QWORD *)&v213 + 1);
if ( *((_QWORD *)&v213 + 1) > 0xFu )
{
v55 = (void *)Src;
if ( (unsigned __int64)(*((_QWORD *)&v213 + 1) + 1LL) >= 0x1000 )
{
v55 = *(void **)(Src - 8);
if ( (unsigned __int64)(Src - (_QWORD)v55 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v55);
}
}
if ( (v5 & 4) != 0 )
{
v5 &= ~4u;
sub_14003D310((__int64)v216);
}
if ( v54
|| ((Src = 0,
*(_QWORD *)&v213 = 2,
*((_QWORD *)&v213 + 1) = 15,
strcpy((char *)&Src, "na"),
(v56 = EmoteSprite::defForName((__int64)&Src, v51, v53, a4)) != 0)
? (v54 = EmoteSprite::createWithDef(v56))
: (v54 = nullptr),
sub_14003D310((__int64)&Src),
v54) )
{
ensureEmotesAreLoaded(v52, v51, v53, a4);
EmoteSprite::fitToHeight(v54, (float)(*(float *)&dword_1408FE390 * 13.5) * 1.2, 0.0);
v57 = *v54;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v189, 22.0, v41);
(*(void (__fastcall **)(__int64 *, __int64))(v57 + 184))(v54, v58);
(*(void (__fastcall **)(__int64 *, __int64 *, __int64))(*v45 + 456))(v45, v54, 1);
}
}
v62 = *((_BYTE *)v14 + 320);
if ( v62 && *((_QWORD *)v14 + 19) )
{
v63 = 1;
v64 = v41 + 18.0;
v65 = v41 + 1.0;
v66 = nullptr;
v67 = 0.0;
}
else
{
v64 = v41 + 10.0;
v65 = v41 - 9.0;
v66 = nullptr;
v67 = 0.0;
v63 = 0;
if ( !v62 )
{
v74 = *((_DWORD *)v14 + 50);
v75 = (const char *)&unk_14070D03C;
if ( v74 == 1 )
v75 = &byte_1406ED6E0;
v76 = cocos2d::CCString::createWithFormat("%i Member%s", v74, v75);
CString = cocos2d::CCString::getCString(v76);
v66 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt");
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v66 + 160LL))(v66);
v67 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v66 + 320LL))(v66)
* 0.44999999;
}
}
v68 = *((_BYTE *)v14 + 320);
v69 = (char *)v14 + 64;
if ( !v68 )
v69 = (char *)v14 + 96;
if ( *((_QWORD *)v69 + 3) > 0xFu )
v69 = *(char **)v69;
v70 = (const char *)&qword_140704F78;
if ( v68 )
v70 = "goldFont.fnt";
v71 = cocos2d::CCLabelBMFont::create(v69, v70);
v72 = v71;
if ( v66 )
v73 = v67 + 6.0;
else
v73 = 0.0;
cocos2d::CCLabelBMFont::limitLabelWidth(v71, v7 - v73, 0.44999999, 0.2);
v78 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v72 + 320LL))(v72);
v79 = (*(double (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v72 + 168LL))(v72);
v80 = *(float *)&v79 * v78;
if ( *((_BYTE *)v14 + 320) )
{
v81 = Block;
v82 = CCMenuItemSpriteExtra::create((int)v72, 0, Block, (__int64)InvitesPopup::onViewInviter);
*((_DWORD *)v82 + 93) = 1067869798;
(*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCObject *))(*(_QWORD *)v82 + 640LL))(v82, v14);
v83 = *(_QWORD *)v82;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v191, (float)(v80 * 0.5) + 40.0, v64);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v83 + 184))(v82, v84);
(*(void (__fastcall **)(__int64 *, cocos2d::CCObject *, __int64))(*v45 + 456))(v45, v82, 2);
}
else
{
v85 = *(_QWORD *)v72;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v192, 0.0, 0.5);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v85 + 288))(v72, v86);
v87 = *(_QWORD *)v72;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v193, 40.0, v64);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v87 + 184))(v72, v88);
(*(void (__fastcall **)(__int64 *, cocos2d::CCLabelBMFont *, __int64))(*v45 + 456))(v45, v72, 1);
v89 = CCMenuItemSpriteExtra::create((int)v66, 0, Block, (__int64)InvitesPopup::onViewMembers);
*((_DWORD *)v89 + 93) = 1067869798;
(*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCObject *))(*(_QWORD *)v89 + 640LL))(v89, v14);
v90 = *(_QWORD *)v89;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v194,
(float)((float)(v80 + 40.0) + 6.0) + (float)(v67 * 0.5),
v64);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v90 + 184))(v89, v91);
(*(void (__fastcall **)(__int64 *, cocos2d::CCObject *, __int64))(*v45 + 456))(v45, v89, 2);
v81 = Block;
}
v92 = 40.0;
if ( !*((_BYTE *)v14 + 320) )
{
if ( *((_BYTE *)v14 + 361) )
{
v93 = (__int64 *)sub_1400F78D0((unsigned int *)v14);
v94 = *v93;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, 46.0, v65);
(*(void (__fastcall **)(__int64 *, __int64))(v94 + 184))(v93, v95);
(*(void (__fastcall **)(__int64 *, __int64 *, __int64))(*v45 + 456))(v45, v93, 1);
v92 = 56.0;
}
v96 = (char *)v14 + 64;
if ( *((_QWORD *)v14 + 11) > 0xFu )
v96 = *(const char **)v96;
v97 = cocos2d::CCLabelBMFont::create(v96, "goldFont.fnt");
cocos2d::CCLabelBMFont::limitLabelWidth(v97, 100.0, 0.44999999, 0.2);
v98 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v97 + 320LL))(v97);
v99 = (*(double (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v97 + 168LL))(v97);
v100 = *(float *)&v99 * v98;
v101 = CCMenuItemSpriteExtra::create((int)v97, 0, v81, (__int64)InvitesPopup::onViewInviter);
*((_DWORD *)v101 + 93) = 1067869798;
(*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCObject *))(*(_QWORD *)v101 + 640LL))(v101, v14);
v102 = *(_QWORD *)v101;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v196, (float)((float)(*(float *)&v99 * v98) * 0.5) + v92, v65);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v102 + 184))(v101, v103);
(*(void (__fastcall **)(__int64 *, cocos2d::CCObject *, __int64))(*v45 + 456))(v45, v101, 2);
v92 = v92 + (float)(v100 + 4.0);
}
v104 = (char *)v14 + 168;
v105 = *((_QWORD *)v14 + 24);
if ( *((_BYTE *)v14 + 320) )
{
if ( v105 > 0xF )
v104 = *(const char **)v104;
v106 = cocos2d::CCString::createWithFormat("Message Request - %s ago", v104);
v107 = cocos2d::CCString::getCString(v106);
v108 = cocos2d::CCLabelBMFont::create(v107, "chatFont.fnt");
v109 = *(_QWORD *)v108;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v197, 0.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v109 + 288))(v108, v110);
*(_QWORD *)&a4 = 1050924810;
cocos2d::CCLabelBMFont::limitLabelWidth(v108, v7 - (float)(v92 - 40.0), 0.5, 0.31999999);
LOBYTE(v111) = -106;
(*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v108 + 46) + 40LL))((__int64)v108 + 368, v111);
v112 = (cocos2d::CCPoint *)&v198;
}
else
{
if ( v105 > 0xF )
v104 = *(const char **)v104;
v113 = cocos2d::CCString::createWithFormat("invited you %s ago", v104);
v114 = cocos2d::CCString::getCString(v113);
v108 = cocos2d::CCLabelBMFont::create(v114, "chatFont.fnt");
v115 = *(_QWORD *)v108;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v199, 0.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v115 + 288))(v108, v116);
*(_QWORD *)&a4 = 1050924810;
cocos2d::CCLabelBMFont::limitLabelWidth(v108, v7 - (float)(v92 - 40.0), 0.5, 0.31999999);
LOBYTE(v117) = -106;
(*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v108 + 46) + 40LL))((__int64)v108 + 368, v117);
v65 = v65 - 0.5;
v112 = (cocos2d::CCPoint *)&v200;
}
v118 = *(_QWORD *)v108;
cocos2d::CCPoint::CCPoint(v112, v92, v65);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v118 + 184))(v108, v119);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCLabelBMFont *, __int64))(*v45 + 456))(v45, v108, 1);
if ( v63 )
{
*(_OWORD *)v216 = 0;
v217 = 0;
v120 = sub_1400E4180(v225, (_QWORD *)v14 + 17, v216);
v121 = sub_140059D70(v120, 0, "\"", 1u);
Src = 0;
v213 = 0u;
Src = *(_OWORD *)v121;
v213 = *(_OWORD *)(v121 + 16);
*(_QWORD *)(v121 + 16) = 0;
*(_QWORD *)(v121 + 24) = 15;
*(_BYTE *)v121 = 0;
v122 = sub_140044D80(&Src, "\"", 1u);
v214 = 0;
v215 = 0u;
v214 = *(_OWORD *)v122;
v215 = *((_OWORD *)v122 + 1);
v122[2] = 0;
v122[3] = 15;
*(_BYTE *)v122 = 0;
v5 |= 0x60u;
if ( *((_QWORD *)&v213 + 1) > 0xFu )
{
v123 = (void *)Src;
if ( (unsigned __int64)(*((_QWORD *)&v213 + 1) + 1LL) >= 0x1000 )
{
v123 = *(void **)(Src - 8);
if ( (unsigned __int64)(Src - (_QWORD)v123 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v123);
}
*(_QWORD *)&v213 = 0;
*((_QWORD *)&v213 + 1) = 15;
LOBYTE(Src) = 0;
sub_14003D310((__int64)v225);
v125 = &v214;
if ( *((_QWORD *)&v215 + 1) > 0xFu )
v125 = (__int128 *)v214;
v126 = &v214;
if ( *((_QWORD *)&v215 + 1) > 0xFu )
v126 = (__int128 *)v214;
for ( i = (__int128 *)((char *)v126 + v215); v125 != i; v125 = (__int128 *)((char *)v125 + 1) )
{
if ( *(_BYTE *)v125 == 10 )
*(_BYTE *)v125 = 32;
}
*(_OWORD *)Block_8 = 0;
v184 = 0;
ensureEmotesAreLoaded((__int64)v126, v124, (__int64)v125, COERCE_DOUBLE(1050924810));
EmoteSprite::parseTokens(&v214, (__int64)Block_8, dword_1408FE394, COERCE_DOUBLE(1050924810));
if ( Block_8[0] != Block_8[1] )
{
Src = 0;
*(_QWORD *)&v213 = 0;
*((_QWORD *)&v213 + 1) = 15;
LOBYTE(Src) = 0;
v128 = v5 | 0x100;
sub_140059AB0((void **)&Src, v215);
v130 = 0;
v131 = 0;
v132 = (char *)Block_8[0];
v133 = (char *)Block_8[1] - (char *)Block_8[0];
v134 = ((char *)Block_8[1] - (char *)Block_8[0]) / 24;
if ( v134 )
{
v135 = 0;
do
{
if ( (unsigned __int64)v215 < v130 )
goto LABEL_191;
v136 = *(_QWORD *)&v132[v135] - v130;
if ( (unsigned __int64)v215 - v130 < v136 )
v136 = v215 - v130;
v137 = &v214;
if ( *((_QWORD *)&v215 + 1) > 0xFu )
v137 = (__int128 *)v214;
sub_140044D80(&Src, (char *)v137 + v130, v136);
v130 = *(_QWORD *)((char *)Block_8[0] + v135) + *(_QWORD *)((char *)Block_8[0] + v135 + 8);
*(_QWORD *)((char *)Block_8[0] + v135) = v213;
*(_QWORD *)((char *)Block_8[0] + v135 + 8) = 1;
v138 = sub_14007FD40(*(_QWORD *)((char *)Block_8[0] + v135 + 16), 0.0);
v139 = 127;
if ( v138 )
v139 = 30;
sub_14003DBD0((void **)&Src, v139);
++v131;
v135 += 24;
v132 = (char *)Block_8[0];
v133 = (char *)Block_8[1] - (char *)Block_8[0];
v134 = ((char *)Block_8[1] - (char *)Block_8[0]) / 24;
}
while ( v131 < v134 );
v140 = v215;
if ( (unsigned __int64)v215 < v130 )
LABEL_191:
sub_14003F4D0(v133, v134, v132, v129);
}
else
{
v140 = v215;
}
v141 = v140 - v130;
v142 = -1;
if ( v141 != -1 )
v142 = v141;
v143 = &v214;
if ( *((_QWORD *)&v215 + 1) > 0xFu )
v143 = (__int128 *)v214;
sub_140044D80(&Src, (char *)v143 + v130, v142);
if ( *((_QWORD *)&v215 + 1) > 0xFu )
{
v144 = (void *)v214;
if ( (unsigned __int64)(*((_QWORD *)&v215 + 1) + 1LL) >= 0x1000 )
{
v144 = *(void **)(v214 - 8);
if ( (unsigned __int64)(v214 - (_QWORD)v144 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v144);
}
v214 = Src;
v215 = v213;
*(_QWORD *)&v213 = 0;
*((_QWORD *)&v213 + 1) = 15;
LOBYTE(Src) = 0;
v5 = v128 & 0xFFFFFEFF;
sub_14003D310((__int64)&Src);
}
v145 = cocos2d::CCLabelBMFont::create(&byte_1406ED6E0, "chatFont.fnt");
v146 = *(_QWORD *)v145;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, 0.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v146 + 288))(v145, v147);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v145 + 160LL))(v145);
LOBYTE(v148) = -46;
(*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v145 + 46) + 40LL))((__int64)v145 + 368, v148);
v149 = sub_1400F7600((void (__fastcall ***)(_QWORD, _QWORD))v145, &v214, v7);
v150 = (size_t *)Block_8[1];
if ( Block_8[0] != Block_8[1] )
{
do
{
v151 = v150 - 3;
v150 = v151;
if ( *v151 < v149 )
break;
Block_8[1] = v151;
}
while ( Block_8[0] != v151 );
}
v152 = *(void (__fastcall ***)(_QWORD, _QWORD))v145;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v202, 40.0, v41 - 15.0);
((void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))v152)[23](v145, v153);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCLabelBMFont *, __int64))(*v45 + 456))(v45, v145, 1);
a4 = 0.0;
EmoteSprite::attachToLabel(v145, v45, (__int64 *)Block_8, 0.0);
v154 = Block_8[0];
if ( Block_8[0] )
{
if ( (unsigned __int64)(24 * ((signed __int64)(v184 - (unsigned __int64)Block_8[0]) / 24)) >= 0x1000 )
{
v154 = *((void **)Block_8[0] - 1);
if ( (unsigned __int64)((char *)Block_8[0] - (char *)v154 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v154);
*(_OWORD *)Block_8 = 0;
v184 = 0;
}
if ( *((_QWORD *)&v215 + 1) > 0xFu )
{
v155 = (void *)v214;
if ( (unsigned __int64)(*((_QWORD *)&v215 + 1) + 1LL) >= 0x1000 )
{
v155 = *(void **)(v214 - 8);
if ( (unsigned __int64)(v214 - (_QWORD)v155 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v155);
}
*(_QWORD *)&v215 = 0;
*((_QWORD *)&v215 + 1) = 15;
LOBYTE(v214) = 0;
v156 = v216[0];
if ( v216[0] )
{
if ( (unsigned __int64)(24 * ((signed __int64)(v217 - (unsigned __int64)v216[0]) / 24)) >= 0x1000 )
{
v156 = *((void **)v216[0] - 1);
if ( (unsigned __int64)((char *)v216[0] - (char *)v156 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v156);
}
}
v203 = operator new(0x2C8u);
v157 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v203);
if ( v157 )
{
if ( ButtonSprite::init_1(
(__int64)v157,
(__int64)"Accept",
44,
0,
1051931443,
1,
&qword_140704F78,
(__int64)"GJ_button_01.png",
1101004800) )
{
cocos2d::CCObject::autorelease(v157);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v157 + 8LL))(v157, 1);
LODWORD(v157) = 0;
}
}
v4 = Block;
v158 = CCMenuItemSpriteExtra::create((int)v157, 0, Block, (__int64)InvitesPopup::onAccept);
*((_DWORD *)v158 + 93) = 1067030938;
(*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCObject *))(*(_QWORD *)v158 + 640LL))(v158, v14);
v159 = v41;
if ( !*(_BYTE *)(v4 + 813) )
v159 = v41 + 11.0;
v160 = *(_QWORD *)v158;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v204, *(float *)(v4 + 704) - 37.0, v159);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v160 + 184))(v158, v161);
(*(void (__fastcall **)(__int64 *, cocos2d::CCObject *, __int64))(*v45 + 456))(v45, v158, 2);
if ( !*(_BYTE *)(v4 + 813) )
{
v205 = operator new(0x2C8u);
v162 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v205);
if ( v162 )
{
if ( ButtonSprite::init_1(
(__int64)v162,
(__int64)"Ignore",
44,
0,
1051931443,
1,
&qword_140704F78,
(__int64)"GJ_button_05.png",
1101004800) )
{
cocos2d::CCObject::autorelease(v162);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v162 + 8LL))(v162, 1);
LODWORD(v162) = 0;
}
}
v163 = CCMenuItemSpriteExtra::create((int)v162, 0, v4, (__int64)InvitesPopup::onDecline);
*((_DWORD *)v163 + 93) = 1067030938;
(*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCObject *))(*(_QWORD *)v163 + 640LL))(v163, v14);
v164 = *(_QWORD *)v163;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v206, *(float *)(v4 + 704) - 37.0, v41 - 11.0);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v164 + 184))(v163, v165);
(*(void (__fastcall **)(__int64 *, cocos2d::CCObject *, __int64))(*v45 + 456))(v45, v163, 2);
}
v166 = *(float *)(v4 + 704) - 70.0;
v181[2] = 1015209215;
v186 = 1015209215;
v167 = cocos2d::CCLayerColor::create((const struct cocos2d::_ccColor4B *)&v186, v166, 54.0);
(*(void (__fastcall **)(struct cocos2d::CCLayerColor *, _QWORD))(*(_QWORD *)v167 + 432LL))(v167, 0);
v168 = *(_QWORD *)v167;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v207, 0.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLayerColor *, __int64))(v168 + 288))(v167, v169);
v170 = *(_QWORD *)v167;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v208, 0.0, v41);
(*(void (__fastcall **)(struct cocos2d::CCLayerColor *, __int64))(v170 + 184))(v167, v171);
(*(void (__fastcall **)(struct cocos2d::CCLayerColor *, _QWORD))(*(_QWORD *)v167 + 336LL))(v167, 0);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCLayerColor *, _QWORD))(*v45 + 456))(v45, v167, 0);
v172 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png");
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v172 + 120LL))(v172);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v172 + 136LL))(v172);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, _QWORD))(*(_QWORD *)v172 + 336LL))(v172, 0);
v173 = RowPressItem::create(v172, v4, InvitesPopup::onViewRequest);
*(_QWORD *)(v173 + 520) = v167;
*(_BYTE *)(v173 + 408) = 0;
*(_DWORD *)(v173 + 372) = 1065353216;
v174 = *(_QWORD *)v173;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v209, v166, 54.0);
(*(void (__fastcall **)(__int64, __int64))(v174 + 312))(v173, v175);
(*(void (__fastcall **)(__int64, struct cocos2d::CCObject *))(*(_QWORD *)v173 + 640LL))(v173, v14);
v176 = *(_QWORD *)v173;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v210, v166 * 0.5, v41);
(*(void (__fastcall **)(__int64, __int64))(v176 + 184))(v173, v177);
(*(void (__fastcall **)(__int64 *, __int64, __int64))(*v45 + 456))(v45, v173, 2);
}
}
v10 = v185 + 1;
v185 = v10;
}
while ( v10 < v187 );
v8 = v181[0];
if ( !v181[0] )
{
LABEL_194:
if ( *(_QWORD *)(v4 + 856) )
{
v178 = "No matches";
}
else
{
v178 = "No pending invites";
if ( *(_BYTE *)(v4 + 813) )
v178 = "Nothing ignored";
}
PagedListPopup::showStatus(v4, v178);
}
v179 = *(_QWORD *)(v4 + 688);
*(float *)(v179 + 432) = fmaxf((float)((float)v8 * 54.0) + 6.0, *(float *)(v4 + 708));
ScrollableContentLayer::clampOffset(v179);
ScrollableContentLayer::ensureScrollThumb(v180);
ScrollableContentLayer::applyContentPosition(v179);
}