//
// sub_10022DD24 from 0x10022dd24 to 0x10022de48 (292 bytes)
//
// 1 xrefs:
// > ProfilePage::setupAccountButtons @ 0x10022d4f0
//
// 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_10022DD24(__int64 a1)
{
__int64 v2; // x8
void **v3; // x8
__int64 v4; // x0
char *CString; // x0
char *v6; // x1
__int64 v7; // x19
void *v8[2]; // [xsp+8h] [xbp-58h] BYREF
char v9; // [xsp+1Fh] [xbp-41h]
void *__p[2]; // [xsp+20h] [xbp-40h] BYREF
__int64 v11; // [xsp+30h] [xbp-30h]
void *v12[2]; // [xsp+38h] [xbp-28h] BYREF
char v13; // [xsp+4Fh] [xbp-11h]
v2 = *(_QWORD *)(a1 + 728);
if ( *(char *)(v2 + 343) < 0 )
{
sub_1000097D0(__p, *(void **)(v2 + 320), *(_QWORD *)(v2 + 328));
}
else
{
*(_OWORD *)__p = *(_OWORD *)(v2 + 320);
v11 = *(_QWORD *)(v2 + 336);
}
v3 = __p;
if ( v11 < 0 )
v3 = (void **)__p[0];
v4 = sub_1003065B0("Are you sure you want to unblock %s?", (const char *)v3);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_100009900(v12, CString);
if ( SHIBYTE(v11) < 0 )
operator delete(__p[0]);
if ( v13 >= 0 )
v6 = (char *)v12;
else
v6 = (char *)v12[0];
sub_100009900(v8, v6);
v7 = FLAlertLayer::create_1(a1 + 664, "Unblock user", v8, "Back", "Unblock", 300.0);
if ( v9 < 0 )
operator delete(v8[0]);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 72LL))(v7, 4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);
if ( v13 < 0 )
operator delete(v12[0]);
}