//
// ProfilePage::FLAlert_Clicked from 0x5f7058 to 0x5f7182 (298 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ProfilePage::FLAlert_Clicked @ 0x5f7194
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:32 +0000
//
GameLevelManager *__fastcall ProfilePage::FLAlert_Clicked(GameLevelManager *this, FLAlertLayer *a2, int a3, int a4)
{
GameLevelManager *v5; // r4
GameLevelManager *v6; // r0
GameLevelManager *v7; // r0
int v8; // r2
int v9; // r3
int v10; // r0
GameLevelManager *v11; // r0
GameLevelManager *v12; // r0
int v13; // r2
int v14; // r3
int v15; // r1
int v16; // r2
int v17; // r1
int v18; // r2
GameLevelManager *v19; // [sp+0h] [bp-10h] BYREF
FLAlertLayer *v20; // [sp+4h] [bp-Ch]
int v21; // [sp+8h] [bp-8h]
int v22; // [sp+Ch] [bp-4h]
v19 = this;
v20 = a2;
v21 = a3;
v22 = a4;
v5 = this;
if ( a3 )
{
*(_DWORD *)(GameLevelManager::sharedState(this) + 884) = (char *)this + 532;
if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 1 )
{
v6 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)((char *)&dword_0 + 1));
*((_DWORD *)v6 + 222) = (char *)v5 + 536;
v7 = (GameLevelManager *)GameLevelManager::sharedState(v6);
this = (GameLevelManager *)GameLevelManager::deleteSentFriendRequest(v7, *((const char **)v5 + 139));
if ( !this )
return this;
v19 = nullptr;
v20 = nullptr;
v21 = 0;
std::string::__init((int *)&v19, "Removing Friend Request...", 0x1Au);
v10 = UploadActionPopup::create((int)v5 + 540, (int)&v19, v8, v9);
LABEL_8:
*((_DWORD *)v5 + 159) = v10;
std::string::~string((int)&v19);
return (GameLevelManager *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)v5 + 159) + 656))(*((_DWORD *)v5 + 159));
}
if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 2 )
{
v11 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)((char *)&dword_0 + 2));
*((_DWORD *)v11 + 222) = (char *)v5 + 536;
v12 = (GameLevelManager *)GameLevelManager::sharedState(v11);
this = (GameLevelManager *)GameLevelManager::removeFriend(v12, *((const char **)v5 + 139));
if ( !this )
return this;
v19 = nullptr;
v20 = nullptr;
v21 = 0;
std::string::__init((int *)&v19, "Removing Friend...", 0x12u);
v10 = UploadActionPopup::create((int)v5 + 540, (int)&v19, v13, v14);
goto LABEL_8;
}
if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 3 )
{
*(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)((char *)&dword_0 + 3)) + 888) = (char *)v5 + 536;
return (GameLevelManager *)ProfilePage::blockUser(v5, v15, v16, (int)v5 + 536);
}
else
{
this = (GameLevelManager *)(*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2);
if ( this == (GameLevelManager *)byte_4 )
{
*(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)byte_4) + 888) = (char *)v5 + 536;
return (GameLevelManager *)ProfilePage::unblockUser(v5, v17, v18, (int)v5 + 536);
}
}
}
return this;
}