//
// LevelBrowserLayer::onInfo from 0x6e75a8 to 0x6e7a6c (1220 bytes)
//
// 3 xrefs:
// > ??> @ 0x6b838
// > LevelBrowserLayer::init @ 0x6eb3d0
// > ??> @ 0x122b860
//
// 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 LevelBrowserLayer::onInfo(LevelBrowserLayer *a1, cocos2d::CCObject *a2)
{
GJSearchObject *m_searchObject; // x0
__int64 v4; // x23
FLAlertLayer *v5; // x21
void *v6; // x0
void *v7; // x0
char *v8; // x0
void *v9; // x0
unsigned int *v10; // x1
int v11; // w2
unsigned int *v12; // x1
int v13; // w2
unsigned int *v14; // x1
int v15; // w2
unsigned int *v16; // x1
int v17; // w2
__int64 v18; // [xsp+68h] [xbp+68h] BYREF
char *v19; // [xsp+70h] [xbp+70h] BYREF
__int64 v20; // [xsp+78h] [xbp+78h] BYREF
__int64 v21; // [xsp+80h] [xbp+80h] BYREF
sub_D153B8((int)&v18, "Info");
sub_D153B8(
(int)&v19,
"Green users are unregistered.\n"
"Gold users are unique registered.\n"
"Blue songs are official.\n"
"Purple songs are custom.");
sub_D153B8((int)&v20, &byte_F288A0);
m_searchObject = a1->m_searchObject;
if ( m_searchObject )
{
if ( m_searchObject->m_searchMode == 1 )
{
sub_D1798C(&v18, "Lists", 5);
sub_D1798C(
&v19,
"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.",
286);
if ( a1->m_searchObject->m_searchType == (Recent|MostLiked) )
{
sub_D1798C(&v18, "Top Lists", 9);
sub_D1798C(
&v19,
"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.",
216);
}
}
else
{
sub_D1798C(&v18, "Levels", 6);
sub_D1798C(
&v19,
"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.",
373);
switch ( a1->m_searchObject->m_searchType )
{
case Recent|MostLiked:
sub_D1798C(&v20, "Info", 4);
sub_D1798C(&v18, "Featured", 8);
sub_D1798C(
&v19,
"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.",
252);
break;
case Sends|Downloaded:
sub_D1798C(&v18, "Map Packs", 9);
sub_D1798C(
&v19,
"Map Packs are collections of 3 rated levels of similar difficulty set by RobTop. Once completed, the"
"y reward Stars and Secret Coins.",
156);
break;
case FeaturedLite:
sub_D1798C(&v18, "Weekly Levels", 13);
sub_D1798C(
&v19,
"New levels are released every week.\nCheck back later for more updates!",
94);
break;
case FeaturedLite|Downloaded:
sub_D1798C(&v18, "Bonus Levels", 12);
sub_D1798C(
&v19,
"New levels are released from time to time.\nCheck back later for more updates!",
93);
break;
default:
break;
}
}
}
v4 = v18;
sub_D153B8((int)&v21, v19);
v5 = FLAlertLayer::create((int)a1 + 552, v4, (__int64)&v21);
v6 = (void *)(v21 - 24);
if ( (__int64 *)(v21 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v16 = (unsigned int *)(v21 - 8);
do
v17 = __ldaxr(v16);
while ( __stlxr(v17 - 1, v16) );
}
else
{
v17 = *(_DWORD *)(v21 - 8);
*(_DWORD *)(v21 - 8) = v17 - 1;
}
if ( v17 <= 0 )
operator delete(v6);
}
if ( *(_QWORD *)(v20 - 24) )
v5->setTag(v5, 6);
v5->show(v5);
v7 = (void *)(v20 - 24);
if ( (__int64 *)(v20 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v12 = (unsigned int *)(v20 - 8);
do
v13 = __ldaxr(v12);
while ( __stlxr(v13 - 1, v12) );
}
else
{
v13 = *(_DWORD *)(v20 - 8);
*(_DWORD *)(v20 - 8) = v13 - 1;
}
if ( v13 <= 0 )
operator delete(v7);
}
v8 = v19 - 24;
if ( v19 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v14 = (unsigned int *)(v19 - 8);
do
v15 = __ldaxr(v14);
while ( __stlxr(v15 - 1, v14) );
}
else
{
v15 = *((_DWORD *)v19 - 2);
*((_DWORD *)v19 - 2) = v15 - 1;
}
if ( v15 <= 0 )
operator delete(v8);
}
v9 = (void *)(v18 - 24);
if ( (__int64 *)(v18 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v10 = (unsigned int *)(v18 - 8);
do
v11 = __ldaxr(v10);
while ( __stlxr(v11 - 1, v10) );
}
else
{
v11 = *(_DWORD *)(v18 - 8);
*(_DWORD *)(v18 - 8) = v11 - 1;
}
if ( v11 <= 0 )
operator delete(v9);
}
}