//
// LeaderboardsLayer::loadLeaderboardFailed from 0x1402c3930 to 0x1402c3a46 (278 bytes)
//
// 2 xrefs:
// > ??> @ 0x140582c20
// > ??> @ 0x1406d2a80
//
// 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)
{
size_t v3; // r8
__int64 v4; // rdx
__int128 v5; // [rsp+20h] [rbp-28h] BYREF
__int64 v6; // [rsp+30h] [rbp-18h]
__int64 v7; // [rsp+38h] [rbp-10h]
v6 = 0;
v5 = 0;
v7 = 0;
v3 = -1;
do
++v3;
while ( a2[v3] );
sub_14003A930(&v5, a2, v3);
if ( (unsigned __int8)LeaderboardsLayer::isCorrect(&a1[-1].m_obAnchorPoint.y, &v5) )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_fVertexZ + 320LL))(*(_QWORD *)&a1->m_fVertexZ, 0);
if ( a1->m_uIndexInArray == 4 )
{
v6 = 0;
v7 = 15;
v5 = 0;
*(_QWORD *)&v5 = sub_14003AA10(0x50u);
v6 = 65;
v7 = 79;
strcpy((char *)v5, "Create an account to\ncompare scores\nwith friends!");
TextArea::setString(*(TextArea **)&a1->m_obPosition.y, (__int64)&v5);
LOBYTE(v4) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_obPosition.y + 320LL))(
*(_QWORD *)&a1->m_obPosition.y,
v4);
}
}
}