//
// MemberListPopup::buildRows from 0x1400ec5e0 to 0x1400ece5d (2173 bytes)
//
// 5 xrefs:
// > MemberListPopup::init @ 0x1400ebf9a
// > MemberListPopup::threadMembersFinished @ 0x1400ec023
// > MemberListPopup::threadMessagesFinished @ 0x1400ec0f0
// > MemberListPopup::threadUpdateFinished @ 0x1400eebdb
// > ??> @ 0x140914fb4
//
// 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:35 +0000
//
// Hidden C++ exception states: #wind=3
void __fastcall MemberListPopup::buildRows(__int64 a1)
{
__int64 v2; // rdx
__int64 v3; // rcx
__int64 v4; // rax
__int64 v5; // rbx
char v6; // r13
__int64 v7; // rcx
__int64 v8; // rcx
cocos2d::CCArray *ThreadMembers; // rax
cocos2d::CCArray *v10; // r12
unsigned int v11; // edx
void (__fastcall **v12)(__int64, const char *); // rdi
__int64 v13; // rbx
cocos2d::CCString *v14; // rax
const char *CString; // rax
__int64 *v16; // rbx
__int64 v17; // r14
int v18; // edi
signed int v19; // ebp
struct cocos2d::CCObject *v20; // r15
float v21; // xmm6_4
__int64 v22; // rcx
struct cocos2d::CCLabelBMFont *v23; // rdi
__int64 v24; // rbx
__int64 v25; // rax
__int64 v26; // rdx
__int64 v27; // rbx
__int64 v28; // rax
__int64 v29; // rax
struct cocos2d::CCSprite *v30; // rax
int v31; // ebx
cocos2d::CCObject *v32; // rdi
__int64 v33; // rbx
__int64 v34; // rax
struct cocos2d::CCSprite *v35; // rax
cocos2d::CCObject *v36; // rdi
__int64 v37; // rbx
__int64 v38; // rax
__int64 v39; // rcx
cocos2d::CCArray *ThreadPendingInvites; // rax
cocos2d::CCArray *v41; // rbp
int v42; // r13d
signed int v43; // r15d
struct cocos2d::CCObject *v44; // r12
float v45; // xmm6_4
__int64 v46; // rax
__int64 v47; // rcx
__int64 v48; // rax
bool v49; // bp
struct cocos2d::CCLabelBMFont *v50; // rdi
__int64 v51; // rbx
__int64 v52; // rax
__int64 v53; // rdx
__int64 v54; // rbx
int v55; // eax
__int64 v56; // rax
__int64 *v57; // rbx
__int64 v58; // rdi
__int64 v59; // rbx
__int64 v60; // rax
__int64 v61; // rbx
__int64 v62; // rcx
cocos2d::CCArray *v63; // [rsp+40h] [rbp-118h] BYREF
_BYTE v64[8]; // [rsp+48h] [rbp-110h] BYREF
_BYTE v65[8]; // [rsp+50h] [rbp-108h] BYREF
void *v66; // [rsp+58h] [rbp-100h]
_BYTE v67[16]; // [rsp+60h] [rbp-F8h] BYREF
char v68; // [rsp+160h] [rbp+8h]
void *v69; // [rsp+168h] [rbp+10h] BYREF
__int16 v70; // [rsp+170h] [rbp+18h] BYREF
char v71; // [rsp+172h] [rbp+1Ah]
int v72; // [rsp+178h] [rbp+20h]
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1088LL))(a1);
v3 = *(_QWORD *)(a1 + 760);
if ( v3 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 512LL))(v3);
*(_QWORD *)(a1 + 760) = 0;
}
if ( *(_BYTE *)(a1 + 816) )
{
v5 = a1 + 800;
}
else
{
v4 = GJAccountManager::sharedState(v3);
v5 = a1 + 800;
if ( *(_DWORD *)(*(_QWORD *)(a1 + 800) + 240LL) == *(_DWORD *)(v4 + 360) - *(_DWORD *)(v4 + 364) )
{
v6 = 1;
goto LABEL_8;
}
}
v6 = 0;
LABEL_8:
v68 = v6;
v7 = *(_QWORD *)(a1 + 824);
if ( v7 )
{
if ( *(_BYTE *)(a1 + 880) || *(int *)(*(_QWORD *)v5 + 200LL) >= 10 || !v6 && *(_DWORD *)(*(_QWORD *)v5 + 248LL) )
v2 = 0;
else
LOBYTE(v2) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 336LL))(v7, v2);
v5 = a1 + 800;
}
v8 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v69 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v69);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v8 = *(_QWORD *)&qword_14090BFB0;
}
ThreadMembers = (cocos2d::CCArray *)GameLevelManager::getThreadMembers(v8, *(unsigned int *)(*(_QWORD *)v5 + 56LL));
v10 = ThreadMembers;
if ( ThreadMembers && cocos2d::CCArray::count(ThreadMembers) )
v11 = cocos2d::CCArray::count(v10);
else
v11 = *(_DWORD *)(*(_QWORD *)v5 + 200LL);
v12 = *(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 840) + 360LL);
v13 = *(_QWORD *)(a1 + 840);
v14 = cocos2d::CCString::createWithFormat("%i/%i", v11, 10);
CString = cocos2d::CCString::getCString(v14);
(*v12)(v13 + 360, CString);
if ( v10 && cocos2d::CCArray::count(v10) )
{
v16 = (__int64 *)(a1 + 688);
v17 = *(_QWORD *)(*(_QWORD *)(a1 + 688) + 416LL);
v18 = cocos2d::CCArray::count(v10);
v72 = v18;
v19 = 0;
if ( v18 > 0 )
{
do
{
v20 = cocos2d::CCArray::objectAtIndex(v10, v19);
v21 = -(float)((float)((float)v19 * 40.0) + 20.0);
GJCompactUserCell::buildUserRow(
(_DWORD)v20,
v17,
v17,
a1,
(__int64)FriendPickerPopup::onShowProfile,
LODWORD(v21),
0,
1);
v22 = *(unsigned int *)(*(_QWORD *)(a1 + 800) + 240LL);
if ( *((_DWORD *)v20 + 98) == (_DWORD)v22 )
{
v23 = cocos2d::CCLabelBMFont::create("Owner", "chatFont.fnt");
v24 = *(_QWORD *)v23;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v69, 1.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v24 + 288))(v23, v25);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v23 + 160LL))(v23);
LOBYTE(v26) = -106;
(*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v23 + 46) + 40LL))((__int64)v23 + 368, v26);
v27 = *(_QWORD *)v23;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v70, *(float *)(a1 + 704) - 12.0, v21);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v27 + 184))(v23, v28);
(*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v17 + 456LL))(
v17,
v23,
1);
v18 = v72;
}
if ( v6 )
{
v29 = GJAccountManager::sharedState(v22);
if ( *((_DWORD *)v20 + 98) != *(_DWORD *)(v29 + 360) - *(_DWORD *)(v29 + 364) )
{
v30 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteIcon_001.png");
v31 = (int)v30;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v30 + 160LL))(v30);
v32 = CCMenuItemSpriteExtra::create(v31, 0, a1, (__int64)MemberListPopup::onKickMember);
*((_DWORD *)v32 + 93) = 1069547520;
(*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCObject *))(*(_QWORD *)v32 + 640LL))(v32, v20);
v33 = *(_QWORD *)v32;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v63, *(float *)(a1 + 704) - 18.0, v21);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v33 + 184))(v32, v34);
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v32, 3);
v35 = cocos2d::CCSprite::createWithSpriteFrameName("particle_313_001.png");
LODWORD(v33) = (_DWORD)v35;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v35 + 160LL))(v35);
v36 = CCMenuItemSpriteExtra::create(v33, 0, a1, (__int64)MemberListPopup::onTransferOwner);
*((_DWORD *)v36 + 93) = 1069547520;
(*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCObject *))(*(_QWORD *)v36 + 640LL))(v36, v20);
v37 = *(_QWORD *)v36;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v64, *(float *)(a1 + 704) - 47.0, v21);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v37 + 184))(v36, v38);
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v36, 3);
v18 = v72;
}
}
++v19;
}
while ( v19 < v18 );
v16 = (__int64 *)(a1 + 688);
}
v39 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v69 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v69);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v39 = *(_QWORD *)&qword_14090BFB0;
}
ThreadPendingInvites = (cocos2d::CCArray *)GameLevelManager::getThreadPendingInvites(
v39,
*(unsigned int *)(*(_QWORD *)(a1 + 800) + 56LL));
v41 = ThreadPendingInvites;
v63 = ThreadPendingInvites;
if ( ThreadPendingInvites )
{
v42 = cocos2d::CCArray::count(ThreadPendingInvites);
v43 = 0;
if ( v42 <= 0 )
goto LABEL_53;
LOWORD(v69) = -20561;
while ( 1 )
{
v44 = cocos2d::CCArray::objectAtIndex(v41, v43);
v45 = -(float)((float)((float)(v43 + v18) * 40.0) + 20.0);
v46 = GJCompactUserCell::buildUserRow(
(_DWORD)v44,
v17,
v17,
a1,
(__int64)FriendPickerPopup::onShowProfile,
LODWORD(v45),
0,
1);
v70 = (__int16)v69;
v71 = -81;
(**(void (__fastcall ***)(__int64, __int16 *))(v46 + 368))(v46 + 368, &v70);
v49 = true;
if ( !v68 )
{
v48 = GJAccountManager::sharedState(v47);
if ( *((_DWORD *)v44 + 103) != *(_DWORD *)(v48 + 360) - *(_DWORD *)(v48 + 364) )
v49 = false;
}
v50 = cocos2d::CCLabelBMFont::create("Invited", "chatFont.fnt");
v51 = *(_QWORD *)v50;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v64, 1.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v51 + 288))(v50, v52);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v50 + 160LL))(v50);
LOBYTE(v53) = -106;
(*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v50 + 46) + 40LL))((__int64)v50 + 368, v53);
v54 = *(_QWORD *)v50;
v55 = 12;
if ( v49 )
v55 = 40;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v65, *(float *)(a1 + 704) - (float)v55, v45);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v54 + 184))(v50, v56);
(*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v17 + 456LL))(
v17,
v50,
1);
if ( !v49 )
goto LABEL_50;
v57 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteIcon_001.png");
(*(void (__fastcall **)(__int64 *))(*v57 + 160))(v57);
v66 = operator new(0x208u);
v58 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v66);
if ( !v58 )
goto LABEL_48;
if ( !CCMenuItemSpriteExtra::init((__int64 *)v58, v57, 0, a1, (__int64)MemberListPopup::onRevokeInvite) )
break;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v58);
LABEL_49:
*(_DWORD *)(v58 + 372) = 1069547520;
(*(void (__fastcall **)(__int64, struct cocos2d::CCObject *))(*(_QWORD *)v58 + 640LL))(v58, v44);
v59 = *(_QWORD *)v58;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v67, *(float *)(a1 + 704) - 18.0, v45);
(*(void (__fastcall **)(__int64, __int64))(v59 + 184))(v58, v60);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v17 + 456LL))(v17, v58, 3);
LABEL_50:
++v43;
v18 = v72;
v41 = v63;
if ( v43 >= v42 )
{
v16 = (__int64 *)(a1 + 688);
goto LABEL_53;
}
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v58 + 8LL))(v58, 1);
LABEL_48:
v58 = 0;
goto LABEL_49;
}
v42 = 0;
LABEL_53:
v61 = *v16;
*(float *)(v61 + 432) = fmaxf((float)((float)(v42 + v72) * 40.0) + 6.0, *(float *)(a1 + 708));
ScrollableContentLayer::clampOffset(v61);
ScrollableContentLayer::ensureScrollThumb(v62);
ScrollableContentLayer::applyContentPosition(v61);
}
else if ( !*(_BYTE *)(a1 + 880) )
{
PagedListPopup::showStatus(a1, "Failed to load members");
}
}