//
// LevelLeaderboard::loadLeaderboardFailed from 0x100250f60 to 0x100251058 (248 bytes)
//
// 2 xrefs:
// > sub_10025108C @ 0x100251090
// > ??> @ 0x1007cef80
//
// 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 LevelLeaderboard::loadLeaderboardFailed(LevelLeaderboard *a1, const char *a2)
{
GJAccountManager *v3; // x0
TextArea *m_noInternet; // x20
TextArea **p_m_noInternet; // x20
const void **v6; // x8
TextArea *v7; // x20
const void *v8[2]; // [xsp+0h] [xbp-40h] BYREF
char v9; // [xsp+17h] [xbp-29h]
const void *v10[2]; // [xsp+18h] [xbp-28h] BYREF
char v11; // [xsp+2Fh] [xbp-11h]
if ( LevelLeaderboard::isCorrect(a1, a2) )
{
((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_circle->setVisible)(a1->m_circle, 0);
if ( PlatformToolbox::isNetworkAvailable() )
{
v3 = GJAccountManager::sharedState();
if ( v3->m_accountID > v3->m_unkInt1 )
{
LABEL_10:
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_refreshBtn->setVisible)(
a1->m_refreshBtn,
a1->m_type != Local);
return;
}
m_noInternet = a1->m_noInternet;
sub_100009900(v8, "Create an account to\ncompare scores\nwith other players!");
TextArea::setString((__int64)m_noInternet, v8);
p_m_noInternet = &a1->m_noInternet;
if ( v9 < 0 )
{
v6 = v8;
LABEL_8:
operator delete((void *)*v6);
}
}
else
{
v7 = a1->m_noInternet;
sub_100009900(v10, "No Internet connection!");
TextArea::setString((__int64)v7, v10);
p_m_noInternet = &a1->m_noInternet;
if ( v11 < 0 )
{
v6 = v10;
goto LABEL_8;
}
}
((void (__fastcall *)(TextArea *, __int64))(*p_m_noInternet)->setVisible)(*p_m_noInternet, 1);
goto LABEL_10;
}
}