//
// LeaderboardsLayer::loadLeaderboardFailed from 0x452b80 to 0x452c36 (182 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LeaderboardsLayer::loadLeaderboardFailed @ 0x452c48
//
// 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 LeaderboardsLayer::loadLeaderboardFailed(LeaderboardsLayer *a1, const char *a2)
{
_BOOL4 isCorrect; // r8
TextArea *v4; // r8
TextArea *m_noInternet; // r8
int v6; // [sp+8h] [bp+4h] BYREF
sub_776584((int)&v6, (char *)a2);
isCorrect = LeaderboardsLayer::isCorrect((int)a1, (int)&v6);
sub_774008(&v6);
if ( isCorrect )
{
a1->m_circle->setVisible(a1->m_circle, 0);
if ( PlatformToolbox::isNetworkAvailable() )
{
if ( a1->m_type != Friends )
return;
m_noInternet = a1->m_noInternet;
sub_776584((int)&v6, "Create an account to\ncompare scores\nwith friends!");
TextArea::setString((int)m_noInternet, &v6);
}
else
{
v4 = a1->m_noInternet;
sub_776584((int)&v6, "No Internet connection!");
TextArea::setString((int)v4, &v6);
}
sub_774008(&v6);
a1->m_noInternet->setVisible(a1->m_noInternet, 1);
}
}