//
// MemberListPopup::FLAlert_Clicked from 0x1005081c8 to 0x1005083b8 (496 bytes)
//
// 2 xrefs:
// > sub_1005083DC @ 0x1005083e0
// > ??> @ 0x100998180
//
// This function is hookable on this platform (idp: arm, 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:06:57 +0000
//
void __fastcall MemberListPopup::FLAlert_Clicked(__int64 a1, __int64 a2, int a3)
{
__int64 v6; // x20
int v7; // w21
void *v8; // x0
char *CString; // x0
char v10; // w20
__int64 v11; // x20
int v12; // w21
void *v13; // x0
char *v14; // x0
char v15; // w20
__int64 v16; // x20
int v17; // w21
void *v18; // x0
char *v19; // x0
char v20; // w20
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v22; // [xsp+1Fh] [xbp-21h]
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 4 )
{
if ( !a3 || *(int *)(a1 + 868) <= 0 )
goto LABEL_7;
v6 = GameLevelManager::sharedState();
v7 = *(_DWORD *)(*(_QWORD *)(a1 + 800) + 56LL);
v8 = sub_1003065B0("%i", *(_DWORD *)(a1 + 868));
CString = (char *)cocos2d::CCString::getCString((__int64)v8);
sub_100009900(__p, CString);
v10 = sub_1000C8838(v6, v7, 6, (__int64)__p);
if ( v22 < 0 )
operator delete(__p[0]);
if ( (v10 & 1) == 0 )
{
LABEL_7:
*(_DWORD *)(a1 + 868) = 0;
return;
}
LABEL_21:
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 776;
return;
}
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 5 )
{
if ( !a3 || *(int *)(a1 + 872) <= 0 )
goto LABEL_14;
v11 = GameLevelManager::sharedState();
v12 = *(_DWORD *)(*(_QWORD *)(a1 + 800) + 56LL);
v13 = sub_1003065B0("%i", *(_DWORD *)(a1 + 872));
v14 = (char *)cocos2d::CCString::getCString((__int64)v13);
sub_100009900(__p, v14);
v15 = sub_1000C8838(v11, v12, 7, (__int64)__p);
if ( v22 < 0 )
operator delete(__p[0]);
if ( (v15 & 1) == 0 )
{
LABEL_14:
*(_DWORD *)(a1 + 872) = 0;
return;
}
goto LABEL_21;
}
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 7 )
return;
if ( a3 && *(int *)(a1 + 876) > 0 )
{
v16 = GameLevelManager::sharedState();
v17 = *(_DWORD *)(*(_QWORD *)(a1 + 800) + 56LL);
v18 = sub_1003065B0("%i", *(_DWORD *)(a1 + 876));
v19 = (char *)cocos2d::CCString::getCString((__int64)v18);
sub_100009900(__p, v19);
v20 = sub_1000C8838(v16, v17, 11, (__int64)__p);
if ( v22 < 0 )
operator delete(__p[0]);
if ( (v20 & 1) != 0 )
goto LABEL_21;
}
*(_DWORD *)(a1 + 876) = 0;
}