//
// ProfilePage::updateUserScoreFinished from 0x1007bfa30 to 0x1007bfab3 (131 bytes)
//
// 3 xrefs:
// > sub_1007BFAC0 @ 0x1007bfacc
// > sub_1007BFAE0 @ 0x1007bfaec
// > ??> @ 0x1009942a0
//
// 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
//
void __fastcall ProfilePage::updateUserScoreFinished(ProfilePage *a1)
{
GameLevelManager *v1; // rax
GJUserScore *v2; // rax
GameLevelManager *v3; // rax
v1 = GameLevelManager::sharedState();
v2 = GameLevelManager::userInfoForAccountID(v1, a1->m_accountID);
if ( v2 )
{
((void (__fastcall *)(ProfilePage *, GJUserScore *))a1->getUserInfoFinished)(a1, v2);
}
else
{
((void (__fastcall *)(LoadingCircle *, __int64))a1->m_circle->setVisible)(a1->m_circle, 1);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_refreshBtn->setVisible)(a1->m_refreshBtn, 0);
ProfilePage::setupCommentsBrowser(a1, nullptr);
v3 = GameLevelManager::sharedState();
GameLevelManager::getGJUserInfo(v3, a1->m_accountID);
}
}