//
// GJRequestCell::FLAlert_Clicked from 0x339764 to 0x33980c (168 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJRequestCell::FLAlert_Clicked @ 0x339818
//
// 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 GJRequestCell::FLAlert_Clicked(GJRequestCell *a1, FLAlertLayer *a2, bool a3)
{
GameLevelManager *v4; // r0
GJFriendRequest *v5; // r5
GameLevelManager *v6; // r0
std::string v7; // r2
UploadPopupDelegate v8; // [sp+8h] [bp-8h] BYREF
v8.__vftable = (UploadPopupDelegate_vtbl *)a3;
if ( a3 && a2->getTag(a2) == 1 )
{
if ( a1->m_score )
{
v4 = GameLevelManager::sharedState();
v5 = GameLevelManager::friendRequestFromAccountID(v4, a1->m_score->m_accountID);
if ( v5 )
{
GJRequestCell::markAsRead(a1);
GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;
v6 = GameLevelManager::sharedState();
if ( GameLevelManager::deleteFriendRequests(v6, v5->m_accountID, nullptr, 0) )
{
sub_776584((int)&v8, "Removing Friend Request...");
a1->m_popup = (UploadActionPopup *)UploadActionPopup::create(
(UploadActionPopup *)&a1->UploadPopupDelegate,
&v8,
v7);
sub_774008(&v8);
a1->m_popup->show(a1->m_popup);
}
}
}
}
}