//
// sub_10022D964 from 0x10022d964 to 0x10022da1c (184 bytes)
//
// 1 xrefs:
// > ProfilePage::setupAccountButtons @ 0x10022d5a8
//
// 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_10022D964(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x19
__int64 v4; // x8
__int64 v5; // x0
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v7; // [xsp+10h] [xbp-20h]
v2 = GJAccountManager::sharedState(a1);
if ( *(_DWORD *)(v2 + 352) <= *(_DWORD *)(v2 + 356) )
{
v5 = GJAccountManager::sharedState(v2);
GJAccountManager::showAccountNeededAlert(v5, "send messages");
}
else
{
v3 = *(unsigned int *)(a1 + 736);
v4 = *(_QWORD *)(a1 + 728);
if ( v4 )
{
if ( *(char *)(v4 + 343) < 0 )
{
sub_1000097D0(__p, *(void **)(v4 + 320), *(_QWORD *)(v4 + 328));
}
else
{
*(_OWORD *)__p = *(_OWORD *)(v4 + 320);
v7 = *(_QWORD *)(v4 + 336);
}
}
else
{
sub_100009900(__p, "");
}
sub_10050C6F4(v3, __p);
if ( SHIBYTE(v7) < 0 )
operator delete(__p[0]);
}
}