//
// LevelLeaderboard::loadLeaderboardFailed from 0x140302c30 to 0x140302d40 (272 bytes)
//
// 2 xrefs:
// > ??> @ 0x140588588
// > ??> @ 0x1406d4400
//
// 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)
{
GJAccountManager *v3; // rax
__int64 v4; // rdx
__int64 v5; // rdx
__int128 v6; // [rsp+20h] [rbp-28h] BYREF
__int64 v7; // [rsp+30h] [rbp-18h]
__int64 v8; // [rsp+38h] [rbp-10h]
if ( LevelLeaderboard::isCorrect((LevelLeaderboard *)((char *)a1 - 632), a2) )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_uOrderOfArrival + 320LL))(
*(_QWORD *)&a1->m_uOrderOfArrival,
0);
v3 = GJAccountManager::sharedState();
if ( v3->m_accountID - v3->m_unkInt1 <= 0 )
{
v6 = 0;
*(_QWORD *)&v6 = sub_14003AA10(0x50u);
v7 = 71;
v8 = 79;
strcpy((char *)v6, "Create an account to\ncompare scores\nwith other players!");
TextArea::setString(*(TextArea **)&a1->m_fRotationX, (__int64)&v6);
LOBYTE(v5) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_fRotationX + 320LL))(
*(_QWORD *)&a1->m_fRotationX,
v5);
}
LOBYTE(v4) = a1->m_uAutoReleaseCount != 3;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_fScaleX + 320LL))(*(_QWORD *)&a1->m_fScaleX, v4);
}
}