//
// ProfilePage::onInfo from 0x4c4438 to 0x4c46a6 (622 bytes)
//
// 0 xrefs:
//
// 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 ProfilePage::onInfo(ProfilePage *a1, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // r0
const char *v4; // r6
int v5; // r7
cocos2d::CCString *v6; // r0
char *CString; // r0
signed int m_creatorPoints; // r1
char *v9; // r9
cocos2d::CCString *v10; // r0
char *v11; // r0
int v12; // r9
char *v13; // r9
cocos2d::CCString *v14; // r0
char *v15; // r0
int v16; // r4
FLAlertLayer *v17; // r4
int v18; // [sp+18h] [bp-4Ch]
int v19; // [sp+1Ch] [bp-48h]
int v20; // [sp+20h] [bp-44h]
int v21; // [sp+28h] [bp-3Ch] BYREF
_BYTE v22[4]; // [sp+2Ch] [bp-38h] BYREF
char *v23; // [sp+30h] [bp-34h] BYREF
const char *v24; // [sp+34h] [bp-30h] BYREF
int v25; // [sp+38h] [bp-2Ch] BYREF
int v26; // [sp+3Ch] [bp-28h] BYREF
int v27; // [sp+40h] [bp-24h] BYREF
int v28; // [sp+44h] [bp-20h] BYREF
int v29; // [sp+48h] [bp-1Ch] BYREF
int v30; // [sp+4Ch] [bp-18h] BYREF
int v31; // [sp+50h] [bp-14h] BYREF
int v32; // [sp+54h] [bp-10h] BYREF
_BYTE v33[4]; // [sp+58h] [bp-Ch] BYREF
if ( a1->m_score )
{
v3 = GameLevelManager::sharedState();
GameLevelManager::tryGetUsername(
(GameLevelManager *)&v21,
(GameLevelManager_vtbl *)v3,
a1->m_score->m_accountID,
(int)a1->m_score);
if ( !*(_DWORD *)(v21 - 12) )
{
sub_775C20(v22);
sub_774794(&v21, v22);
sub_774008(v22);
}
if ( !*(_DWORD *)(v21 - 12) )
sub_7753D4((int)&v21, "-");
GameToolbox::pointsToString((GameToolbox *)&v24, a1->m_score->m_stars);
v4 = v24;
GameToolbox::pointsToString((GameToolbox *)&v25, a1->m_score->m_moons);
v5 = v25;
GameToolbox::pointsToString((GameToolbox *)&v26, a1->m_score->m_diamonds);
v18 = v26;
GameToolbox::pointsToString((GameToolbox *)&v27, a1->m_score->m_secretCoins);
v19 = v27;
GameToolbox::pointsToString((GameToolbox *)&v28, a1->m_score->m_userCoins);
v20 = v28;
GameToolbox::pointsToString((GameToolbox *)&v29, a1->m_score->m_demons);
v6 = (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",
v4,
v5,
v18,
v19,
v20,
v29);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_776584((int)&v23, CString);
sub_774008(&v29);
sub_774008(&v28);
sub_774008(&v27);
sub_774008(&v26);
sub_774008(&v25);
sub_774008(&v24);
m_creatorPoints = a1->m_score->m_creatorPoints;
if ( m_creatorPoints > 0 )
{
v9 = v23;
GameToolbox::pointsToString((GameToolbox *)&v30, m_creatorPoints);
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s\nCreator Points: %s",
v9,
v30);
v11 = (char *)cocos2d::CCString::getCString(v10);
sub_7753D4((int)&v23, v11);
sub_774008(&v30);
}
sub_775C20(&v31);
v12 = *(_DWORD *)(v31 - 12);
sub_774008(&v31);
if ( v12 )
{
v13 = v23;
sub_775C20(&v32);
v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s\nDiscord: @%s",
v13,
v32);
v15 = (char *)cocos2d::CCString::getCString(v14);
sub_7753D4((int)&v23, v15);
sub_774008(&v32);
}
v16 = v21;
sub_776584((int)v33, v23);
v17 = FLAlertLayer::create(0, v16, (int)v33, (int)"OK", 0, 300.0);
sub_774008(v33);
v17->show(v17);
sub_774008(&v23);
sub_774008(&v21);
}
}