//
// CommentCell::FLAlert_Clicked from 0x140154f10 to 0x1401550a5 (405 bytes)
//
// 2 xrefs:
// > ??> @ 0x14073ba30
// > ??> @ 0x140917918
//
// 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 11:27:19 +0000
//
// Hidden C++ exception states: #wind=3
void __fastcall CommentCell::FLAlert_Clicked(__int64 a1, __int64 a2, char a3)
{
__int64 v5; // rbx
__int64 v6; // rax
int v7; // eax
unsigned int v8; // edi
__int64 v9; // rcx
unsigned int *v10; // rdx
__int64 v11; // r9
__int64 v12; // r8
void *v13; // [rsp+38h] [rbp+10h]
void *v14; // [rsp+38h] [rbp+10h]
void *v15; // [rsp+38h] [rbp+10h]
if ( !(*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) )
{
if ( a3 )
{
v5 = a1 - 568;
v6 = *(_QWORD *)(a1 - 568 + 592);
if ( v6 )
{
v7 = *(_DWORD *)(v6 + 460);
switch ( v7 )
{
case 3:
v8 = 6;
break;
case 4:
v8 = 7;
break;
case 5:
v8 = 8;
break;
default:
v9 = *(_QWORD *)&qword_14090BFB0;
if ( *(_BYTE *)(v5 + 600) )
{
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v15 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v15);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v9 = *(_QWORD *)&qword_14090BFB0;
}
v10 = *(unsigned int **)(v5 + 592);
v11 = v10[101];
v12 = 1;
}
else
{
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v14 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v14);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v9 = *(_QWORD *)&qword_14090BFB0;
}
v10 = *(unsigned int **)(v5 + 592);
v11 = v10[99];
v12 = 0;
}
goto LABEL_20;
}
v9 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v13 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v13);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v9 = *(_QWORD *)&qword_14090BFB0;
}
v10 = *(unsigned int **)(v5 + 592);
v11 = v10[99];
v12 = v8;
LABEL_20:
GameLevelManager::deleteComment(v9, v10[96], v12, v11);
*(_BYTE *)(*(_QWORD *)(v5 + 592) + 440LL) = 1;
CommentCell::loadFromComment(v5, *(_QWORD *)(v5 + 592));
}
}
}
}