//
// FriendsProfilePage::FLAlert_Clicked from 0xa51584 to 0xa5170c (392 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'FriendsProfilePage::FLAlert_Clicked @ 0xa51710
// > ??> @ 0xdc420
// > ??> @ 0x148c690
//
// 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 13:00:05 +0000
//
__int64 __fastcall FriendsProfilePage::FLAlert_Clicked(FriendsProfilePage *this, FLAlertLayer *a2, char a3)
{
GameLevelManager *v4; // x0
GameLevelManager *v5; // x0
GameLevelManager *v6; // x0
GameLevelManager *v8; // x0
GameLevelManager *v9; // x0
GameLevelManager *v10; // x0
__int64 v11; // x0
__int64 v12; // x0
char v13; // w1
GameLevelManager *v14; // x0
__int64 v16[2]; // [xsp+40h] [xbp+40h] BYREF
void *v17; // [xsp+50h] [xbp+50h]
if ( a3 && *((_QWORD *)this + 105) )
{
v4 = (GameLevelManager *)(*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)v4 == 1 )
{
v14 = (GameLevelManager *)GameLevelManager::sharedState(v4);
GameLevelManager::followUserOnline(v14, (const char *)*(unsigned int *)(*((_QWORD *)this + 105) + 376LL), 0);
}
else
{
v5 = (GameLevelManager *)(*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)v5 == 2 )
{
v9 = (GameLevelManager *)GameLevelManager::sharedState(v5);
v10 = (GameLevelManager *)(unsigned __int8)GameLevelManager::unblockUser(
v9,
(const char *)*(unsigned int *)(*((_QWORD *)this + 105) + 376LL));
if ( (_BYTE)v10 )
{
*(_QWORD *)(GameLevelManager::sharedState(v10) + 1360) = (char *)this + 792;
v11 = *((_QWORD *)this + 106);
if ( v11 )
*(_QWORD *)(v11 + 664) = 0;
v16[0] = 0;
v16[1] = 0;
v17 = nullptr;
std::string::__init(v16, "Unblocking user...", 0x12u);
v12 = UploadActionPopup::create((__int64)this + 800, (char *)v16);
v13 = v16[0];
*((_QWORD *)this + 106) = v12;
if ( (v13 & 1) != 0 )
{
operator delete(v17);
v12 = *((_QWORD *)this + 106);
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 1312LL))(v12);
}
}
else
{
v6 = (GameLevelManager *)(*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)v6 == 3 )
{
v8 = (GameLevelManager *)GameLevelManager::sharedState(v6);
GameLevelManager::muteUser(v8, (const char *)*(unsigned int *)(*((_QWORD *)this + 105) + 376LL), 0);
}
}
}
}
return _stack_chk_guard;
}