//
// LevelLeaderboard::loadLeaderboardFailed from 0x4e4f08 to 0x4e4fc4 (188 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelLeaderboard::loadLeaderboardFailed @ 0x4e4fd4
//
// 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 LevelLeaderboard::loadLeaderboardFailed(LevelLeaderboard *a1, const char *a2)
{
TextArea *v3; // r7
GJAccountManager *v4; // r0
TextArea *m_noInternet; // r7
int v6; // [sp+8h] [bp-Ch] BYREF
if ( LevelLeaderboard::isCorrect(a1, a2) )
{
a1->m_circle->setVisible(a1->m_circle, 0);
if ( PlatformToolbox::isNetworkAvailable() )
{
v4 = GJAccountManager::sharedState();
if ( v4->m_accountID - v4->m_unkInt1 > 0 )
{
LABEL_7:
a1->m_refreshBtn->setVisible(a1->m_refreshBtn, a1->m_type != Local);
return;
}
m_noInternet = a1->m_noInternet;
sub_776584((int)&v6, "Create an account to\ncompare scores\nwith other players!");
TextArea::setString((int)m_noInternet, &v6);
}
else
{
v3 = a1->m_noInternet;
sub_776584((int)&v6, "No Internet connection!");
TextArea::setString((int)v3, &v6);
}
sub_774008(&v6);
a1->m_noInternet->setVisible(a1->m_noInternet, 1);
goto LABEL_7;
}
}