//
// GJMessageCell::FLAlert_Clicked from 0x100242610 to 0x100242766 (342 bytes)
//
// 2 xrefs:
// > sub_100242780 @ 0x10024278c
// > ??> @ 0x100aee098
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:27:18 +0000
//
void __fastcall GJMessageCell::FLAlert_Clicked(_QWORD *a1, __int64 a2, int a3, double a4)
{
__int64 v5; // rax
__int64 v6; // rdi
__int64 v7; // rsi
__int64 v8; // rax
__int64 v9; // r14
__int64 v10; // rax
__int64 v11; // rax
int v12; // edx
__int64 v13; // rax
__int64 v14; // rax
__int64 v15; // rax
void *v16[5]; // [rsp+8h] [rbp-28h] BYREF
if ( a3 )
{
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
v5 = a1[72];
if ( v5 )
{
if ( !*(_BYTE *)(v5 + 424) )
{
*(_BYTE *)(v5 + 424) = 1;
v6 = a1[67];
v7 = 100;
v8 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 480LL))(v6, 100);
if ( v8 )
{
v6 = v8;
v7 = 0;
a4 = (*(double (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 344LL))(v8, 0);
}
v9 = GameLevelManager::sharedState(a4);
v10 = GJAccountManager::sharedState(v6, v7);
v11 = GameLevelManager::userInfoForAccountID(
v9,
(unsigned int)(*(_DWORD *)(v10 + 352) - *(_DWORD *)(v10 + 356)));
if ( v11 )
{
v12 = 1;
if ( *(int *)(v11 + 692) >= 2 )
v12 = *(_DWORD *)(v11 + 692);
*(_DWORD *)(v11 + 692) = v12 - 1;
}
}
v13 = GameLevelManager::sharedState(a4);
if ( (unsigned __int8)GameLevelManager::deleteUserMessages(v13, a1[72], 0, *(unsigned __int8 *)(a1[72] + 425LL)) )
{
*(_QWORD *)(GameLevelManager::sharedState(a4) + 1360) = a1 + 71;
v14 = a1[73];
if ( v14 )
*(_QWORD *)(v14 + 664) = 0;
strcpy((char *)v16, "&Deleting message...");
v15 = UploadActionPopup::create(a1 + 70, v16);
a1[73] = v15;
if ( ((__int64)v16[0] & 1) != 0 )
{
operator delete(v16[2]);
v15 = a1[73];
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 1312LL))(v15);
}
}
}
}
}