//
// LeaderboardsLayer::onInfo from 0x100457e38 to 0x100457fbc (388 bytes)
//
// 1 xrefs:
// > LeaderboardsLayer::init @ 0x100457c80
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:05:24 +0000
//
void __fastcall LeaderboardsLayer::onInfo(__int64 a1)
{
int v2; // w8
const std::string::value_type *v3; // x1
int v4; // w21
std::string::size_type v5; // x20
std::string *v6; // x1
std::string *v7; // x1
void *v8; // x19
void *__p[2]; // [xsp+8h] [xbp-68h] BYREF
char v10; // [xsp+1Fh] [xbp-51h]
std::string v11; // [xsp+20h] [xbp-50h] BYREF
std::string v12; // [xsp+38h] [xbp-38h] BYREF
sub_100009900(&v12, "");
sub_100009900(&v11, "");
v2 = *(_DWORD *)(a1 + 440);
if ( v2 > 2 )
{
if ( v2 == 3 )
{
std::string::assign(&v12, "Creators");
v3 = "The Creators leaderboard is sorted by amount of Creator Points. Creating a rated level rewards 1, Featured rewards 2, Epic rewards 3, Legendary rewards 4, and Mythic rewards 5.";
}
else
{
if ( v2 != 4 )
goto LABEL_19;
std::string::assign(&v12, "Friends");
v3 = "The Friends leaderboard shows your friends in order of Stars.";
}
}
else if ( v2 == 1 )
{
std::string::assign(&v12, "Top 100");
v3 = "The Top 100 leaderboard shows the players with the most Stars in the game. Players must be "
"manually whitelisted by a Leaderboard Moderator to appear here, ensuring legitimate rankings.";
}
else
{
if ( v2 != 2 )
goto LABEL_19;
std::string::assign(&v12, "Global");
v3 = "The Global leaderboard shows players in order of Stars.\n"
"Players banned by Leaderboard Moderators are excluded.";
}
std::string::assign(&v11, v3);
v4 = SHIBYTE(v12.__r_.__value_.__r.__words[2]);
v5 = v12.__r_.__value_.__r.__words[0];
if ( (v11.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v6 = &v11;
else
v6 = (std::string *)v11.__r_.__value_.__r.__words[0];
sub_100009900(__p, (char *)v6);
if ( v4 >= 0 )
v7 = &v12;
else
v7 = (std::string *)v5;
v8 = FLAlertLayer::create_1(a1 + 416, (__int64)v7, (__int64)__p, (__int64)"OK", (__int64)"Info", 380.0);
if ( v10 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(void *))(*(_QWORD *)v8 + 1312LL))(v8);
LABEL_19:
if ( SHIBYTE(v11.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v11.__r_.__value_.__l.__data_);
if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v12.__r_.__value_.__l.__data_);
}