//
// ProfilePage::FLAlert_Clicked from 0x4c6a30 to 0x4c6b1a (234 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ProfilePage::FLAlert_Clicked @ 0x4c6b2c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void ProfilePage::FLAlert_Clicked(ProfilePage *a1, FLAlertLayer *a2, bool a3)
{
GameLevelManager *v5; // r0
UploadActionPopup *v6; // r0
GameLevelManager *v7; // r0
_BOOL4 v8; // [sp+8h] [bp-8h] BYREF
v8 = a3;
if ( a3 )
{
if ( a2->getTag(a2) == 1 )
{
GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;
v5 = GameLevelManager::sharedState();
if ( !GameLevelManager::deleteSentFriendRequest(v5, a1->m_accountID) )
return;
sub_776584((int)&v8, "Removing Friend Request...");
v6 = (UploadActionPopup *)UploadActionPopup::create((char *)&a1->UploadPopupDelegate, (char *)&v8);
LABEL_8:
a1->m_popupDelegate = v6;
sub_774008(&v8);
a1->m_popupDelegate->show(a1->m_popupDelegate);
return;
}
if ( a2->getTag(a2) == 2 )
{
GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;
v7 = GameLevelManager::sharedState();
if ( !GameLevelManager::removeFriend(v7, a1->m_accountID) )
return;
sub_776584((int)&v8, "Removing Friend...");
v6 = (UploadActionPopup *)UploadActionPopup::create((char *)&a1->UploadPopupDelegate, (char *)&v8);
goto LABEL_8;
}
if ( a2->getTag(a2) == 3 )
{
GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;
ProfilePage::blockUser(a1);
}
}
}