//
// ProfilePage::FLAlert_Clicked from 0x10022fec4 to 0x100230044 (384 bytes)
//
// 2 xrefs:
// > sub_100230078 @ 0x10023007c
// > ??> @ 0x1008ff6c0
//
// 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:16 +0000
//
__int64 __fastcall ProfilePage::FLAlert_Clicked(__int64 result, __int64 a2, int a3)
{
__int64 v4; // x19
__int64 v5; // x0
__int64 v6; // x0
void *v7; // x0
__int64 v8; // x0
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
char v10; // [xsp+17h] [xbp-29h]
_QWORD v11[2]; // [xsp+18h] [xbp-28h] BYREF
char v12; // [xsp+2Fh] [xbp-11h]
if ( a3 )
{
v4 = result;
*(_QWORD *)(GameLevelManager::sharedState() + 1352) = result + 688;
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = v4 + 696;
v5 = GameLevelManager::sharedState();
result = sub_1000C9D5C(v5, *(unsigned int *)(v4 + 736));
if ( !(_DWORD)result )
return result;
sub_100009900(v11, "Removing Friend Request...");
v6 = UploadActionPopup::create(v4 + 704, v11);
*(_QWORD *)(v4 + 872) = v6;
if ( (v12 & 0x80000000) == 0 )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
v7 = (void *)v11[0];
LABEL_10:
operator delete(v7);
v6 = *(_QWORD *)(v4 + 872);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
}
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 2 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = v4 + 696;
v8 = GameLevelManager::sharedState();
result = sub_1000CA864(v8, *(_DWORD *)(v4 + 736));
if ( !(_DWORD)result )
return result;
sub_100009900(__p, "Removing Friend...");
v6 = UploadActionPopup::create(v4 + 704, __p);
*(_QWORD *)(v4 + 872) = v6;
if ( (v10 & 0x80000000) == 0 )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
v7 = __p[0];
goto LABEL_10;
}
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 3 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = v4 + 696;
return sub_10022FAFC(v4);
}
else
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 4 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = v4 + 696;
return sub_10022FB90(v4);
}
}
}
return result;
}