//
// MemberListPopup::FLAlert_Clicked from 0x1400ed4b0 to 0x1400ed902 (1106 bytes)
//
// 3 xrefs:
// > ??> @ 0x140729a70
// > ??> @ 0x140914fd8
// > ??> @ 0x140914fe4
//
// 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:35 +0000
//
// Hidden C++ exception states: #wind=7
void __fastcall MemberListPopup::FLAlert_Clicked(__int64 a1, __int64 a2, char a3)
{
cocos2d::CCString *v6; // rax
const char *CString; // rax
__int64 v8; // rbx
size_t v9; // r8
__int64 v10; // rcx
char updated; // r14
void *v12; // rcx
__int64 v13; // rax
cocos2d::CCString *v14; // rax
const char *v15; // rax
size_t v16; // r8
__int64 v17; // rcx
char v18; // si
void *v19; // rcx
cocos2d::CCString *v20; // rax
const char *v21; // rax
size_t v22; // r8
__int64 v23; // rcx
char v24; // si
void *v25; // r8
void *v26; // [rsp+30h] [rbp-30h]
void *v27; // [rsp+30h] [rbp-30h]
void *v28; // [rsp+30h] [rbp-30h]
void *v29; // [rsp+30h] [rbp-30h]
void *Block[2]; // [rsp+38h] [rbp-28h] BYREF
__int64 v31; // [rsp+48h] [rbp-18h]
unsigned __int64 v32; // [rsp+50h] [rbp-10h]
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 4 )
{
if ( !a3 || *(int *)(a1 + 76) <= 0 )
goto LABEL_17;
v6 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8);
CString = cocos2d::CCString::getCString(v6);
*(_OWORD *)Block = 0;
v8 = 0;
v31 = 0;
v32 = 0;
v9 = -1;
do
++v9;
while ( CString[v9] );
sub_14003D230(Block, CString, v9);
v10 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v26 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v26);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v10 = *(_QWORD *)&qword_14090BFB0;
}
updated = GameLevelManager::updateThread(v10, *(unsigned int *)(*(_QWORD *)(a1 + 8) + 56LL), 6, Block);
if ( v32 <= 0xF )
{
LABEL_12:
if ( updated )
{
if ( a1 != 792 )
v8 = a1 - 16;
v13 = *(_QWORD *)&qword_14090BFB0;
if ( *(_QWORD *)&qword_14090BFB0 )
goto LABEL_34;
goto LABEL_33;
}
LABEL_17:
*(_DWORD *)(a1 + 76) = 0;
return;
}
v12 = Block[0];
if ( v32 + 1 < 0x1000
|| (v12 = *((void **)Block[0] - 1), (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) <= 0x1F) )
{
j_j_free(v12);
goto LABEL_12;
}
LABEL_46:
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 5 )
{
v8 = 0;
if ( a3 && *(int *)(a1 + 80) > 0 )
{
v14 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8);
v15 = cocos2d::CCString::getCString(v14);
*(_OWORD *)Block = 0;
v31 = 0;
v32 = 0;
v16 = -1;
do
++v16;
while ( v15[v16] );
sub_14003D230(Block, v15, v16);
v17 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v27 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v27);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v17 = *(_QWORD *)&qword_14090BFB0;
}
v18 = GameLevelManager::updateThread(v17, *(unsigned int *)(*(_QWORD *)(a1 + 8) + 56LL), 7, Block);
if ( v32 > 0xF )
{
v19 = Block[0];
if ( v32 + 1 >= 0x1000 )
{
v19 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v19 - 8) > 0x1F )
goto LABEL_46;
}
j_j_free(v19);
}
if ( v18 )
{
if ( a1 != 792 )
v8 = a1 - 16;
v13 = *(_QWORD *)&qword_14090BFB0;
if ( *(_QWORD *)&qword_14090BFB0 )
goto LABEL_34;
goto LABEL_33;
}
}
*(_DWORD *)(a1 + 80) = 0;
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 7 )
{
v8 = 0;
if ( a3 && *(int *)(a1 + 84) > 0 )
{
v20 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8);
v21 = cocos2d::CCString::getCString(v20);
*(_OWORD *)Block = 0;
v31 = 0;
v32 = 0;
v22 = -1;
do
++v22;
while ( v21[v22] );
sub_14003D230(Block, v21, v22);
v23 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v29 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v29);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v23 = *(_QWORD *)&qword_14090BFB0;
}
v24 = GameLevelManager::updateThread(v23, *(unsigned int *)(*(_QWORD *)(a1 + 8) + 56LL), 11, Block);
if ( v32 > 0xF )
{
v25 = Block[0];
if ( v32 + 1 >= 0x1000 )
{
v25 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v25 - 8) > 0x1F )
goto LABEL_46;
}
j_j_free(v25);
}
if ( v24 )
{
if ( a1 != 792 )
v8 = a1 - 16;
v13 = *(_QWORD *)&qword_14090BFB0;
if ( *(_QWORD *)&qword_14090BFB0 )
goto LABEL_34;
LABEL_33:
v28 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v28);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v13 = *(_QWORD *)&qword_14090BFB0;
LABEL_34:
*(_QWORD *)(v13 + 1392) = v8;
return;
}
}
*(_DWORD *)(a1 + 84) = 0;
}
}