//
// GJMessageCell::FLAlert_Clicked from 0x4281ac to 0x428254 (168 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJMessageCell::FLAlert_Clicked @ 0x428260
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:48:05 +0000
//
GameLevelManager *__fastcall GJMessageCell::FLAlert_Clicked(GJUserMessage **this, FLAlertLayer *a2, int a3, int a4)
{
GameLevelManager *result; // r0
GameLevelManager *v6; // r0
GameLevelManager *v7; // r0
int v8; // r3
GJUserMessage **v9; // [sp+0h] [bp-10h] BYREF
FLAlertLayer *v10; // [sp+4h] [bp-Ch]
int v11; // [sp+8h] [bp-8h]
int v12; // [sp+Ch] [bp-4h]
v9 = this;
v10 = a2;
v11 = a3;
v12 = a4;
result = (GameLevelManager *)_stack_chk_guard;
if ( a3 )
{
result = (GameLevelManager *)(*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2);
if ( result == (GameLevelManager *)((char *)&dword_0 + 1) )
{
if ( *(this + 108) )
{
v6 = (GameLevelManager *)GJMessageCell::markAsRead((int)this);
v7 = (GameLevelManager *)GameLevelManager::sharedState(v6);
result = (GameLevelManager *)GameLevelManager::deleteUserMessages(
v7,
*(this + 108),
nullptr,
*((_BYTE *)*(this + 108) + 325));
if ( result )
{
*(_DWORD *)(GameLevelManager::sharedState(result) + 888) = this + 107;
v8 = (int)*(this + 109);
if ( v8 )
*(_DWORD *)(v8 + 520) = 0;
v9 = nullptr;
v10 = nullptr;
v11 = 0;
std::string::__init((int *)&v9, "Deleting message...", 0x13u);
*(this + 109) = (GJUserMessage *)UploadActionPopup::create(this + 106, &v9);
std::string::~string((int)&v9);
return (GameLevelManager *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 109) + 656))(*(this + 109));
}
}
}
}
return result;
}