//
// FriendsProfilePage::mountVirtualRow from 0x5f34e8 to 0x5f373a (594 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'FriendsProfilePage::mountVirtualRow @ 0x5f3784
//
// 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:54:29 +0000
//
// write access to const memory has been detected, the output may be wrong!
GameManager *__fastcall FriendsProfilePage::mountVirtualRow(
FriendsProfilePage *this,
unsigned int a2,
cocos2d::CCNode *a3,
cocos2d::CCMenu *a4)
{
cocos2d::CCArray *ActiveUserList; // r0
int v9; // r0
int v10; // r1
char v11; // r3
int v12; // r7
char v13; // r3
char v14; // r3
int v15; // r0
_DWORD *v16; // r4
GameManager *result; // r0
const char *v18; // r1
int v19; // r10
_DWORD (*v20)(FriendsProfilePage *__hidden, cocos2d::CCObject *); // r3
int v21; // r10
GameManager *v22; // r0
const char *v23; // r1
int v24; // r4
int v25; // r0
int v26; // r4
void (__fastcall *v27)(_DWORD *, _DWORD *); // [sp+1Ch] [bp-40h]
_BYTE v28[8]; // [sp+24h] [bp-38h] BYREF
ProfilePage *(__fastcall *v29)(FriendsProfilePage *, cocos2d::CCObject *); // [sp+2Ch] [bp-30h]
int v30; // [sp+30h] [bp-2Ch]
_DWORD (*v31)(FriendsProfilePage *__hidden, cocos2d::CCObject *); // [sp+34h] [bp-28h]
int v32; // [sp+38h] [bp-24h]
_DWORD (*v33)(FriendsProfilePage *__hidden, cocos2d::CCObject *); // [sp+3Ch] [bp-20h]
int v34; // [sp+40h] [bp-1Ch]
_DWORD (*v35)(FriendsProfilePage *__hidden, cocos2d::CCObject *); // [sp+44h] [bp-18h]
int v36; // [sp+48h] [bp-14h]
_DWORD v37[2]; // [sp+4Ch] [bp-10h] BYREF
ActiveUserList = (cocos2d::CCArray *)FriendsProfilePage::getActiveUserList(this);
v9 = cocos2d::CCArray::objectAtIndex(ActiveUserList, a2);
v10 = *((_DWORD *)this + 138);
if ( (a2 & 1) != 0 )
v11 = -62;
else
v11 = -95;
v12 = v9;
LOBYTE(v37[0]) = v11;
if ( (a2 & 1) != 0 )
v13 = 114;
else
v13 = 88;
BYTE1(v37[0]) = v13;
if ( (a2 & 1) != 0 )
v14 = 62;
else
v14 = 44;
BYTE2(v37[0]) = v14;
HIBYTE(v37[0]) = -1;
v15 = cocos2d::CCLayerColor::create(v37, v10, 1109393408);
(*(void (__fastcall **)(cocos2d::CCNode *, int, int))(*(_DWORD *)a3 + 232))(a3, v15, -2);
v16 = (_DWORD *)operator new(0x10Cu);
memset(v16, 0, 0x10Cu);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v16);
v16[66] = 0;
*v16 = &off_CBFB00;
if ( !cocos2d::CCNode::init((cocos2d::CCNode *)v16) )
{
(*(void (__fastcall **)(_DWORD *))(*v16 + 8))(v16);
dword_108 = *((_DWORD *)this + 138);
__und(0xFFu);
}
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v16);
v16[66] = *((_DWORD *)this + 138);
v27 = *(void (__fastcall **)(_DWORD *, _DWORD *))(*v16 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, 20.0);
v27(v16, v37);
(*(void (__fastcall **)(cocos2d::CCNode *, _DWORD *, int))(*(_DWORD *)a3 + 232))(a3, v16, -1);
v30 = 0;
v29 = FriendsProfilePage::onViewProfile;
GJCompactUserCell::buildUserRow(v12, a3, (int)a4, (int)this, (int)FriendsProfilePage::onViewProfile, 0, 20.0, 0, 0);
result = (GameManager *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, *((float *)this + 138) - 22.0, 20.0);
if ( *((_DWORD *)this + 154) == 1 )
{
v19 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"accountBtn_unblock_001.png", v18);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v19 + 80))(v19, 1057803469);
v20 = FriendsProfilePage::onUnblock;
v32 = 0;
v31 = FriendsProfilePage::onUnblock;
LABEL_24:
v25 = CCMenuItemSpriteExtra::create(v19, 0, (int)this, (int)v20, 0);
LABEL_21:
v26 = v25;
result = (GameManager *)CCMenuItemSpriteExtra::setSizeMult(v25, 1.6);
if ( v26 )
{
(*(void (__fastcall **)(int, int))(*(_DWORD *)v26 + 324))(v26, v12);
(*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v26 + 92))(v26, v28);
return (GameManager *)(*(int (__fastcall **)(cocos2d::CCMenu *, int, int))(*(_DWORD *)a4 + 232))(a4, v26, 3);
}
return result;
}
v21 = *(unsigned __int8 *)(v12 + 555);
if ( *(_BYTE *)(v12 + 555) )
{
v19 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"accountBtn_notifications_001.png", v18);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v19 + 80))(v19, 1057803469);
v20 = FriendsProfilePage::onUnmute;
v34 = 0;
v33 = FriendsProfilePage::onUnmute;
goto LABEL_24;
}
if ( *(_DWORD *)(v12 + 520) != 1 )
{
if ( !*(_BYTE *)(v12 + 552) )
return result;
v24 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"followBtnOn_001.png", v18);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v24 + 80))(v24, 1064514355);
v37[1] = v21;
v37[0] = FriendsProfilePage::onUnfollow;
v25 = CCMenuItemSpriteExtra::create(v24, v21, (int)this, (int)FriendsProfilePage::onUnfollow, v21);
goto LABEL_21;
}
if ( *(_DWORD *)(v12 + 356) != 2 )
{
v22 = (GameManager *)GameManager::sharedState(result);
result = (GameManager *)GameManager::messagesRestricted(v22);
if ( !result )
{
v19 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"accountBtn_messages_001.png", v23);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v19 + 80))(v19, 1057803469);
v20 = FriendsProfilePage::onSendMessage;
v36 = 0;
v35 = FriendsProfilePage::onSendMessage;
goto LABEL_24;
}
}
return result;
}