//
// FriendPickerPopup::mountVirtualRow from 0x7460c4 to 0x746318 (596 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'FriendPickerPopup::mountVirtualRow @ 0x746348
//
// 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:42 +0000
//
cocos2d::CCLabelBMFont *__fastcall FriendPickerPopup::mountVirtualRow(
cocos2d::CCArray **this,
unsigned int a2,
cocos2d::CCNode *a3,
cocos2d::CCMenu *a4)
{
_DWORD *v7; // r0
signed int v8; // r4
_DWORD *v9; // r8
int v10; // r4
int v11; // r5
int v12; // r4
int v13; // r3
int v14; // r0
int v15; // r4
int v16; // r7
int v17; // r0
int v18; // r5
int v19; // r0
char v20; // r3
cocos2d::CCLabelBMFont *result; // r0
const char *v22; // r1
const char *v23; // r2
void (__fastcall *v24)(cocos2d::CCLabelBMFont *, _DWORD *); // r3
char *v25; // r0
int v26; // r4
void (__fastcall *v27)(int, _DWORD *); // r7
void (__fastcall *v28)(int, _DWORD *); // r7
char *v29; // r0
int v30; // r4
int v31; // r4
void (__fastcall *v32)(int, _BYTE *); // r7
_BYTE v33[8]; // [sp+24h] [bp-20h] BYREF
ProfilePage *(__fastcall *v34)(FriendPickerPopup *, cocos2d::CCObject *); // [sp+2Ch] [bp-18h]
int v35; // [sp+30h] [bp-14h]
_DWORD v36[2]; // [sp+34h] [bp-10h] BYREF
v7 = (_DWORD *)cocos2d::CCArray::objectAtIndex(*(this + 154), a2);
v8 = *((unsigned __int8 *)this + 623);
v9 = v7;
if ( *((_BYTE *)this + 623) )
goto LABEL_2;
v11 = *((unsigned __int8 *)this + 620) ^ 1;
if ( *((_BYTE *)this + 620) && *(this + 152) )
{
while ( 1 )
{
v7 = (_DWORD *)cocos2d::CCArray::count(*(this + 152));
if ( v8 >= (int)v7 )
break;
v7 = (_DWORD *)cocos2d::CCArray::objectAtIndex(*(this + 152), v8);
if ( v7[74] == v9[74] )
{
v11 = 1;
break;
}
++v8;
}
}
v10 = *((unsigned __int8 *)this + 621);
if ( *((_BYTE *)this + 621) )
{
if ( v11 )
v12 = v9[92];
else
v12 = v9[93];
v10 = v12 != 2;
}
else
{
v13 = v9[89];
if ( !v13 )
goto LABEL_2;
if ( v13 != 1 )
goto LABEL_19;
if ( v11
|| (v14 = GameManager::sharedState((GameManager *)v7),
v15 = *(_DWORD *)(v14 + 820) - *(_DWORD *)(v14 + 824),
v15 == 1) )
{
LABEL_2:
v10 = 1;
goto LABEL_19;
}
v10 = v15 == 2;
}
LABEL_19:
v16 = *((unsigned __int8 *)this + 622);
if ( *((_BYTE *)this + 622) )
{
v17 = (int)*(this + 151);
if ( v17 )
v17 = (*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v17 + 4))(v17, v9[74]);
v16 = v17;
}
v18 = *((unsigned __int8 *)this + 624);
if ( *((_BYTE *)this + 624) )
{
v19 = (int)*(this + 151);
if ( v19 )
v19 = (*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v19 + 24))(v19, v9[74]);
v18 = v19;
}
v34 = FriendPickerPopup::onShowProfile;
v20 = 0;
v35 = 0;
if ( !v10 )
v20 = v18 == 0;
result = GJCompactUserCell::buildUserRow((int)v9, a3, (int)a4, (int)this, (int)v34, v35, 20.0, v20, 0);
if ( !v10 )
{
if ( !v18 )
return result;
goto LABEL_32;
}
if ( !v16 )
{
if ( v18 )
goto LABEL_32;
v29 = "GJ_checkOff_001.png";
LABEL_37:
v30 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v29, v22);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v30 + 80))(v30, 1058642330);
v36[0] = FriendPickerPopup::onPickFriend;
v36[1] = 0;
v31 = CCMenuItemSpriteExtra::create(v30, 0, (int)this, (int)FriendPickerPopup::onPickFriend, 0);
CCMenuItemSpriteExtra::setSizeMult(v31, 1.4);
(*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v31 + 324))(v31, v9);
v32 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v31 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, *((float *)this + 138) - 24.0, 20.0);
v32(v31, v33);
return (cocos2d::CCLabelBMFont *)(*(int (__fastcall **)(cocos2d::CCMenu *, int, int))(*(_DWORD *)a4 + 232))(
a4,
v31,
3);
}
v24 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)result + 536);
LOWORD(v36[0]) = -256;
BYTE2(v36[0]) = 0;
v24(result, v36);
if ( !v18 )
{
v29 = "GJ_checkOn_001.png";
goto LABEL_37;
}
LABEL_32:
if ( v18 == 1 )
v25 = "Member";
else
v25 = "Invited";
v26 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v25, "chatFont.fnt", v23);
v27 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v26 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, 1.0, 0.5);
v27(v26, v36);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v26 + 80))(v26, 1056964608);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v26 + 512))(v26, 130);
v28 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v26 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, *((float *)this + 138) - 12.0, 20.0);
v28(v26, v36);
return (cocos2d::CCLabelBMFont *)(*(int (__fastcall **)(cocos2d::CCNode *, int, int))(*(_DWORD *)a3 + 232))(
a3,
v26,
1);
}