//
// ProfilePage::getUserInfoFinished from 0x100230948 to 0x1002309f4 (172 bytes)
//
// 2 xrefs:
// > sub_100230BA0 @ 0x100230ba4
// > ??> @ 0x1008ff6e8
//
// 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 11:01:17 +0000
//
__int64 __fastcall ProfilePage::getUserInfoFinished(__int64 result, __int64 a2)
{
_QWORD **v3; // x19
__int64 v4; // x0
char v5; // w21
if ( *(_DWORD *)(a2 + 376) == *(_DWORD *)(result + 736) )
{
v3 = (_QWORD **)result;
v4 = GameManager::sharedState(result);
v5 = GameManager::accountPostsRestricted(v4);
ProfilePage::loadPageFromUserInfo((__int64)v3, a2);
if ( *(_DWORD *)(a2 + 688) == 2 || (v5 & 1) != 0 )
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v3[108] + 344LL))(v3[108], 0);
else
ProfilePage::loadPage(v3, 0);
(*(void (__fastcall **)(_QWORD *, __int64))(*v3[110] + 344LL))(v3[110], 1);
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*v3[96] + 344LL))(v3[96], 0);
}
return result;
}