//
// LeaderboardsLayer::onInfo from 0x5642dc to 0x56441e (322 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:27 +0000
//
int __fastcall LeaderboardsLayer::onInfo(LeaderboardsLayer *this, cocos2d::CCObject *a2)
{
char *v2; // r9
char *v4; // r1
char *v5; // r8
cocos2d::CCLabelBMFont *v6; // r10
size_t v7; // r0
int *v8; // r8
int v10[2]; // [sp+8h] [bp-28h] BYREF
cocos2d::CCLabelBMFont *v11; // [sp+10h] [bp-20h]
int v12[2]; // [sp+14h] [bp-1Ch] BYREF
char *v13; // [sp+1Ch] [bp-14h]
int v14[3]; // [sp+20h] [bp-10h] BYREF
v2 = (char *)&unk_B6B226;
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
std::string::__init(v10, &unk_B6B226, 0);
v12[0] = 0;
v12[1] = 0;
v13 = nullptr;
std::string::__init(v12, &unk_B6B226, 0);
switch ( *((_DWORD *)this + 83) )
{
case 1:
std::string::assign(v10, "Top 100");
v4 = "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.";
goto LABEL_3;
case 2:
std::string::assign(v10, "Global");
v4 = "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");
v4 = "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.";
goto LABEL_3;
case 4:
std::string::assign(v10, "Friends");
v4 = "The Friends leaderboard shows your friends in order of Stars.";
LABEL_3:
std::string::assign(v12, v4);
v5 = (char *)this + 320;
if ( (v10[0] & 1) != 0 )
v6 = v11;
else
v6 = (cocos2d::CCLabelBMFont *)((char *)v10 + 1);
if ( (v12[0] & 1) == 0 )
v2 = (char *)v12 + 1;
v14[0] = 0;
if ( (v12[0] & 1) != 0 )
v2 = v13;
v14[1] = 0;
v14[2] = 0;
v7 = strlen(v2);
std::string::__init(v14, v2, v7);
v8 = FLAlertLayer::create((int)v5, v6, (int)v14, (ButtonSprite *)"OK", (ButtonSprite *)"Info", 380.0);
std::string::~string((int)v14);
(*(void (__fastcall **)(int *))(*v8 + 656))(v8);
break;
default:
break;
}
std::string::~string((int)v12);
return std::string::~string((int)v10);
}