//
// LeaderboardsLayer::onInfo from 0x94fec0 to 0x95011c (604 bytes)
//
// 3 xrefs:
// > ??> @ 0xcfb08
// > LeaderboardsLayer::init @ 0x94f7f8
// > ??> @ 0x1546200
//
// 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 12:57:22 +0000
//
__int64 __fastcall LeaderboardsLayer::onInfo(LeaderboardsLayer *this, cocos2d::CCObject *a2)
{
char *v3; // x23
cocos2d::CCLabelBMFont *v4; // x21
const char *v5; // x1
size_t v6; // x0
__int64 v7; // x19
char *v9; // [xsp+48h] [xbp+48h]
__int64 v10[2]; // [xsp+50h] [xbp+50h] BYREF
void *v11; // [xsp+60h] [xbp+60h]
__int64 v12[2]; // [xsp+68h] [xbp+68h] BYREF
void *v13; // [xsp+78h] [xbp+78h]
__int64 v14[2]; // [xsp+80h] [xbp+80h] BYREF
void *v15; // [xsp+90h] [xbp+90h]
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
std::string::__init(v10, &byte_11B8890, 0);
v12[0] = 0;
v12[1] = 0;
v13 = nullptr;
std::string::__init(v12, &byte_11B8890, 0);
switch ( *((_DWORD *)this + 110) )
{
case 1:
std::string::assign(v10, "Top 100");
std::string::assign(
v12,
"The Top 100 leaderboard shows the players with the most Stars in the game. Players must be m"
"anually whitelisted by a Leaderboard Moderator to appear here, ensuring legitimate rankings.");
goto LABEL_3;
case 2:
std::string::assign(v10, "Global");
std::string::assign(
v12,
"The Global leaderboard shows players in order of Stars.\n"
"Players banned by Leaderboard Moderators are excluded.");
goto LABEL_3;
case 3:
std::string::assign(v10, "Creators");
std::string::assign(
v12,
"The Creators leaderboard is sorted by amount of Creator Points. Creating a rated level rewards 1, Fe"
"atured rewards 2, Epic rewards 3, Legendary rewards 4, and Mythic rewards 5.");
goto LABEL_3;
case 4:
std::string::assign(v10, "Friends");
std::string::assign(v12, "The Friends leaderboard shows your friends in order of Stars.");
LABEL_3:
v3 = (char *)this + 416;
v4 = (cocos2d::CCLabelBMFont *)((char *)v10 + 1);
if ( (v10[0] & 1) != 0 )
v4 = (cocos2d::CCLabelBMFont *)v11;
v5 = (char *)v12 + 1;
if ( (v12[0] & 1) != 0 )
v5 = (const char *)v13;
v9 = (char *)v5;
v14[0] = 0;
v14[1] = 0;
v15 = nullptr;
v6 = strlen(v5);
std::string::__init(v14, v9, v6);
v7 = FLAlertLayer::create((__int64)v3, v4, (char *)v14, (ButtonSprite *)"OK", (ButtonSprite *)"Info", 380.0);
if ( (v14[0] & 1) != 0 )
operator delete(v15);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);
break;
default:
break;
}
if ( (v12[0] & 1) != 0 )
operator delete(v13);
if ( (v10[0] & 1) != 0 )
operator delete(v11);
return _stack_chk_guard;
}