//
// ProfilePage::onInfo from 0xa5dbb0 to 0xa5e1fc (1612 bytes)
//
// 3 xrefs:
// > ??> @ 0xc74f8
// > ProfilePage::loadPageFromUserInfo @ 0xa5a990
// > ??> @ 0x1545d38
//
// 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 13:00:13 +0000
//
__int64 __fastcall ProfilePage::onInfo(ProfilePage *this, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // x0
cocos2d::CCDictionary **v4; // x0
__int64 v5; // x0
const char *v6; // x27
char *v7; // x26
char *v8; // x25
char *v9; // x24
char *v10; // x23
char *v11; // x6
cocos2d::CCString *v12; // x0
size_t v13; // x0
__int64 v14; // x1
GameToolbox *v15; // x0
const char *v16; // x24
char *v17; // x2
cocos2d::CCString *v18; // x0
char *v19; // x0
char v20; // w0
__int64 v21; // x2
__int64 v22; // x0
__int64 v23; // x1
__int64 v24; // x23
const char *v25; // x23
__int64 v26; // x0
__int64 v27; // x2
__int64 v28; // x0
__int64 v29; // x1
char *v30; // x2
cocos2d::CCString *v31; // x0
char *v32; // x0
cocos2d::CCLabelBMFont *v33; // x20
const char *v34; // x1
size_t v35; // x0
__int64 v36; // x20
__int64 v38; // x0
__int64 v39; // x2
__int64 v40; // x4
__int64 v41; // x5
__int64 v42; // x0
char *CString; // [xsp+68h] [xbp+68h]
char *v44; // [xsp+68h] [xbp+68h]
__int64 v45; // [xsp+70h] [xbp+70h] BYREF
__int64 v46; // [xsp+78h] [xbp+78h]
cocos2d::CCLabelBMFont *v47; // [xsp+80h] [xbp+80h]
__int64 v48; // [xsp+88h] [xbp+88h] BYREF
__int64 v49; // [xsp+90h] [xbp+90h]
cocos2d::CCLabelBMFont *v50; // [xsp+98h] [xbp+98h]
__int64 v51[2]; // [xsp+A0h] [xbp+A0h] BYREF
void *v52; // [xsp+B0h] [xbp+B0h]
unsigned __int64 v53[2]; // [xsp+B8h] [xbp+B8h] BYREF
void *v54; // [xsp+C8h] [xbp+C8h]
unsigned __int64 v55[2]; // [xsp+D0h] [xbp+D0h] BYREF
void *v56; // [xsp+E0h] [xbp+E0h]
unsigned __int64 v57[2]; // [xsp+E8h] [xbp+E8h] BYREF
void *v58; // [xsp+F8h] [xbp+F8h]
unsigned __int64 v59[2]; // [xsp+100h] [xbp+100h] BYREF
void *v60; // [xsp+110h] [xbp+110h]
unsigned __int64 v61[2]; // [xsp+118h] [xbp+118h] BYREF
void *v62; // [xsp+128h] [xbp+128h]
unsigned __int64 v63[2]; // [xsp+130h] [xbp+130h] BYREF
void *v64; // [xsp+140h] [xbp+140h]
unsigned __int64 v65[2]; // [xsp+148h] [xbp+148h] BYREF
void *v66; // [xsp+158h] [xbp+158h]
__int64 v67; // [xsp+160h] [xbp+160h] BYREF
__int64 v68; // [xsp+168h] [xbp+168h]
void *v69; // [xsp+170h] [xbp+170h]
__int64 v70; // [xsp+178h] [xbp+178h] BYREF
__int64 v71; // [xsp+180h] [xbp+180h]
void *v72; // [xsp+188h] [xbp+188h]
__int64 v73[2]; // [xsp+190h] [xbp+190h] BYREF
void *v74; // [xsp+1A0h] [xbp+1A0h]
v3 = *((GameLevelManager **)this + 91);
if ( !v3 )
return _stack_chk_guard;
v4 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v3);
GameLevelManager::tryGetUsername(&v45, v4, *(_DWORD *)(*((_QWORD *)this + 91) + 376LL));
if ( (v45 & 1) != 0 )
{
v5 = v46;
if ( v46 )
goto LABEL_4;
}
else
{
LODWORD(v5) = (int)(unsigned __int8)v45 >> 1;
if ( (_DWORD)v5 )
{
LABEL_67:
v5 = (int)v5;
goto LABEL_4;
}
}
v38 = *((_QWORD *)this + 91);
v48 = 0;
v39 = v38 + 320;
v49 = 0;
LOBYTE(v38) = *(_BYTE *)(v38 + 320);
v50 = nullptr;
if ( (v38 & 1) != 0 )
{
std::string::__init(&v48, *(void **)(v39 + 16), *(_QWORD *)(v39 + 8));
if ( (v45 & 1) == 0 )
goto LABEL_64;
}
else
{
v40 = *(_QWORD *)v39;
v41 = *(_QWORD *)(v39 + 8);
v50 = *(cocos2d::CCLabelBMFont **)(v39 + 16);
v48 = v40;
v49 = v41;
if ( (v45 & 1) == 0 )
{
LABEL_64:
LOWORD(v45) = 0;
goto LABEL_65;
}
}
*(_BYTE *)v47 = 0;
v46 = 0;
LABEL_65:
std::string::reserve(&v45, 0);
v45 = v48;
v46 = v49;
v47 = v50;
if ( (v48 & 1) == 0 )
{
LODWORD(v5) = (int)(unsigned __int8)v48 >> 1;
goto LABEL_67;
}
v5 = v46;
LABEL_4:
if ( !v5 )
std::string::assign(&v45, &byte_1191DE0);
GameToolbox::pointsToString((GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 91) + 380LL), v53);
v6 = (char *)v53 + 1;
if ( (v53[0] & 1) != 0 )
v6 = (const char *)v54;
GameToolbox::pointsToString((GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 91) + 384LL), v55);
v7 = (char *)v55 + 1;
if ( (v55[0] & 1) != 0 )
v7 = (char *)v56;
GameToolbox::pointsToString((GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 91) + 388LL), v57);
v8 = (char *)v57 + 1;
if ( (v57[0] & 1) != 0 )
v8 = (char *)v58;
GameToolbox::pointsToString((GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 91) + 404LL), v59);
v9 = (char *)v59 + 1;
if ( (v59[0] & 1) != 0 )
v9 = (char *)v60;
GameToolbox::pointsToString((GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 91) + 408LL), v61);
v10 = (char *)v61 + 1;
if ( (v61[0] & 1) != 0 )
v10 = (char *)v62;
GameToolbox::pointsToString((GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 91) + 392LL), v63);
v11 = (char *)v63 + 1;
if ( (v63[0] & 1) != 0 )
v11 = (char *)v64;
v12 = (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",
v6,
v7,
v8,
v9,
v10,
v11);
CString = (char *)cocos2d::CCString::getCString(v12);
v52 = nullptr;
v51[0] = 0;
v51[1] = 0;
v13 = strlen(CString);
std::string::__init(v51, CString, v13);
if ( (v63[0] & 1) != 0 )
operator delete(v64);
if ( (v61[0] & 1) != 0 )
operator delete(v62);
if ( (v59[0] & 1) != 0 )
operator delete(v60);
if ( (v57[0] & 1) != 0 )
operator delete(v58);
if ( (v55[0] & 1) != 0 )
operator delete(v56);
if ( (v53[0] & 1) != 0 )
operator delete(v54);
v14 = *((_QWORD *)this + 91);
v15 = (GameToolbox *)*(unsigned int *)(v14 + 400);
if ( (int)v15 > 0 )
{
v16 = (char *)v51 + 1;
if ( (v51[0] & 1) != 0 )
v16 = (const char *)v52;
GameToolbox::pointsToString(v15, v65);
v17 = (char *)v65 + 1;
if ( (v65[0] & 1) != 0 )
v17 = (char *)v66;
v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s\nCreator Points: %s",
v16,
v17);
v19 = (char *)cocos2d::CCString::getCString(v18);
std::string::assign(v51, v19);
if ( (v65[0] & 1) != 0 )
operator delete(v66);
v14 = *((_QWORD *)this + 91);
}
v20 = *(_BYTE *)(v14 + 536);
v21 = v14 + 536;
v67 = 0;
v68 = 0;
v69 = nullptr;
if ( (v20 & 1) != 0 )
{
std::string::__init(&v67, *(void **)(v14 + 552), *(_QWORD *)(v14 + 544));
}
else
{
v22 = *(_QWORD *)v21;
v23 = *(_QWORD *)(v14 + 544);
v69 = *(void **)(v21 + 16);
v67 = v22;
v68 = v23;
}
v24 = (unsigned __int8)v67 >> 1;
if ( (v67 & 1) != 0 )
{
v24 = v68;
operator delete(v69);
}
if ( !v24 )
goto LABEL_50;
v25 = (char *)v51 + 1;
if ( (v51[0] & 1) != 0 )
{
v42 = *((_QWORD *)this + 91);
v70 = 0;
v27 = v42 + 536;
v71 = 0;
LOBYTE(v42) = *(_BYTE *)(v42 + 536);
v72 = nullptr;
v25 = (const char *)v52;
if ( (v42 & 1) == 0 )
goto LABEL_45;
LABEL_71:
std::string::__init(&v70, *(void **)(v27 + 16), *(_QWORD *)(v27 + 8));
goto LABEL_46;
}
v26 = *((_QWORD *)this + 91);
v70 = 0;
v27 = v26 + 536;
v71 = 0;
LOBYTE(v26) = *(_BYTE *)(v26 + 536);
v72 = nullptr;
if ( (v26 & 1) != 0 )
goto LABEL_71;
LABEL_45:
v28 = *(_QWORD *)v27;
v29 = *(_QWORD *)(v27 + 8);
v72 = *(void **)(v27 + 16);
v70 = v28;
v71 = v29;
LABEL_46:
v30 = (char *)&v70 + 1;
if ( (v70 & 1) != 0 )
v30 = (char *)v72;
v31 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s\nDiscord: @%s",
v25,
v30);
v32 = (char *)cocos2d::CCString::getCString(v31);
std::string::assign(v51, v32);
if ( (v70 & 1) != 0 )
operator delete(v72);
LABEL_50:
v33 = (cocos2d::CCLabelBMFont *)((char *)&v45 + 1);
if ( (v45 & 1) != 0 )
v33 = v47;
v34 = (char *)v51 + 1;
if ( (v51[0] & 1) != 0 )
v34 = (const char *)v52;
v44 = (char *)v34;
v73[0] = 0;
v73[1] = 0;
v74 = nullptr;
v35 = strlen(v34);
std::string::__init(v73, v44, v35);
v36 = FLAlertLayer::create(0, v33, (char *)v73, (ButtonSprite *)"OK", nullptr, 300.0);
if ( (v73[0] & 1) != 0 )
operator delete(v74);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v36 + 1312LL))(v36);
if ( (v51[0] & 1) != 0 )
operator delete(v52);
if ( (v45 & 1) != 0 )
operator delete(v47);
return _stack_chk_guard;
}