//
// GJMessagePopup::FLAlert_Clicked from 0x5d9de8 to 0x5d9e92 (170 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJMessagePopup::FLAlert_Clicked @ 0x5d9ea0
//
// 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:54:11 +0000
//
GameLevelManager *__fastcall GJMessagePopup::FLAlert_Clicked(GJUserMessage **this, FLAlertLayer *a2, int a3, int a4)
{
GameLevelManager *result; // r0
int v6; // r1
int v7; // r2
int v8; // r3
GameLevelManager *v9; // r0
int v10; // r3
int v11; // r2
int v12; // r3
GJUserMessage **v13; // [sp+0h] [bp-10h] BYREF
FLAlertLayer *v14; // [sp+4h] [bp-Ch]
int v15; // [sp+8h] [bp-8h]
int v16; // [sp+Ch] [bp-4h]
v13 = this;
v14 = a2;
v15 = a3;
v16 = a4;
result = (GameLevelManager *)_stack_chk_guard;
if ( a3 )
{
result = (GameLevelManager *)(*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2);
if ( result == (GameLevelManager *)((char *)&dword_0 + 1) )
{
return (GameLevelManager *)GJMessagePopup::blockUser((GJMessagePopup *)this, v6, v7, v8);
}
else if ( result == (GameLevelManager *)((char *)&dword_0 + 2) )
{
v9 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)((char *)&dword_0 + 2));
result = (GameLevelManager *)GameLevelManager::deleteUserMessages(
v9,
*(this + 136),
nullptr,
(const char *)*((unsigned __int8 *)*(this + 136) + 325));
if ( result )
{
*(_DWORD *)(GameLevelManager::sharedState(result) + 888) = this + 130;
v10 = (int)*(this + 139);
if ( v10 )
*(_DWORD *)(v10 + 520) = 0;
v13 = nullptr;
v14 = nullptr;
v15 = 0;
std::string::__init((int *)&v13, "Deleting message...", 0x13u);
*(this + 139) = (GJUserMessage *)UploadActionPopup::create((int)(this + 131), (int)&v13, v11, v12);
std::string::~string((int)&v13);
return (GameLevelManager *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 139) + 656))(*(this + 139));
}
}
}
return result;
}