//
// FriendsProfilePage::FLAlert_Clicked from 0x5f480c to 0x5f48f2 (230 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'FriendsProfilePage::FLAlert_Clicked @ 0x5f4900
//
// 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:30 +0000
//
GameLevelManager *__fastcall FriendsProfilePage::FLAlert_Clicked(
GameLevelManager *this,
FLAlertLayer *a2,
int a3,
int a4)
{
GameLevelManager *v5; // r4
GameLevelManager *v6; // r0
GameLevelManager *v7; // r0
int v8; // r2
int v9; // r2
int v10; // r3
GameLevelManager *v11; // r0
GameLevelManager *v12; // [sp+0h] [bp-10h] BYREF
FLAlertLayer *v13; // [sp+4h] [bp-Ch]
int v14; // [sp+8h] [bp-8h]
int v15; // [sp+Ch] [bp-4h]
v12 = this;
v13 = a2;
v14 = a3;
v15 = a4;
v5 = this;
if ( a3 && *((_DWORD *)this + 157) )
{
if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 1 )
{
v6 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)((char *)&dword_0 + 1));
return (GameLevelManager *)GameLevelManager::followUserOnline(
v6,
*(const char **)(*((_DWORD *)v5 + 157) + 296),
0);
}
else if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 2 )
{
v7 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)((char *)&dword_0 + 2));
this = (GameLevelManager *)GameLevelManager::unblockUser(v7, *(const char **)(*((_DWORD *)v5 + 157) + 296));
if ( this )
{
*(_DWORD *)(GameLevelManager::sharedState(this) + 888) = (char *)v5 + 604;
v8 = *((_DWORD *)v5 + 158);
if ( v8 )
*(_DWORD *)(v8 + 520) = 0;
v12 = nullptr;
v13 = nullptr;
v14 = 0;
std::string::__init((int *)&v12, "Unblocking user...", 0x12u);
*((_DWORD *)v5 + 158) = UploadActionPopup::create((int)v5 + 608, (int)&v12, v9, v10);
std::string::~string((int)&v12);
return (GameLevelManager *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)v5 + 158) + 656))(*((_DWORD *)v5 + 158));
}
}
else
{
this = (GameLevelManager *)(*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2);
if ( this == (GameLevelManager *)((char *)&dword_0 + 3) )
{
v11 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)((char *)&dword_0 + 3));
return (GameLevelManager *)GameLevelManager::muteUser(v11, *(const char **)(*((_DWORD *)v5 + 157) + 296), 0);
}
}
}
return this;
}