//
// ProfilePage::FLAlert_Clicked from 0x1008a5770 to 0x1008a5942 (466 bytes)
//
// 2 xrefs:
// > sub_1008A5970 @ 0x1008a597c
// > ??> @ 0x100ba9b98
//
// This function is hookable on this platform (idp: pc, 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 12:37:16 +0000
//
void __fastcall ProfilePage::FLAlert_Clicked(__int64 a1, __int64 a2, int a3)
{
__int64 v4; // rax
char *v5; // rax
char *v6; // rdi
__int64 v7; // rax
__int128 v8; // [rsp+8h] [rbp-48h] BYREF
char *v9; // [rsp+18h] [rbp-38h]
__int128 v10[3]; // [rsp+20h] [rbp-30h] BYREF
if ( a3 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1352) = a1 + 688;
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = a1 + 696;
v4 = GameLevelManager::sharedState();
if ( !(unsigned __int8)GameLevelManager::deleteSentFriendRequest(v4, *(unsigned int *)(a1 + 736)) )
return;
v9 = (char *)operator new(0x20u);
*(_QWORD *)&v8 = 33;
*((_QWORD *)&v8 + 1) = 26;
strcpy(v9, "Removing Friend Request...");
v5 = UploadActionPopup::create(a1 + 704, &v8);
*(_QWORD *)(a1 + 872) = v5;
if ( (v8 & 1) == 0 )
goto LABEL_11;
v6 = v9;
LABEL_10:
operator delete(v6);
v5 = *(char **)(a1 + 872);
LABEL_11:
(*(void (__fastcall **)(char *))(*(_QWORD *)v5 + 1312LL))(v5);
return;
}
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 2 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = a1 + 696;
v7 = GameLevelManager::sharedState();
if ( !sub_10057BAC0(v7, *(_DWORD *)(a1 + 736)) )
return;
strcpy((char *)v10, "$Removing Friend...");
v5 = UploadActionPopup::create(a1 + 704, v10);
*(_QWORD *)(a1 + 872) = v5;
if ( (v10[0] & 1) == 0 )
goto LABEL_11;
v6 = *(char **)&v10[1];
goto LABEL_10;
}
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 3 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = a1 + 696;
ProfilePage::blockUser(a1);
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 4 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = a1 + 696;
sub_1008A5340(a1);
}
}
}