//
// ProfilePage::updateUserScoreFinished from 0x140559200 to 0x140559323 (291 bytes)
//
// 4 xrefs:
// > sub_14055CE7C @ 0x14055ce80
// > ??> @ 0x1407d8550
// > ??> @ 0x14092bfac
// > ??> @ 0x14092bfb8
//
// 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=3
void __fastcall ProfilePage::updateUserScoreFinished(__int64 a1)
{
__int64 v2; // rcx
struct cocos2d::CCObject *v3; // rax
__int64 v4; // rdx
__int64 v5; // rsi
__int64 v6; // rcx
void *v7; // [rsp+30h] [rbp+8h]
void *v8; // [rsp+30h] [rbp+8h]
v2 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v7 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v7);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v2 = *(_QWORD *)&qword_14090BFB0;
}
v3 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v2 + 1232), *(int *)(a1 + 64));
if ( v3 )
{
(**(void (__fastcall ***)(__int64, struct cocos2d::CCObject *))(a1 + 16))(a1 + 16, v3);
}
else
{
LOBYTE(v4) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 200) + 336LL))(*(_QWORD *)(a1 + 200), v4);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 216) + 336LL))(*(_QWORD *)(a1 + 216), 0);
ProfilePage::setupCommentsBrowser(a1 - 672, 0);
v5 = a1 + 16;
if ( a1 == 672 )
v5 = 0;
v6 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v8 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v8);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v6 = *(_QWORD *)&qword_14090BFB0;
}
*(_QWORD *)(v6 + 1480) = v5;
GameLevelManager::getGJUserInfo((cocos2d::CCActionManager **)v6, *(_DWORD *)(a1 + 64));
}
}