//
// LevelBrowserLayer::onInfo from 0x7f7424 to 0x7f7820 (1020 bytes)
//
// 3 xrefs:
// > ??> @ 0x91558
// > LevelBrowserLayer::init @ 0x7f9d8c
// > ??> @ 0x1543e50
//
// 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:54:38 +0000
//
__int64 __fastcall LevelBrowserLayer::onInfo(LevelBrowserLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
char *v4; // x21
cocos2d::CCLabelBMFont *v5; // x20
const char *v6; // x1
size_t v7; // x0
ButtonSprite *v8; // x4
__int64 v9; // x19
__int64 v10; // x1
char *v12; // [xsp+48h] [xbp+48h]
__int64 v13[2]; // [xsp+58h] [xbp+58h] BYREF
void *v14; // [xsp+68h] [xbp+68h]
__int64 v15[2]; // [xsp+70h] [xbp+70h] BYREF
void *v16; // [xsp+80h] [xbp+80h]
__int64 v17; // [xsp+88h] [xbp+88h] BYREF
__int64 v18; // [xsp+90h] [xbp+90h]
void *v19; // [xsp+98h] [xbp+98h]
__int64 v20[2]; // [xsp+A0h] [xbp+A0h] BYREF
void *v21; // [xsp+B0h] [xbp+B0h]
v13[0] = 0;
v13[1] = 0;
v14 = nullptr;
std::string::__init(v13, "Info", 4u);
v15[0] = 0;
v15[1] = 0;
v16 = nullptr;
std::string::__init(
v15,
"Green users are unregistered.\n"
"Gold users are unique registered.\n"
"Blue songs are official.\n"
"Purple songs are custom.",
0x91u);
v17 = 0;
v18 = 0;
v19 = nullptr;
std::string::__init(&v17, &byte_11B8890, 0);
v3 = *((_QWORD *)this + 83);
if ( v3 )
{
if ( *(_DWORD *)(v3 + 432) == 1 )
{
std::string::assign(v13, "Lists");
std::string::assign(
v15,
"A list may have rewards if it is rated by RobTop. The difficulty face is manually set by the creator of "
"the list.\n"
"Usernames are gold for registered users and green for unregistered users. A song is blue"
" if it is official and pink if it is custom.");
if ( *(_DWORD *)(*((_QWORD *)this + 83) + 316LL) == 6 )
{
std::string::assign(v13, "Top Lists");
std::string::assign(
v15,
"These lists have been rated by RobTop. The rewards for each one are also decided by him and are variab"
"le from list to list. Note that rated lists can only be Featured and do not reward Creator Points.");
}
}
else
{
std::string::assign(v13, "Levels");
std::string::assign(
v15,
"A level rewards Stars if it is rated by RobTop. For unrated levels, the difficulty face is set b"
"y community votes on each level's page. This is also how Demon difficulties are decided.\n"
"Usernames are gold for registered users and green for unregistered users. A song is blue"
" if it is official and pink if it is custom.");
switch ( *(_DWORD *)(*((_QWORD *)this + 83) + 316LL) )
{
case 3:
std::string::assign(v13, "Trending");
std::string::assign(
v15,
"New popular levels from the last few days.\n"
"Only creators with a rated level, or a level sent by a Rating Advisor, can trend.");
break;
case 6:
std::string::assign(&v17, "Info");
std::string::assign(v13, "Featured");
std::string::assign(
v15,
"Levels on this list have been rated and featured by RobTop. The extra visual around the difficulty face indi"
"cates how much he likes a specific level. In order of increasing quality:\n"
"Featured, Epic, Legendary, and Mythic.");
break;
case 9:
std::string::assign(v13, "Map Packs");
std::string::assign(
v15,
"Map Packs are collections of 3 rated levels of similar difficulty set by RobTop. Once completed, the"
"y reward Stars and Secret Coins.");
break;
case 0x15:
case 0x16:
case 0x17:
case 0x20:
case 0x21:
case 0x22:
std::string::assign(v13, "The Safe");
std::string::assign(
v15,
"Every past Daily, Weekly, and Event level.\n"
"Safe: Unlock a past level with Demon Keys and play it as it originally appeared. Dailies giv"
"e Stars only, with no diamonds or orbs. Weekly and Event levels still give their chest rewards.\n"
"Check: Show only levels you have not beaten.\n"
"Clock: Play levels as normal online levels.");
break;
case 0x1C:
std::string::assign(v13, "Weekly Levels");
std::string::assign(
v15,
"New levels are released every week.\nCheck back later for more updates!");
break;
case 0x1D:
std::string::assign(v13, "Bonus Levels");
std::string::assign(
v15,
"New levels are released from time to time.\nCheck back later for more updates!");
break;
case 0x1F:
std::string::assign(v13, "Hyped");
std::string::assign(
v15,
"Levels sent by Rating Advisors enter the\n"
"Hyped list for about a week.\n"
"The list reshuffles every hour, so every level has a chance to be at the top.");
break;
default:
break;
}
}
}
v4 = (char *)this + 552;
v5 = (cocos2d::CCLabelBMFont *)((char *)v13 + 1);
if ( (v13[0] & 1) != 0 )
v5 = (cocos2d::CCLabelBMFont *)v14;
v6 = (char *)v15 + 1;
if ( (v15[0] & 1) != 0 )
v6 = (const char *)v16;
v12 = (char *)v6;
v20[0] = 0;
v20[1] = 0;
v21 = nullptr;
v7 = strlen(v6);
std::string::__init(v20, v12, v7);
if ( (v17 & 1) != 0 )
{
v8 = nullptr;
if ( v18 )
v8 = (ButtonSprite *)v19;
}
else if ( (int)(unsigned __int8)v17 >> 1 )
{
v8 = (ButtonSprite *)((char *)&v17 + 1);
}
else
{
v8 = nullptr;
}
v9 = FLAlertLayer::create((__int64)v4, v5, (char *)v20, (ButtonSprite *)"OK", v8, 380.0);
if ( (v20[0] & 1) != 0 )
operator delete(v21);
v10 = (unsigned __int8)v17 >> 1;
if ( (v17 & 1) != 0 )
v10 = v18;
if ( v10 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 72LL))(v9, 6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9);
if ( (v17 & 1) != 0 )
operator delete(v19);
if ( (v15[0] & 1) != 0 )
operator delete(v16);
if ( (v13[0] & 1) != 0 )
operator delete(v14);
return _stack_chk_guard;
}