//
// FriendsProfilePage::forceReloadList from 0x1401409d0 to 0x140140a6f (159 bytes)
//
// 3 xrefs:
// > ??> @ 0x1405587a8
// > ??> @ 0x1406ca2c0
// > ??> @ 0x1406ca2cc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void FriendsProfilePage::forceReloadList(FriendsProfilePage *a1, UserListType a2)
{
GameLevelManager *v3; // rcx
void *v4; // [rsp+30h] [rbp+8h]
if ( a1->m_uID == a2 )
{
LOBYTE(a2) = 1;
(*(void (__fastcall **)(_QWORD, UserListType))(**(_QWORD **)&a1->m_unknown2 + 320LL))(
*(_QWORD *)&a1->m_unknown2,
a2);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_fScaleX + 320LL))(*(_QWORD *)&a1->m_fScaleX, 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_nTag + 320LL))(*(_QWORD *)&a1->m_nTag, 0);
FriendsProfilePage::setupUsersBrowser((FriendsProfilePage *)((char *)a1 - 656), nullptr, (UserListType)a1->m_uID);
v3 = (GameLevelManager *)qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v4 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280(v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v3 = (GameLevelManager *)qword_1406C2EC0;
}
GameLevelManager::getUserList(v3, (UserListType)a1->m_uID);
}
}