//
// ProfilePage::onAdminPanel from 0x1008a2bd0 to 0x1008a2c91 (193 bytes)
//
// 1 xrefs:
// > ProfilePage::setupAccountButtons @ 0x1008a2033
//
// 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 12:37:15 +0000
//
void __fastcall ProfilePage::onAdminPanel(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rax
__int64 v3; // rdx
unsigned int v4; // r14d
__int64 v5; // rax
__int128 v6; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
v1 = *(_QWORD *)(a1 + 728);
if ( v1 )
{
if ( *(int *)(v1 + 376) > 0 )
{
v2 = GameManager::sharedState();
if ( *(_DWORD *)(v2 + 1032) - *(_DWORD *)(v2 + 1036) == 2 )
{
v3 = *(_QWORD *)(a1 + 728);
v4 = *(_DWORD *)(v3 + 376);
if ( (*(_BYTE *)(v3 + 320) & 1) != 0 )
{
sub_10001AD30(&v6, *(const void **)(v3 + 336), *(_QWORD *)(v3 + 328));
v3 = *(_QWORD *)(a1 + 728);
}
else
{
__p = *(void **)(v3 + 336);
v6 = *(_OWORD *)(v3 + 320);
}
v5 = sub_1009945B0(v4, &v6, v3);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
if ( (v6 & 1) != 0 )
operator delete(__p);
}
}
}
}