//
// sub_10022E080 from 0x10022e080 to 0x10022e12c (172 bytes)
//
// 1 xrefs:
// > ProfilePage::setupAccountButtons @ 0x10022d7ec
//
// 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 11:01:15 +0000
//
void __fastcall sub_10022E080(__int64 a1)
{
__int64 v1; // x8
__int64 v3; // x0
__int64 v4; // x2
__int64 v5; // x20
__int64 v6; // x0
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v8; // [xsp+10h] [xbp-20h]
v1 = *(_QWORD *)(a1 + 728);
if ( v1 )
{
if ( *(int *)(v1 + 376) >= 1 )
{
v3 = GameManager::sharedState(a1);
if ( *(_DWORD *)(v3 + 1032) - *(_DWORD *)(v3 + 1036) == 2 )
{
v4 = *(_QWORD *)(a1 + 728);
v5 = *(unsigned int *)(v4 + 376);
if ( *(char *)(v4 + 343) < 0 )
{
sub_1000097D0(__p, *(void **)(v4 + 320), *(_QWORD *)(v4 + 328));
v4 = *(_QWORD *)(a1 + 728);
}
else
{
*(_OWORD *)__p = *(_OWORD *)(v4 + 320);
v8 = *(_QWORD *)(v4 + 336);
}
v6 = AccountReviewPopup::create(v5, __p, v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
if ( SHIBYTE(v8) < 0 )
operator delete(__p[0]);
}
}
}
}