//
// ProfilePage::onModInfo from 0xa53850 to 0xa5399c (332 bytes)
//
// 3 xrefs:
// > ??> @ 0xdf810
// > ProfilePage::loadPageFromUserInfo @ 0xa5a8bc
// > ??> @ 0x1546b50
//
// 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:06 +0000
//
__int64 __fastcall ProfilePage::onModInfo(ProfilePage *this, cocos2d::CCObject *a2)
{
__int64 v2; // x0
int v3; // w0
const char *v4; // x1
char *v5; // x22
size_t v6; // x21
unsigned __int64 v7; // x0
__int64 v8; // x19
__int64 v9; // x19
const char *v11; // [xsp+38h] [xbp+38h]
_QWORD v12[2]; // [xsp+40h] [xbp+40h] BYREF
void *v13; // [xsp+50h] [xbp+50h]
v2 = *((_QWORD *)this + 91);
if ( v2 )
{
v3 = *(_DWORD *)(v2 + 680);
if ( v3 == 2 )
{
v4 = "Moderators can suggest levels for a rating, respond to in-game reports, delete comments, "
"ban players from posting, delete or relist levels, unlock levels for updating, and add Newgro"
"unds artists.\n"
"--------------------\n"
"Moderators cannot rate levels.\n"
"All ratings are decided by RobTop.";
v5 = "Moderator";
}
else if ( v3 == 3 )
{
v4 = "Leaderboard Moderators review player stats and remove invalid scores from the leaderboards.\n"
"--------------------\n"
"Leaderboard Moderators can only manage the leaderboards.\n"
"They cannot rate levels or moderate content.";
v5 = "Leaderboard Moderator";
}
else
{
v4 = "Advisors can suggest levels for a rating, with a difficulty and a tier: Rate, Feature"
", Epic, Legendary or Mythic. Advisor votes also carry extra weight when deciding "
"demon difficulty.\n"
"--------------------\n"
"Advisors cannot rate levels or moderate content.\n"
"All ratings are decided by RobTop.";
v5 = "Rating Advisor";
}
v11 = v4;
v6 = strlen(v4);
v7 = (v6 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v8 = v7 | 1;
v12[1] = v6;
v13 = (void *)operator new(v7);
v12[0] = v8;
*((_BYTE *)memcpy(v13, v11, v6) + v6) = 0;
v9 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)v5, (char *)v12, (ButtonSprite *)"OK", nullptr, 380.0);
if ( (v12[0] & 1) != 0 )
operator delete(v13);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9);
}
return _stack_chk_guard;
}