//
// FriendsProfilePage::mountVirtualRow from 0x140214770 to 0x140214b17 (935 bytes)
//
// 2 xrefs:
// > ??> @ 0x140757418
// > ??> @ 0x14091b650
//
// 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 11:28:20 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall FriendsProfilePage::mountVirtualRow(__int64 a1, char a2, __int64 a3, __int64 a4)
{
__time64_t v8; // r14
cocos2d::CCArray *v9; // rcx
struct cocos2d::CCObject *v10; // rdi
const struct cocos2d::_ccColor4B *v11; // rcx
struct cocos2d::CCLayerColor *v12; // rax
_DWORD *v13; // rsi
__int64 v14; // rbx
__int64 v15; // rax
struct cocos2d::CCSprite *v16; // rbx
__int64 (__fastcall *v17)(); // r9
__int64 v18; // rbx
cocos2d::CCObject *v19; // rax
cocos2d::CCObject *v20; // rbx
void *v21; // [rsp+90h] [rbp+8h] BYREF
int v22; // [rsp+98h] [rbp+10h] BYREF
char v23; // [rsp+A0h] [rbp+18h] BYREF
v8 = a1 - 776;
if ( *(_BYTE *)(a1 - 776 + 928) )
{
v9 = *(cocos2d::CCArray **)(a1 + 96);
}
else
{
v9 = *(cocos2d::CCArray **)(a1 + 88);
if ( !v9 )
v9 = *(cocos2d::CCArray **)(a1 + 80);
}
v10 = cocos2d::CCArray::objectAtIndex(v9, a2);
if ( (a2 & 1) != 0 )
{
v22 = -12684606;
v11 = (const struct cocos2d::_ccColor4B *)&v22;
}
else
{
v22 = -13870943;
LODWORD(v21) = -13870943;
v11 = (const struct cocos2d::_ccColor4B *)&v21;
}
v12 = cocos2d::CCLayerColor::create(v11, *(float *)(a1 - 72), 40.0);
(*(void (__fastcall **)(__int64, struct cocos2d::CCLayerColor *, __int64))(*(_QWORD *)a3 + 456LL))(
a3,
v12,
4294967294LL);
v13 = operator new(0x148u);
v21 = v13;
memset(v13, 0, 0x148u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v13);
*(_QWORD *)v13 = &FriendRowEdges::`vftable';
v13[80] = 0;
if ( cocos2d::CCNode::init((cocos2d::CCNode *)v13) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v13);
}
else
{
(*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v13 + 8LL))(v13, 1);
v13 = nullptr;
}
v13[80] = *(_DWORD *)(a1 - 72);
v14 = *(_QWORD *)v13;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 0.0, 20.0);
(*(void (__fastcall **)(_DWORD *, __int64))(v14 + 184))(v13, v15);
(*(void (__fastcall **)(__int64, _DWORD *, __int64))(*(_QWORD *)a3 + 456LL))(a3, v13, 0xFFFFFFFFLL);
GJCompactUserCell::buildUserRow((__int64)v10, a3, a4, v8, (__int64)FriendPickerPopup::onShowProfile, 20.0, 0, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, *(float *)(a1 - 72) - 22.0, 20.0);
if ( *(_DWORD *)(a1 + 40) == 1 )
{
v16 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_unblock_001.png");
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v16 + 160LL))(v16);
v17 = FriendsProfilePage::onUnblock;
LABEL_25:
v19 = CCMenuItemSpriteExtra::create((int)v16, 0, v8, (__int64)v17);
*((_DWORD *)v19 + 93) = 1070386381;
v20 = v19;
(*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCObject *))(*(_QWORD *)v19 + 640LL))(v19, v10);
(*(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v20 + 184LL))(v20, &v23);
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, __int64))(*(_QWORD *)a4 + 456LL))(a4, v20, 3);
return;
}
if ( *((_BYTE *)v10 + 795) )
{
v16 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_notifications_001.png");
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v16 + 160LL))(v16);
v17 = FriendsProfilePage::onUnmute;
goto LABEL_25;
}
if ( *((_DWORD *)v10 + 190) != 1 )
{
if ( !*((_BYTE *)v10 + 792) )
return;
v16 = cocos2d::CCSprite::createWithSpriteFrameName("followBtnOn_001.png");
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v16 + 160LL))(v16);
v17 = FriendsProfilePage::onUnfollow;
goto LABEL_25;
}
if ( *((_DWORD *)v10 + 113) != 2 )
{
v18 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v21 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v21);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v18 = qword_14090BFD0;
}
if ( !(unsigned __int8)GameManager::getGameVariable(v18, "0218")
&& !(unsigned __int8)GameManager::getGameVariable(v18, "0219")
&& !(unsigned __int8)GameManager::getGameVariable(v18, "0243") )
{
v16 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_messages_001.png");
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v16 + 160LL))(v16);
v17 = FriendsProfilePage::onSendMessage;
goto LABEL_25;
}
}
}