//
// MemberListPopup::buildRows from 0x100941bd0 to 0x1009422bc (1772 bytes)
//
// 8 xrefs:
// > MemberListPopup::init @ 0x1009419ac
// > MemberListPopup::threadMembersFinished @ 0x1009422e4
// > sub_100942340 @ 0x100942369
// > MemberListPopup::threadMembersFailed @ 0x1009423d4
// > sub_100942430 @ 0x100942459
// > MemberListPopup::threadMessagesFinished @ 0x1009424ea
// > sub_1009424F0 @ 0x100942538
// > MemberListPopup::threadUpdateFinished @ 0x100943de2
//
// 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 12:38:31 +0000
//
__int64 __fastcall MemberListPopup::buildRows(__int64 a1, __int64 a2)
{
__int64 v2; // rbx
__int64 v3; // rdi
int v4; // ebx
__int64 v5; // rax
bool v6; // zf
bool v7; // al
__int64 v8; // rcx
__int64 v9; // rax
__int64 ThreadMembers; // rax
__int64 v11; // r14
int v12; // esi
__int64 v13; // r15
__int64 v14; // r14
char *v15; // rax
__int64 CString; // rax
__int64 result; // rax
__int64 v18; // r14
__int64 v19; // r15
signed int v20; // r13d
__int64 v21; // xmm0_8
__int64 v22; // r12
double v23; // xmm0_8
__int64 v24; // rdi
__int64 v25; // rsi
void *v26; // r14
int v27; // ebx
__int64 v28; // rax
char *v29; // r14
void *v30; // r14
double v31; // xmm0_8
char *v32; // r14
void *v33; // r14
void *v34; // rsi
__int64 v35; // rax
__int64 v36; // rax
__int64 v37; // r14
int v38; // eax
unsigned int v39; // r13d
__int64 v40; // rdi
__int64 v41; // xmm0_8
__int64 v42; // r14
__int64 v43; // rax
__int64 v44; // rdi
bool v45; // bl
int v46; // ebx
__int64 v47; // rax
void *v48; // r12
double v49; // xmm0_8
float v50; // xmm1_4
char *v51; // r12
void *v52; // r12
__int64 v53; // [rsp+0h] [rbp-80h]
__int64 v54; // [rsp+8h] [rbp-78h]
float v55; // [rsp+10h] [rbp-70h]
float v56; // [rsp+10h] [rbp-70h]
int v57; // [rsp+2Ch] [rbp-54h]
int v58; // [rsp+30h] [rbp-50h]
__int64 v60; // [rsp+40h] [rbp-40h]
float v61; // [rsp+4Ch] [rbp-34h] BYREF
int v62; // [rsp+54h] [rbp-2Ch]
v2 = a1;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1352LL))(a1);
sub_10095CEF0(a1);
if ( *(_BYTE *)(a1 + 816) )
{
v62 = 0;
v3 = *(_QWORD *)(a1 + 824);
if ( !v3 )
goto LABEL_10;
}
else
{
v4 = *(_DWORD *)(*(_QWORD *)(a1 + 800) + 200LL);
v5 = GJAccountManager::sharedState(a1, a2);
v6 = v4 == *(_DWORD *)(v5 + 352) - *(_DWORD *)(v5 + 356);
v2 = a1;
LOBYTE(v5) = v6;
v62 = v5;
v3 = *(_QWORD *)(a1 + 824);
if ( !v3 )
goto LABEL_10;
}
if ( *(_BYTE *)(v2 + 880) )
{
v7 = 0;
}
else
{
v8 = *(_QWORD *)(v2 + 800);
v7 = *(_DWORD *)(v8 + 168) < 10;
if ( !(v62 & 1 | (*(_DWORD *)(v8 + 168) >= 10)) )
v7 = *(_DWORD *)(v8 + 208) == 0;
}
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 344LL))(v3, v7);
LABEL_10:
v9 = GameLevelManager::sharedState();
ThreadMembers = GameLevelManager::getThreadMembers(v9);
v11 = ThreadMembers;
if ( ThreadMembers && (unsigned int)sub_1007FEF90(ThreadMembers) )
v12 = sub_1007FEF90(v11);
else
v12 = *(_DWORD *)(*(_QWORD *)(v2 + 800) + 168LL);
v13 = v11;
v14 = *(_QWORD *)(v2 + 840);
v15 = sub_10088E820("%i/%i", v12, 10);
CString = cocos2d::CCString::getCString((__int64)v15);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 928LL))(v14, CString);
if ( v13 && (v18 = v13, result = sub_1007FEF90(v13), (_DWORD)result) )
{
v19 = *(_QWORD *)(*(_QWORD *)(v2 + 688) + 416LL);
v58 = sub_1007FEF90(v18);
if ( v58 > 0 )
{
v20 = 0;
v60 = v18;
v54 = v19;
do
{
HIDWORD(v21) = 0;
v22 = sub_1007FEFE0(v18, v20);
*(float *)&v21 = (float)((float)v20 * 40.0) + 20.0;
*(_QWORD *)&v23 = v21 ^ 0x8000000080000000LL;
v24 = v22;
v25 = v19;
v55 = *(float *)&v23;
GJCompactUserCell::buildUserRow(v22, v19, v19, v2, (__int64)sub_100942860, 0, v23, 0, 1);
if ( *(_DWORD *)(v22 + 376) == *(_DWORD *)(*(_QWORD *)(v2 + 800) + 200LL) )
{
v26 = cocos2d::CCLabelBMFont::create_3((__int64)"Owner", (__int64)"chatFont.fnt");
sub_100278250(&v61, 1.0, 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v26 + 296LL))(v26, &v61);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v26 + 160LL))(v26, 1.0);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v26 + 1024LL))(v26, 150);
*(_QWORD *)&v23 = *(unsigned int *)(v2 + 704);
*(float *)&v23 = *(float *)&v23 + -12.0;
sub_100278250(&v61, *(float *)&v23, v55);
v19 = v54;
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v26 + 184LL))(v26, &v61);
v24 = v54;
v25 = (__int64)v26;
v18 = v60;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v24 + 464LL))(v24, v25, 1);
}
if ( (_BYTE)v62 )
{
v27 = *(_DWORD *)(v22 + 376);
v28 = GJAccountManager::sharedState(v24, v25);
v6 = v27 == *(_DWORD *)(v28 + 352) - *(_DWORD *)(v28 + 356);
v2 = a1;
if ( !v6 )
{
v29 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_deleteIcon_001.png", v23);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v29 + 160LL))(v29, 0.69999999);
v30 = CCMenuItemSpriteExtra::create((__int64)v29, 0, a1, (__int64)sub_1009428A0, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v30, 1.5);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v30 + 648LL))(v30, v22);
sub_100278250(&v61, *(float *)(a1 + 704) + -18.0, v55);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v30 + 184LL))(v30, &v61);
v31 = (*(double (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v19 + 464LL))(v19, v30, 3);
v32 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"particle_313_001.png", v31);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v32 + 160LL))(v32, 1.2);
v33 = CCMenuItemSpriteExtra::create((__int64)v32, 0, a1, (__int64)sub_100942AD0, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v33, 1.5);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v33 + 648LL))(v33, v22);
sub_100278250(&v61, *(float *)(a1 + 704) + -47.0, v55);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v33 + 184LL))(v33, &v61);
v34 = v33;
v18 = v60;
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v19 + 464LL))(v19, v34, 3);
}
}
++v20;
}
while ( v58 != v20 );
}
v35 = GameLevelManager::sharedState();
v36 = sub_100575410(v35);
if ( v36 )
{
v37 = v36;
v38 = sub_1007FEF90(v36);
if ( v38 > 0 )
{
v39 = 0;
v40 = v37;
v57 = v38;
v53 = v37;
do
{
HIDWORD(v41) = 0;
v42 = sub_1007FEFE0(v40, v39);
*(float *)&v41 = (float)((float)(int)(v39 + v58) * 40.0) + 20.0;
v56 = -*(float *)&v41;
v43 = GJCompactUserCell::buildUserRow(
v42,
v19,
v19,
v2,
(__int64)sub_100942860,
0,
COERCE_DOUBLE(v41 ^ 0x8000000080000000LL),
0,
1);
BYTE2(v61) = -81;
LOWORD(v61) = -20561;
v44 = v43;
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v43 + 1072LL))(v43, &v61);
v45 = 1;
if ( !(_BYTE)v62 )
{
v46 = *(_DWORD *)(v42 + 396);
v47 = GJAccountManager::sharedState(v44, (__int64)&v61);
v45 = v46 == *(_DWORD *)(v47 + 352) - *(_DWORD *)(v47 + 356);
}
v48 = cocos2d::CCLabelBMFont::create_3((__int64)"Invited", (__int64)"chatFont.fnt");
sub_100278250(&v61, 1.0, 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v48 + 296LL))(v48, &v61);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v48 + 160LL))(v48, 1.0);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v48 + 1024LL))(v48, 150);
*(_QWORD *)&v49 = *(unsigned int *)(a1 + 704);
v50 = 40.0;
if ( !v45 )
v50 = 12.0;
*(float *)&v49 = *(float *)&v49 - v50;
sub_100278250(&v61, *(float *)&v49, v56);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v48 + 184LL))(v48, &v61);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v19 + 464LL))(v19, v48, 1);
v6 = !v45;
v2 = a1;
if ( !v6 )
{
v51 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_deleteIcon_001.png", v49);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v51 + 160LL))(v51, 0.69999999);
v52 = CCMenuItemSpriteExtra::create((__int64)v51, 0, a1, (__int64)sub_100942CF0, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v52, 1.5);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v52 + 648LL))(v52, v42);
sub_100278250(&v61, *(float *)(a1 + 704) + -18.0, v56);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v52 + 184LL))(v52, &v61);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v19 + 464LL))(v19, v52, 3);
}
++v39;
v38 = v57;
v40 = v53;
}
while ( v57 != v39 );
}
}
else
{
v38 = 0;
}
return ScrollableContentLayer::setContentHeight(
*(_QWORD *)(v2 + 688),
fmaxf(*(float *)(v2 + 708), (float)((float)(v58 + v38) * 40.0) + 6.0));
}
else if ( !*(_BYTE *)(v2 + 880) )
{
return sub_10095D0B0(v2, "Failed to load members");
}
return result;
}