//
// ProfilePage::onStatInfo from 0xa59030 to 0xa594a8 (1144 bytes)
//
// 3 xrefs:
// > ??> @ 0x80638
// > ProfilePage::loadPageFromUserInfo @ 0xa59a9c
// > ??> @ 0x1543550
//
// 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:09 +0000
//
__int64 __fastcall ProfilePage::onStatInfo(ProfilePage *this, cocos2d::CCObject *a2)
{
__int64 v4; // x0
const char *v5; // x22
char *v6; // x2
cocos2d::CCString *v7; // x0
size_t v8; // x0
__int64 v9; // x0
__int64 v11; // x0
__int64 v12; // x1
_BOOL4 v13; // w22
__int64 v14; // x0
__int64 v15; // x1
__int64 v16; // x0
__int64 v17; // x0
__int64 v18; // x1
_BOOL4 v19; // w22
__int64 v20; // x0
__int64 v21; // x1
__int64 v22; // x20
__int64 v23; // x0
__int64 v24; // x1
_BOOL4 v25; // w22
__int64 v26; // x0
__int64 v27; // x1
char *CString; // [xsp+38h] [xbp+38h]
unsigned __int64 v29[2]; // [xsp+40h] [xbp+40h] BYREF
void *v30; // [xsp+50h] [xbp+50h]
unsigned __int64 v31[2]; // [xsp+58h] [xbp+58h] BYREF
void *v32; // [xsp+68h] [xbp+68h]
__int64 v33; // [xsp+70h] [xbp+70h] BYREF
__int64 v34; // [xsp+78h] [xbp+78h]
void *v35; // [xsp+80h] [xbp+80h]
if ( (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
v17 = *((_QWORD *)this + 91);
if ( !v17 )
return _stack_chk_guard;
v33 = 0;
v34 = 0;
v35 = nullptr;
if ( (*(_BYTE *)(v17 + 784) & 1) != 0 )
{
std::string::__init(&v33, *(void **)(v17 + 800), *(_QWORD *)(v17 + 792));
}
else
{
v18 = *(_QWORD *)(v17 + 792);
v33 = *(_QWORD *)(v17 + 784);
v34 = v18;
v35 = *(void **)(v17 + 800);
}
if ( (v33 & 1) != 0 )
{
v19 = v34 != 0;
operator delete(v35);
}
else
{
v19 = (int)(unsigned __int8)v33 >> 1 != 0;
}
if ( !v19 )
return _stack_chk_guard;
v20 = *((_QWORD *)this + 91);
v33 = 0;
v34 = 0;
v35 = nullptr;
if ( (*(_BYTE *)(v20 + 784) & 1) != 0 )
{
std::string::__init(&v33, *(void **)(v20 + 800), *(_QWORD *)(v20 + 792));
}
else
{
v21 = *(_QWORD *)(v20 + 792);
v33 = *(_QWORD *)(v20 + 784);
v34 = v21;
v35 = *(void **)(v20 + 800);
}
v16 = StarInfoPopup::createFromString((unsigned __int8 *)&v33);
}
else if ( (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) == 2 )
{
v11 = *((_QWORD *)this + 91);
if ( !v11 )
return _stack_chk_guard;
v33 = 0;
v34 = 0;
v35 = nullptr;
if ( (*(_BYTE *)(v11 + 808) & 1) != 0 )
{
std::string::__init(&v33, *(void **)(v11 + 824), *(_QWORD *)(v11 + 816));
}
else
{
v12 = *(_QWORD *)(v11 + 816);
v33 = *(_QWORD *)(v11 + 808);
v34 = v12;
v35 = *(void **)(v11 + 824);
}
if ( (v33 & 1) != 0 )
{
v13 = v34 != 0;
operator delete(v35);
}
else
{
v13 = (int)(unsigned __int8)v33 >> 1 != 0;
}
if ( !v13 )
return _stack_chk_guard;
v14 = *((_QWORD *)this + 91);
v33 = 0;
v34 = 0;
v35 = nullptr;
if ( (*(_BYTE *)(v14 + 808) & 1) != 0 )
{
std::string::__init(&v33, *(void **)(v14 + 824), *(_QWORD *)(v14 + 816));
}
else
{
v15 = *(_QWORD *)(v14 + 816);
v33 = *(_QWORD *)(v14 + 808);
v34 = v15;
v35 = *(void **)(v14 + 824);
}
v16 = StarInfoPopup::createFromStringMoons((unsigned __int8 *)&v33);
}
else
{
if ( (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) != 3 )
{
if ( (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) == 4 )
{
v4 = *((_QWORD *)this + 91);
if ( v4 )
{
v5 = (char *)v29 + 1;
GameToolbox::pointsToString((GameToolbox *)*(unsigned int *)(v4 + 712), v29);
if ( (v29[0] & 1) != 0 )
v5 = (const char *)v30;
GameToolbox::pointsToString((GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 91) + 716LL), v31);
v6 = (char *)v31 + 1;
if ( (v31[0] & 1) != 0 )
v6 = (char *)v32;
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Followers: %s\n"
"Following: %s\n"
"Follower counts update once per hour.\n"
"A new follow can take up to an hour to show.",
v5,
v6);
CString = (char *)cocos2d::CCString::getCString(v7);
v33 = 0;
v34 = 0;
v35 = nullptr;
v8 = strlen(CString);
std::string::__init(&v33, CString, v8);
v9 = FLAlertLayer::create(
0,
(cocos2d::CCLabelBMFont *)"Followers",
(char *)&v33,
(ButtonSprite *)"OK",
nullptr,
380.0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9);
if ( (v33 & 1) != 0 )
operator delete(v35);
if ( (v31[0] & 1) != 0 )
operator delete(v32);
if ( (v29[0] & 1) != 0 )
operator delete(v30);
}
}
return _stack_chk_guard;
}
v23 = *((_QWORD *)this + 91);
if ( !v23 )
return _stack_chk_guard;
v33 = 0;
v34 = 0;
v35 = nullptr;
if ( (*(_BYTE *)(v23 + 760) & 1) != 0 )
{
std::string::__init(&v33, *(void **)(v23 + 776), *(_QWORD *)(v23 + 768));
}
else
{
v24 = *(_QWORD *)(v23 + 768);
v33 = *(_QWORD *)(v23 + 760);
v34 = v24;
v35 = *(void **)(v23 + 776);
}
if ( (v33 & 1) != 0 )
{
v25 = v34 != 0;
operator delete(v35);
}
else
{
v25 = (int)(unsigned __int8)v33 >> 1 != 0;
}
if ( !v25 )
return _stack_chk_guard;
v26 = *((_QWORD *)this + 91);
v33 = 0;
v34 = 0;
v35 = nullptr;
if ( (*(_BYTE *)(v26 + 760) & 1) != 0 )
{
std::string::__init(&v33, *(void **)(v26 + 776), *(_QWORD *)(v26 + 768));
}
else
{
v27 = *(_QWORD *)(v26 + 768);
v33 = *(_QWORD *)(v26 + 760);
v34 = v27;
v35 = *(void **)(v26 + 776);
}
v16 = DemonInfoPopup::createFromString((unsigned __int8 *)&v33);
}
v22 = v16;
if ( (v33 & 1) != 0 )
operator delete(v35);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v22 + 1312LL))(v22);
return _stack_chk_guard;
}