//
// ProfilePage::FLAlert_Clicked from 0x1007bf3d0 to 0x1007bf562 (402 bytes)
//
// 2 xrefs:
// > sub_1007BF590 @ 0x1007bf59c
// > ??> @ 0x100994298
//
// 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 __fastcall ProfilePage::FLAlert_Clicked(ProfilePage *a1, FLAlertLayer *a2, bool a3)
{
GameLevelManager *v4; // rax
UploadActionPopup *m_popupDelegate; // rax
char *v6; // rdi
GameLevelManager *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 )
{
if ( ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) == 1 )
{
GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;
v4 = GameLevelManager::sharedState();
if ( !GameLevelManager::deleteSentFriendRequest(v4, a1->m_accountID) )
return;
v9 = (char *)operator new(0x20u);
*(_QWORD *)&v8 = 33;
*((_QWORD *)&v8 + 1) = 26;
strcpy(v9, "Removing Friend Request...");
m_popupDelegate = (UploadActionPopup *)UploadActionPopup::create((__int64)&a1->UploadPopupDelegate, &v8);
a1->m_popupDelegate = m_popupDelegate;
if ( (v8 & 1) == 0 )
goto LABEL_11;
v6 = v9;
LABEL_10:
operator delete(v6);
m_popupDelegate = a1->m_popupDelegate;
LABEL_11:
((void (__fastcall *)(UploadActionPopup *))m_popupDelegate->show)(m_popupDelegate);
return;
}
if ( ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) == 2 )
{
GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;
v7 = GameLevelManager::sharedState();
if ( !GameLevelManager::removeFriend(v7, a1->m_accountID) )
return;
strcpy((char *)v10, "$Removing Friend...");
m_popupDelegate = (UploadActionPopup *)UploadActionPopup::create((__int64)&a1->UploadPopupDelegate, v10);
a1->m_popupDelegate = m_popupDelegate;
if ( (v10[0] & 1) == 0 )
goto LABEL_11;
v6 = *(char **)&v10[1];
goto LABEL_10;
}
if ( ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) == 3 )
{
GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;
ProfilePage::blockUser(a1);
}
}
}