//
// sub_10022DE90 from 0x10022de90 to 0x10022e000 (368 bytes)
//
// 1 xrefs:
// > ProfilePage::setupAccountButtons @ 0x10022d6d8
//
// 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_10022DE90(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x8
__int64 v4; // x0
const char *p_dst; // x8
__int64 v6; // x0
char *CString; // x0
char *v8; // x1
__int64 *v9; // x19
void *__p[2]; // [xsp+10h] [xbp-60h] BYREF
char v11; // [xsp+27h] [xbp-49h]
void *v12[2]; // [xsp+28h] [xbp-48h] BYREF
char v13; // [xsp+3Fh] [xbp-31h]
__int128 __dst; // [xsp+40h] [xbp-30h] BYREF
__int64 v15; // [xsp+50h] [xbp-20h]
v2 = GJAccountManager::sharedState(a1);
if ( *(_DWORD *)(v2 + 352) <= *(_DWORD *)(v2 + 356) )
{
v4 = GJAccountManager::sharedState(v2);
GJAccountManager::showAccountNeededAlert(v4, "block users");
}
else
{
v3 = *(_QWORD *)(a1 + 728);
if ( *(char *)(v3 + 343) < 0 )
{
sub_1000097D0(&__dst, *(void **)(v3 + 320), *(_QWORD *)(v3 + 328));
}
else
{
__dst = *(_OWORD *)(v3 + 320);
v15 = *(_QWORD *)(v3 + 336);
}
p_dst = (const char *)&__dst;
if ( v15 < 0 )
p_dst = (const char *)__dst;
v6 = sub_1003065B0(
"Are you sure you want to block %s?\n"
"%s will no longer be able to:\n"
"- View your profile\n"
"- Send messages\n"
"- Send friend requests\n"
"- Messages from this user will be removed\n"
"You will leave group chats they own or group chats with only the two of you. Other shared group chats"
" are not affected.",
p_dst,
p_dst);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_100009900(v12, CString);
if ( v13 >= 0 )
v8 = (char *)v12;
else
v8 = (char *)v12[0];
sub_100009900(__p, v8);
v9 = (__int64 *)FLAlertLayer::create(a1 + 664, "Confirm Block", __p, "Back", "Block", 0, 380.0, 0.0, 1.0);
if ( v11 < 0 )
operator delete(__p[0]);
ButtonSprite::updateBGImage(v9[77], (__int64)"GJ_button_06.png");
(*(void (__fastcall **)(__int64 *, __int64))(*v9 + 72))(v9, 3);
(*(void (__fastcall **)(__int64 *))(*v9 + 1312))(v9);
if ( v13 < 0 )
operator delete(v12[0]);
if ( SHIBYTE(v15) < 0 )
operator delete((void *)__dst);
}
}