//
// ProfilePage::onAdminPanel from 0x140557880 to 0x140557964 (228 bytes)
//
// 2 xrefs:
// > ProfilePage::setupAccountButtons @ 0x1405529a5
// > ??> @ 0x14092beec
//
// This function is hookable on this platform (idp: pc, 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 11:34:11 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall ProfilePage::onAdminPanel(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rcx
_QWORD *v4; // rax
void *v5; // [rsp+20h] [rbp-38h]
_BYTE v6[32]; // [rsp+28h] [rbp-30h] BYREF
v2 = *(_QWORD *)(a1 + 728);
if ( v2 && *(int *)(v2 + 392) > 0 )
{
v3 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v5 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v3 = qword_14090BFD0;
}
if ( *(_DWORD *)(v3 + 1064) - *(_DWORD *)(v3 + 1068) == 2 )
{
sub_14003F4F0((__int64)v6, *(_QWORD *)(a1 + 728) + 320LL);
v4 = AccountReviewPopup::create(*(_DWORD *)(*(_QWORD *)(a1 + 728) + 392LL), (__int64)v6, *(_QWORD *)(a1 + 728));
(*(void (__fastcall **)(_QWORD *))(*v4 + 1064LL))(v4);
sub_14003D310((__int64)v6);
}
}
}