//
// FriendsProfilePage::mountVirtualRow from 0xa4fdcc to 0xa50184 (952 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'FriendsProfilePage::mountVirtualRow @ 0xa50198
// > ??> @ 0xc9670
// > ??> @ 0x148c668
//
// This function is hookable on this platform (idp: arm, 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 13:00:04 +0000
//
// write access to const memory has been detected, the output may be wrong!
__int64 __fastcall FriendsProfilePage::mountVirtualRow(
FriendsProfilePage *this,
unsigned int a2,
cocos2d::CCNode *a3,
cocos2d::CCMenu *a4)
{
cocos2d::CCArray *ActiveUserList; // x0
__int64 v9; // x24
__int64 v10; // x0
_DWORD *v11; // x19
__int64 v12; // x1
void (__fastcall *v13)(_DWORD *, char *); // x26
const char *v14; // x1
__int64 v16; // x19
__int64 v17; // x19
GameManager *v18; // x0
GameManager *v19; // x0
const char *v20; // x1
__int64 v21; // x19
__int64 v22; // x19
__int64 v23; // x19
char v24; // [xsp+60h] [xbp+60h] BYREF
char v25; // [xsp+61h] [xbp+61h]
char v26; // [xsp+62h] [xbp+62h]
char i; // [xsp+63h] [xbp+63h]
ActiveUserList = (cocos2d::CCArray *)FriendsProfilePage::getActiveUserList(this);
v9 = cocos2d::CCArray::objectAtIndex(ActiveUserList, a2);
if ( (a2 & 1) == 0 )
goto LABEL_10;
v24 = -62;
v25 = 114;
v26 = 62;
for ( i = -1; ; i = -1 )
{
v10 = cocos2d::CCLayerColor::create(&v24, *((float *)this + 176), 40.0);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64, __int64))(*(_QWORD *)a3 + 464LL))(a3, v10, 4294967294LL);
v11 = (_DWORD *)operator new(0x140u);
memset(v11, 0, 0x140u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v11);
*(_QWORD *)v11 = &off_148BD70;
v11[79] = 0;
if ( (unsigned __int8)cocos2d::CCNode::init((cocos2d::CCNode *)v11) )
break;
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v11 + 16LL))(v11);
HIDWORD(qword_138) = *((_DWORD *)this + 176);
__break(0x3E8u);
LABEL_10:
v24 = -95;
v25 = 88;
v26 = 44;
}
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v11);
v12 = *(_QWORD *)v11;
v11[79] = *((_DWORD *)this + 176);
v13 = *(void (__fastcall **)(_DWORD *, char *))(v12 + 184);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, 0.0, 20.0);
v13(v11, &v24);
(*(void (__fastcall **)(cocos2d::CCNode *, _DWORD *, __int64))(*(_QWORD *)a3 + 464LL))(a3, v11, 0xFFFFFFFFLL);
GJCompactUserCell::buildUserRow(
v9,
a3,
(__int64)a4,
(__int64)this,
(__int64)FriendsProfilePage::onViewProfile,
0,
0,
0,
20.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, *((float *)this + 176) - 22.0, 20.0);
if ( *((_DWORD *)this + 204) == 1 )
{
v22 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"accountBtn_unblock_001.png", v14);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 160LL))(v22, 0.55);
v17 = CCMenuItemSpriteExtra::create(v22, 0, (__int64)this, (__int64)FriendsProfilePage::onUnblock, 0);
CCMenuItemSpriteExtra::setSizeMult(v17, 1.6);
}
else if ( *(_BYTE *)(v9 + 723) )
{
v16 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"accountBtn_notifications_001.png", v14);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 160LL))(v16, 0.55);
v17 = CCMenuItemSpriteExtra::create(v16, 0, (__int64)this, (__int64)FriendsProfilePage::onUnmute, 0);
CCMenuItemSpriteExtra::setSizeMult(v17, 1.6);
}
else if ( *(_DWORD *)(v9 + 688) == 1 )
{
v18 = (GameManager *)*(unsigned int *)(v9 + 436);
if ( (_DWORD)v18 == 2 )
return _stack_chk_guard;
v19 = (GameManager *)GameManager::sharedState(v18);
if ( (unsigned __int8)GameManager::messagesRestricted(v19) )
return _stack_chk_guard;
v21 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"accountBtn_messages_001.png", v20);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v21 + 160LL))(v21, 0.55);
v17 = CCMenuItemSpriteExtra::create(v21, 0, (__int64)this, (__int64)FriendsProfilePage::onSendMessage, 0);
CCMenuItemSpriteExtra::setSizeMult(v17, 1.6);
}
else
{
if ( !*(_BYTE *)(v9 + 720) )
return _stack_chk_guard;
v23 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"followBtnOn_001.png", v14);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v23 + 160LL))(v23, 0.95);
v17 = CCMenuItemSpriteExtra::create(v23, 0, (__int64)this, (__int64)FriendsProfilePage::onUnfollow, 0);
CCMenuItemSpriteExtra::setSizeMult(v17, 1.6);
}
if ( v17 )
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 648LL))(v17, v9);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v17 + 184LL))(v17, &v24);
(*(void (__fastcall **)(cocos2d::CCMenu *, __int64, __int64))(*(_QWORD *)a4 + 464LL))(a4, v17, 3);
}
return _stack_chk_guard;
}