//
// InvitesPopup::FLAlert_Clicked from 0x1400f9730 to 0x1400f98b6 (390 bytes)
//
// 2 xrefs:
// > ??> @ 0x14072b4d0
// > ??> @ 0x1409153e0
//
// 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:26:39 +0000
//
// Hidden C++ exception states: #wind=3
void __fastcall InvitesPopup::FLAlert_Clicked(__int64 a1, __int64 a2, char a3)
{
__int64 v5; // rbx
__int64 v6; // rcx
char updated; // bp
void *v8; // r8
__int64 v9; // rax
void *v10; // [rsp+30h] [rbp-48h]
void *v11; // [rsp+30h] [rbp-48h]
void *Block[2]; // [rsp+38h] [rbp-40h] BYREF
__int64 v13; // [rsp+48h] [rbp-30h]
unsigned __int64 v14; // [rsp+50h] [rbp-28h]
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 6 )
{
if ( !a3 || *(int *)(a1 + 24) <= 0 )
goto LABEL_17;
*(_OWORD *)Block = 0;
v5 = 0;
v13 = 0;
v14 = 15;
LOBYTE(Block[0]) = 0;
v6 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v10 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v10);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v6 = *(_QWORD *)&qword_14090BFB0;
}
updated = GameLevelManager::updateThread(v6, *(unsigned int *)(a1 + 24), 9, Block);
if ( v14 > 0xF )
{
v8 = Block[0];
if ( v14 + 1 >= 0x1000 )
{
v8 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v8);
}
if ( updated )
{
if ( a1 != 784 )
v5 = a1 - 8;
v9 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v11 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v11);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v9 = *(_QWORD *)&qword_14090BFB0;
}
*(_QWORD *)(v9 + 1392) = v5;
}
else
{
LABEL_17:
*(_DWORD *)(a1 + 24) = 0;
}
}
}