//
// ProfilePage::getUserInfoFinished from 0x1403c5ee0 to 0x1403c5fc8 (232 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405cbc50
// > ??> @ 0x1406d7880
//
// 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 ProfilePage::getUserInfoFinished(ProfilePage *a1, GJUserScore *a2)
{
GameManager *v4; // rcx
bool GameVariable; // bp
__int64 v6; // rdx
void *v7; // [rsp+30h] [rbp+8h]
if ( a2->m_accountID == a1->m_unknown2 )
{
v4 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v7 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = (GameManager *)qword_1406C2ED8;
}
GameVariable = GameManager::getGameVariable(v4, "0076");
ProfilePage::loadPageFromUserInfo((ProfilePage *)((char *)a1 - 656), a2);
if ( a2->m_friendReqStatus == 2 || GameVariable )
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_sInverse.b + 320LL))(*(_QWORD *)&a1->m_sInverse.b, 0);
else
ProfilePage::loadPage((ProfilePage *)((char *)a1 - 656), 0);
LOBYTE(v6) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_sInverse.ty + 320LL))(
*(_QWORD *)&a1->m_sInverse.ty,
v6);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_obPosition.y + 320LL))(
*(_QWORD *)&a1->m_obPosition.y,
0);
}
}