//
// GJMessageCell::FLAlert_Clicked from 0x339fd8 to 0x33a07a (162 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJMessageCell::FLAlert_Clicked @ 0x33a088
//
// 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 GJMessageCell::FLAlert_Clicked(GJMessageCell *a1, FLAlertLayer *a2, bool a3)
{
GameLevelManager *v4; // r0
UploadActionPopup *m_popup; // r3
std::string v6; // r2
UploadPopupDelegate v7; // [sp+8h] [bp-8h] BYREF
v7.__vftable = (UploadPopupDelegate_vtbl *)a3;
if ( a3 && a2->getTag(a2) == 1 )
{
if ( a1->m_message )
{
GJMessageCell::markAsRead(a1);
v4 = GameLevelManager::sharedState();
if ( GameLevelManager::deleteUserMessages(v4, a1->m_message, nullptr, a1->m_message->m_outgoing) )
{
GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;
m_popup = a1->m_popup;
if ( m_popup )
m_popup->m_delegate = nullptr;
sub_776584((int)&v7, "Deleting message...");
a1->m_popup = (UploadActionPopup *)UploadActionPopup::create(
(UploadActionPopup *)&a1->UploadPopupDelegate,
&v7,
v6);
sub_774008(&v7);
a1->m_popup->show(a1->m_popup);
}
}
}
}