//
// ProfilePage::getUserInfoFinished from 0x140559c10 to 0x140559d2a (282 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407d90b8
// > ??> @ 0x14092c030
//
// 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:34:12 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall ProfilePage::getUserInfoFinished(__int64 a1, cocos2d::CCObject *a2)
{
__int64 result; // rax
__int64 v5; // rbx
bool v6; // bl
__int64 v7; // rdx
void *v8; // [rsp+30h] [rbp+8h]
result = *(unsigned int *)(a1 + 48);
if ( *((_DWORD *)a2 + 98) == (_DWORD)result )
{
v5 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v8 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v5 = qword_14090BFD0;
}
v6 = GameManager::getGameVariable(v5, "0218")
|| GameManager::getGameVariable(v5, "0219")
|| GameManager::getGameVariable(v5, "0076");
ProfilePage::loadPageFromUserInfo(a1 - 688, a2);
if ( *((_DWORD *)a2 + 190) == 2 || v6 )
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 184) + 336LL))(*(_QWORD *)(a1 + 184), 0);
else
ProfilePage::loadPage(a1 - 688, 0);
LOBYTE(v7) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 200) + 336LL))(*(_QWORD *)(a1 + 200), v7);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 88) + 336LL))(*(_QWORD *)(a1 + 88), 0);
}
return result;
}