//
// ProfilePage::onAdminPanel from 0xa55b34 to 0xa55c40 (268 bytes)
//
// 3 xrefs:
// > ??> @ 0xa0c60
// > ProfilePage::setupAccountButtons @ 0xa54138
// > ??> @ 0x1544790
//
// 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:07 +0000
//
__int64 __fastcall ProfilePage::onAdminPanel(ProfilePage *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
GameManager *v4; // x0
__int64 v5; // x0
__int64 v7; // x2
char v8; // w0
unsigned int v9; // w22
__int64 v10; // x0
__int64 v11; // x1
__int64 v12; // x0
__int64 v13; // [xsp+30h] [xbp+30h] BYREF
__int64 v14; // [xsp+38h] [xbp+38h]
void *v15; // [xsp+40h] [xbp+40h]
v3 = *((_QWORD *)this + 91);
if ( v3 )
{
v4 = (GameManager *)*(unsigned int *)(v3 + 376);
if ( (int)v4 > 0 )
{
v5 = GameManager::sharedState(v4);
if ( *(_DWORD *)(v5 + 1032) - *(_DWORD *)(v5 + 1036) == 2 )
{
v7 = *((_QWORD *)this + 91);
v13 = 0;
v14 = 0;
v8 = *(_BYTE *)(v7 + 320);
v15 = nullptr;
v9 = *(_DWORD *)(v7 + 376);
if ( (v8 & 1) != 0 )
{
std::string::__init(&v13, *(void **)(v7 + 336), *(_QWORD *)(v7 + 328));
}
else
{
v10 = *(_QWORD *)(v7 + 320);
v11 = *(_QWORD *)(v7 + 328);
v15 = *(void **)(v7 + 336);
v13 = v10;
v14 = v11;
}
v12 = AccountReviewPopup::create(v9, &v13);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 1312LL))(v12);
if ( (v13 & 1) != 0 )
operator delete(v15);
}
}
}
return _stack_chk_guard;
}