//
// GJMessageCell::FLAlert_Clicked from 0x100112948 to 0x100112a08 (192 bytes)
//
// 2 xrefs:
// > sub_100112A24 @ 0x100112a28
// > ??> @ 0x10078dbb8
//
// 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 GJMessageCell::FLAlert_Clicked(GJMessageCell *a1, FLAlertLayer *a2, bool a3)
{
GameLevelManager *v4; // x0
UploadActionPopup *m_popup; // x8
UploadActionPopup *v6; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
if ( a3 && ((unsigned int (__fastcall *)(FLAlertLayer *))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_100009900(__p, "Deleting message...");
v6 = (UploadActionPopup *)UploadActionPopup::create(&a1->UploadPopupDelegate, __p);
a1->m_popup = v6;
if ( v8 < 0 )
{
operator delete(__p[0]);
v6 = a1->m_popup;
}
((void (__fastcall *)(UploadActionPopup *))v6->show)(v6);
}
}
}
}