//
// MemberListPopup::buildRows from 0x747cb4 to 0x748218 (1380 bytes)
//
// 5 xrefs:
// > MemberListPopup::threadMembersFinished @ 0x74824a
// > MemberListPopup::threadMembersFailed @ 0x74829c
// > MemberListPopup::threadMessagesFinished @ 0x7482fe
// > MemberListPopup::init @ 0x74b062
// > MemberListPopup::threadUpdateFinished @ 0x755c6c
//
// 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:44 +0000
//
void __fastcall MemberListPopup::buildRows(ScrollableContentLayer **this)
{
GJAccountManager *v2; // r0
int v3; // r5
int v4; // r0
_BOOL4 v5; // r3
GameLevelManager *v6; // r0
int v7; // r1
int v8; // r3
GameLevelManager *v9; // r0
cocos2d::CCArray *ThreadMembers; // r0
cocos2d::CCArray *v11; // r11
const char *v12; // r1
int v13; // r5
void (__fastcall *v14)(int, int); // r6
cocos2d::CCString *v15; // r0
int CString; // r0
GJUserScore *v17; // r5
cocos2d::CCLabelBMFont *v18; // r0
int v19; // r10
const char *v20; // r2
int v21; // r9
int v22; // r6
const char *v23; // r1
GameLevelManager *v24; // r0
cocos2d::CCArray *ThreadPendingInvites; // r0
signed int v26; // r8
signed int i; // r10
int v28; // r11
cocos2d::CCLabelBMFont *v29; // r0
int (__fastcall *v30)(cocos2d::CCLabelBMFont *, _BYTE *); // r2
GJAccountManager *v31; // r0
const char *v32; // r2
int v33; // r6
int v34; // r0
int v35; // r6
float v36; // s15
const char *v37; // r1
int v38; // r6
int v39; // r6
void (__fastcall *v40)(int, _BYTE *); // r11
float v41; // r1
int v42; // r8
int v43; // r6
const char *v44; // r1
int v45; // r9
void (__fastcall *v46)(int, _DWORD *); // r6
int v47; // [sp+18h] [bp-64h]
unsigned int v48; // [sp+18h] [bp-64h]
_BOOL4 v49; // [sp+1Ch] [bp-60h]
float v50; // [sp+20h] [bp-5Ch]
float v51; // [sp+20h] [bp-5Ch]
cocos2d::CCLabelBMFont *v52; // [sp+24h] [bp-58h]
cocos2d::CCArray *v53; // [sp+28h] [bp-54h]
void (__fastcall *v54)(int, _DWORD *); // [sp+3Ch] [bp-40h]
void (__fastcall *v55)(int, _DWORD *); // [sp+3Ch] [bp-40h]
void (__fastcall *v56)(int, _BYTE *); // [sp+3Ch] [bp-40h]
void (__fastcall *v57)(int, _BYTE *); // [sp+3Ch] [bp-40h]
void (__fastcall *v58)(int, _DWORD *); // [sp+3Ch] [bp-40h]
int v59; // [sp+3Ch] [bp-40h]
_BYTE v60[8]; // [sp+44h] [bp-38h] BYREF
ProfilePage *(__fastcall *v61)(MemberListPopup *, cocos2d::CCObject *); // [sp+4Ch] [bp-30h]
int v62; // [sp+50h] [bp-2Ch]
_DWORD (*v63)(MemberListPopup *__hidden, cocos2d::CCObject *); // [sp+54h] [bp-28h]
int v64; // [sp+58h] [bp-24h]
_DWORD (*v65)(MemberListPopup *__hidden, cocos2d::CCObject *); // [sp+5Ch] [bp-20h]
int v66; // [sp+60h] [bp-1Ch]
ProfilePage *(__fastcall *v67)(MemberListPopup *, cocos2d::CCObject *); // [sp+64h] [bp-18h]
int v68; // [sp+68h] [bp-14h]
_DWORD v69[2]; // [sp+6Ch] [bp-10h] BYREF
(*((void (__fastcall **)(ScrollableContentLayer **))*this + 169))(this);
v2 = (GJAccountManager *)PagedListPopup::clearStatus((PagedListPopup *)this);
if ( *((_BYTE *)this + 616) )
{
v5 = 0;
}
else
{
v3 = *((_DWORD *)*(this + 152) + 33);
v4 = GJAccountManager::sharedState(v2);
v5 = v3 == *(_DWORD *)(v4 + 280) - *(_DWORD *)(v4 + 284);
}
v6 = *(this + 155);
v49 = v5;
if ( v6 )
{
v7 = *((unsigned __int8 *)this + 656);
if ( *((_BYTE *)this + 656) )
{
v7 = 0;
}
else
{
v8 = (int)*(this + 152);
if ( *(int *)(v8 + 116) <= 9 )
v7 = v49 || *(_DWORD *)(v8 + 140) == 0;
}
v6 = (GameLevelManager *)(*(int (__fastcall **)(GameLevelManager *, int))(*(_DWORD *)v6 + 172))(v6, v7);
}
v9 = (GameLevelManager *)GameLevelManager::sharedState(v6);
ThreadMembers = (cocos2d::CCArray *)GameLevelManager::getThreadMembers(v9, *((const char **)*(this + 152) + 13));
v11 = ThreadMembers;
if ( ThreadMembers && cocos2d::CCArray::count(ThreadMembers) )
v12 = (const char *)cocos2d::CCArray::count(v11);
else
v12 = *((const char **)*(this + 152) + 29);
v13 = (int)*(this + 157);
v14 = *(void (__fastcall **)(int, int))(*(_DWORD *)v13 + 464);
v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i/%i", v12, 10);
CString = cocos2d::CCString::getCString(v15);
v14(v13, CString);
if ( v11 && cocos2d::CCArray::count(v11) )
{
v17 = *((GJUserScore **)*(this + 136) + 80);
v18 = (cocos2d::CCLabelBMFont *)cocos2d::CCArray::count(v11);
v47 = 0;
v52 = v18;
while ( v47 < (int)v52 )
{
v19 = cocos2d::CCArray::objectAtIndex(v11, v47);
v50 = -(float)((float)((float)v47 * 40.0) + 20.0);
v61 = MemberListPopup::onMemberProfile;
v62 = 0;
v18 = GJCompactUserCell::buildUserRow(
v19,
v17,
(int)v17,
(int)this,
(int)MemberListPopup::onMemberProfile,
0,
v50,
0,
1);
v20 = *(const char **)(v19 + 296);
if ( v20 == *((const char **)*(this + 152) + 33) )
{
v21 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Owner", "chatFont.fnt", v20);
v54 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v21 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, 1.0, 0.5);
v54(v21, v69);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v21 + 80))(v21, 1065353216);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v21 + 512))(v21, 150);
v55 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v21 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, *((float *)this + 138) - 12.0, v50);
v55(v21, v69);
v18 = (cocos2d::CCLabelBMFont *)(*(int (__fastcall **)(GJUserScore *, int, int))(*(_DWORD *)v17 + 232))(
v17,
v21,
1);
}
if ( v49 )
{
v22 = *(_DWORD *)(v19 + 296);
v18 = (cocos2d::CCLabelBMFont *)GJAccountManager::sharedState(v18);
if ( v22 != *((_DWORD *)v18 + 70) - *((_DWORD *)v18 + 71) )
{
v42 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteIcon_001.png", v23);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v42 + 80))(v42, 1060320051);
v64 = 0;
v63 = MemberListPopup::onKickMember;
v43 = CCMenuItemSpriteExtra::create(v42, 0, (int)this, (int)MemberListPopup::onKickMember, 0);
CCMenuItemSpriteExtra::setSizeMult(v43, 1.5);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v43 + 324))(v43, v19);
v58 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v43 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, *((float *)this + 138) - 18.0, v50);
v58(v43, v69);
(*(void (__fastcall **)(GJUserScore *, int, int))(*(_DWORD *)v17 + 232))(v17, v43, 3);
v59 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"particle_313_001.png", v44);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v59 + 80))(v59, 1067030938);
v66 = 0;
v65 = MemberListPopup::onTransferOwner;
v45 = CCMenuItemSpriteExtra::create(v59, 0, (int)this, (int)MemberListPopup::onTransferOwner, 0);
CCMenuItemSpriteExtra::setSizeMult(v45, 1.5);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v45 + 324))(v45, v19);
v46 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v45 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, *((float *)this + 138) - 47.0, v50);
v46(v45, v69);
v18 = (cocos2d::CCLabelBMFont *)(*(int (__fastcall **)(GJUserScore *, int, int))(*(_DWORD *)v17 + 232))(
v17,
v45,
3);
}
}
++v47;
}
v24 = (GameLevelManager *)GameLevelManager::sharedState(v18);
ThreadPendingInvites = (cocos2d::CCArray *)GameLevelManager::getThreadPendingInvites(
v24,
*((const char **)*(this + 152) + 13));
v53 = ThreadPendingInvites;
if ( ThreadPendingInvites )
v26 = cocos2d::CCArray::count(ThreadPendingInvites);
else
v26 = 0;
for ( i = 0; i < v26; ++i )
{
v28 = cocos2d::CCArray::objectAtIndex(v53, i);
v51 = -(float)((float)((float)((int)v52 + i) * 40.0) + 20.0);
v67 = MemberListPopup::onMemberProfile;
v68 = 0;
v29 = GJCompactUserCell::buildUserRow(
v28,
v17,
(int)v17,
(int)this,
(int)MemberListPopup::onMemberProfile,
0,
v51,
0,
1);
v30 = *(int (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v29 + 536);
memset(v60, 175, 3);
v31 = (GJAccountManager *)v30(v29, v60);
if ( v49 )
{
v48 = 1;
}
else
{
v33 = *(_DWORD *)(v28 + 316);
v34 = GJAccountManager::sharedState(v31);
v32 = (const char *)(v33 - (*(_DWORD *)(v34 + 280) - *(_DWORD *)(v34 + 284)));
v48 = *(_DWORD *)(v34 + 284)
- *(_DWORD *)(v34 + 280)
+ (v33 == *(_DWORD *)(v34 + 280) - *(_DWORD *)(v34 + 284))
+ *(_DWORD *)(v34 + 280)
- *(_DWORD *)(v34 + 284);
}
v35 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Invited", "chatFont.fnt", v32);
v56 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v35 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, 1.0, 0.5);
v56(v35, v60);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v35 + 80))(v35, 1065353216);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v35 + 512))(v35, 150);
v36 = 40.0;
v57 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v35 + 92);
if ( !v48 )
v36 = 12.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, *((float *)this + 138) - v36, v51);
v57(v35, v60);
(*(void (__fastcall **)(GJUserScore *, int, int))(*(_DWORD *)v17 + 232))(v17, v35, 1);
if ( v48 )
{
v38 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteIcon_001.png", v37);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v38 + 80))(v38, 1060320051);
v69[1] = 0;
v69[0] = MemberListPopup::onRevokeInvite;
v39 = CCMenuItemSpriteExtra::create(v38, 0, (int)this, (int)MemberListPopup::onRevokeInvite, 0);
CCMenuItemSpriteExtra::setSizeMult(v39, 1.5);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v39 + 324))(v39, v28);
v40 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v39 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, *((float *)this + 138) - 18.0, v51);
v40(v39, v60);
(*(void (__fastcall **)(GJUserScore *, int, int))(*(_DWORD *)v17 + 232))(v17, v39, 3);
}
}
if ( (float)((float)((float)((int)v52 + v26) * 40.0) + 6.0) < *((float *)this + 139) )
v41 = *((float *)this + 139);
else
v41 = (float)((float)((int)v52 + v26) * 40.0) + 6.0;
ScrollableContentLayer::setContentHeight(*(this + 136), v41);
}
else if ( !*((_BYTE *)this + 656) )
{
PagedListPopup::showStatus((PagedListPopup *)this, (cocos2d::CCLabelBMFont *)"Failed to load members");
}
}