//
// GJRequestCell::FLAlert_Clicked from 0x100112294 to 0x100112360 (204 bytes)
//
// 2 xrefs:
// > sub_10011237C @ 0x100112380
// > ??> @ 0x10078d5d8
//
// 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 GJRequestCell::FLAlert_Clicked(GJRequestCell *a1, FLAlertLayer *a2, bool a3)
{
GameLevelManager *v4; // x0
GJFriendRequest *v5; // x0
GJFriendRequest *v6; // x20
GameLevelManager *v7; // x0
UploadActionPopup *m_popup; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v10; // [xsp+1Fh] [xbp-11h]
if ( a3 && ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) == 1 )
{
if ( a1->m_score )
{
v4 = GameLevelManager::sharedState();
v5 = GameLevelManager::friendRequestFromAccountID(v4, a1->m_score->m_accountID);
if ( v5 )
{
v6 = v5;
GJRequestCell::markAsRead(a1);
GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;
v7 = GameLevelManager::sharedState();
if ( GameLevelManager::deleteFriendRequests(v7, v6->m_accountID, nullptr, 0) )
{
sub_100009900(__p, "Removing Friend Request...");
m_popup = (UploadActionPopup *)UploadActionPopup::create(&a1->UploadPopupDelegate, __p);
a1->m_popup = m_popup;
if ( v10 < 0 )
{
operator delete(__p[0]);
m_popup = a1->m_popup;
}
((void (__fastcall *)(UploadActionPopup *))m_popup->show)(m_popup);
}
}
}
}
}