//
// ProfilePage::onInfo from 0x5fc4f0 to 0x5fc84e (862 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:54:36 +0000
//
GameLevelManager *__fastcall ProfilePage::onInfo(GameLevelManager *this, cocos2d::CCObject *a2)
{
GameLevelManager *v2; // r4
cocos2d::CCDictionary **v3; // r0
int v4; // r3
int v5; // r3
int v6; // r0
int v7; // r1
cocos2d::CCLabelBMFont *v8; // r2
const char *v9; // r6
cocos2d::CCLabelBMFont *v10; // r9
char *v11; // r3
char *v12; // r3
char *v13; // r3
char *v14; // r3
char *v15; // r3
cocos2d::CCString *v16; // r0
size_t v17; // r0
signed int v18; // r1
char *v19; // r8
char *v20; // r2
cocos2d::CCString *v21; // r0
char *v22; // r0
char *v23; // r8
int v24; // r7
char *v25; // r2
cocos2d::CCString *v26; // r0
char *v27; // r0
size_t v28; // r0
int *v29; // r4
char *v30; // [sp+10h] [bp-BCh]
const char *CString; // [sp+10h] [bp-BCh]
char *v32; // [sp+14h] [bp-B8h]
char *v33; // [sp+18h] [bp-B4h]
char *v34; // [sp+1Ch] [bp-B0h]
int v35; // [sp+28h] [bp-A4h] BYREF
int v36; // [sp+2Ch] [bp-A0h]
cocos2d::CCLabelBMFont *v37; // [sp+30h] [bp-9Ch]
int v38; // [sp+34h] [bp-98h] BYREF
int v39; // [sp+38h] [bp-94h]
cocos2d::CCLabelBMFont *v40; // [sp+3Ch] [bp-90h]
int v41[2]; // [sp+40h] [bp-8Ch] BYREF
char *v42; // [sp+48h] [bp-84h]
char v43; // [sp+4Ch] [bp-80h] BYREF
char v44; // [sp+4Dh] [bp-7Fh] BYREF
const char *v45; // [sp+54h] [bp-78h]
char v46; // [sp+58h] [bp-74h] BYREF
char v47; // [sp+59h] [bp-73h] BYREF
char *v48; // [sp+60h] [bp-6Ch]
char v49; // [sp+64h] [bp-68h] BYREF
char v50; // [sp+65h] [bp-67h] BYREF
char *v51; // [sp+6Ch] [bp-60h]
char v52; // [sp+70h] [bp-5Ch] BYREF
char v53; // [sp+71h] [bp-5Bh] BYREF
char *v54; // [sp+78h] [bp-54h]
char v55; // [sp+7Ch] [bp-50h] BYREF
char v56; // [sp+7Dh] [bp-4Fh] BYREF
char *v57; // [sp+84h] [bp-48h]
char v58; // [sp+88h] [bp-44h] BYREF
char v59; // [sp+89h] [bp-43h] BYREF
char *v60; // [sp+90h] [bp-3Ch]
char v61; // [sp+94h] [bp-38h] BYREF
char v62; // [sp+95h] [bp-37h] BYREF
char *v63; // [sp+9Ch] [bp-30h]
int v64[3]; // [sp+A0h] [bp-2Ch] BYREF
int v65[3]; // [sp+ACh] [bp-20h] BYREF
int v66[3]; // [sp+B8h] [bp-14h] BYREF
v2 = this;
if ( !*((_DWORD *)this + 138) )
return this;
v3 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(this);
GameLevelManager::tryGetUsername((GameLevelManager *)&v35, v3, *(_DWORD *)(*((_DWORD *)v2 + 138) + 296));
v4 = (unsigned __int8)v35;
if ( (v35 & 1) == 0 )
{
if ( (unsigned __int8)v35 >> 1 )
goto LABEL_10;
goto LABEL_6;
}
if ( !v36 )
{
LABEL_6:
std::string::basic_string(&v38, *((_DWORD *)v2 + 138) + 264);
if ( (v35 & 1) != 0 )
{
*(_BYTE *)v37 = 0;
v36 = 0;
}
else
{
LOWORD(v35) = 0;
}
std::string::reserve(&v35, 0);
v6 = v38;
v7 = v39;
v8 = v40;
v38 = 0;
v39 = 0;
v40 = nullptr;
v35 = v6;
v36 = v7;
v37 = v8;
std::string::~string((int)&v38);
v4 = (unsigned __int8)v35;
if ( (v35 & 1) != 0 )
goto LABEL_4;
LABEL_10:
v5 = v4 >> 1;
goto LABEL_11;
}
LABEL_4:
v5 = v36;
LABEL_11:
if ( !v5 )
std::string::assign(&v35, "-");
GameToolbox::pointsToString((GameToolbox *)&v43, *(_DWORD *)(*((_DWORD *)v2 + 138) + 300));
if ( (v43 & 1) != 0 )
v9 = v45;
else
v9 = &v44;
GameToolbox::pointsToString((GameToolbox *)&v46, *(_DWORD *)(*((_DWORD *)v2 + 138) + 304));
v10 = (cocos2d::CCLabelBMFont *)&v49;
if ( (v46 & 1) != 0 )
v11 = v48;
else
v11 = &v47;
v30 = v11;
GameToolbox::pointsToString((GameToolbox *)&v49, *(_DWORD *)(*((_DWORD *)v2 + 138) + 308));
if ( (v49 & 1) != 0 )
v12 = v51;
else
v12 = &v50;
v32 = v12;
GameToolbox::pointsToString((GameToolbox *)&v52, *(_DWORD *)(*((_DWORD *)v2 + 138) + 324));
if ( (v52 & 1) != 0 )
v13 = v54;
else
v13 = &v53;
v33 = v13;
GameToolbox::pointsToString((GameToolbox *)&v55, *(_DWORD *)(*((_DWORD *)v2 + 138) + 328));
if ( (v55 & 1) != 0 )
v14 = v57;
else
v14 = &v56;
v34 = v14;
GameToolbox::pointsToString((GameToolbox *)&v58, *(_DWORD *)(*((_DWORD *)v2 + 138) + 312));
if ( (v58 & 1) != 0 )
v15 = v60;
else
v15 = &v59;
v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Stars: %s\n"
"Moons: %s\n"
"Diamonds: %s\n"
"Secret Coins: %s\n"
"User Coins: %s\n"
"Demons: %s",
v9,
v30,
v32,
v33,
v34,
v15);
CString = (const char *)cocos2d::CCString::getCString(v16);
v41[0] = 0;
v41[1] = 0;
v42 = nullptr;
v17 = strlen(CString);
std::string::__init(v41, CString, v17);
std::string::~string((int)&v58);
std::string::~string((int)&v55);
std::string::~string((int)&v52);
std::string::~string((int)&v49);
std::string::~string((int)&v46);
std::string::~string((int)&v43);
v18 = *(_DWORD *)(*((_DWORD *)v2 + 138) + 320);
if ( v18 > 0 )
{
if ( (v41[0] & 1) != 0 )
v19 = v42;
else
v19 = (char *)v41 + 1;
GameToolbox::pointsToString((GameToolbox *)&v61, v18);
if ( (v61 & 1) != 0 )
v20 = v63;
else
v20 = &v62;
v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s\nCreator Points: %s",
v19,
v20);
v22 = (char *)cocos2d::CCString::getCString(v21);
std::string::assign(v41, v22);
std::string::~string((int)&v61);
}
v23 = (char *)v64;
std::string::basic_string(v64, *((_DWORD *)v2 + 138) + 416);
if ( (v64[0] & 1) != 0 )
v24 = v64[1];
else
v24 = (int)LOBYTE(v64[0]) >> 1;
std::string::~string((int)v64);
if ( v24 )
{
if ( (v41[0] & 1) != 0 )
v23 = v42;
else
v23 = (char *)v41 + 1;
std::string::basic_string(v65, *((_DWORD *)v2 + 138) + 416);
if ( (v65[0] & 1) != 0 )
v25 = (char *)v65[2];
else
v25 = (char *)v65 + 1;
v26 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s\nDiscord: @%s",
v23,
v25);
v27 = (char *)cocos2d::CCString::getCString(v26);
std::string::assign(v41, v27);
std::string::~string((int)v65);
}
v66[0] = 0;
if ( (v35 & 1) == 0 )
v10 = (cocos2d::CCLabelBMFont *)((char *)&v35 + 1);
v66[1] = 0;
if ( (v35 & 1) != 0 )
v10 = v37;
if ( (v41[0] & 1) == 0 )
v23 = (char *)v41 + 1;
v66[2] = 0;
if ( (v41[0] & 1) != 0 )
v23 = v42;
v28 = strlen(v23);
std::string::__init(v66, v23, v28);
v29 = FLAlertLayer::create(0, v10, (int)v66, (ButtonSprite *)"OK", nullptr, 300.0);
std::string::~string((int)v66);
(*(void (__fastcall **)(int *))(*v29 + 656))(v29);
std::string::~string((int)v41);
return (GameLevelManager *)std::string::~string((int)&v35);
}