//
// MemberListPopup::FLAlert_Clicked from 0xc6b4a0 to 0xc6b748 (680 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'MemberListPopup::FLAlert_Clicked @ 0xc6b74c
// > ??> @ 0xc5a88
// > ??> @ 0x14ef328
//
// 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 13:05:27 +0000
//
__int64 __fastcall MemberListPopup::FLAlert_Clicked(MemberListPopup *this, FLAlertLayer *a2, unsigned __int8 a3)
{
int v5; // w22
GameLevelManager *v7; // x0
cocos2d::CCObject *v8; // x23
unsigned int v9; // w22
cocos2d::CCString *v10; // x0
size_t v11; // x0
GameLevelManager *updated; // x0
int v13; // w20
GameLevelManager *v14; // x0
cocos2d::CCObject *v15; // x23
unsigned int v16; // w22
cocos2d::CCString *v17; // x0
size_t v18; // x0
int v19; // w20
GameLevelManager *v20; // x0
cocos2d::CCObject *v21; // x23
unsigned int v22; // w22
cocos2d::CCString *v23; // x0
size_t v24; // x0
int v25; // w20
char *v26; // [xsp+40h] [xbp+40h]
char *CString; // [xsp+40h] [xbp+40h]
char *v28; // [xsp+40h] [xbp+40h]
__int64 v29; // [xsp+50h] [xbp+50h] BYREF
__int64 v30; // [xsp+58h] [xbp+58h]
void *v31; // [xsp+60h] [xbp+60h]
v5 = a3;
if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 4 )
{
if ( !v5 )
goto LABEL_16;
v14 = (GameLevelManager *)*((unsigned int *)this + 217);
if ( (int)v14 <= 0 )
goto LABEL_16;
v15 = (cocos2d::CCObject *)GameLevelManager::sharedState(v14);
v16 = *(_DWORD *)(*((_QWORD *)this + 100) + 56LL);
v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)*((unsigned int *)this + 217));
v29 = 0;
CString = (char *)cocos2d::CCString::getCString(v17);
v30 = 0;
v31 = nullptr;
v18 = strlen(CString);
std::string::__init(&v29, CString, v18);
updated = (GameLevelManager *)GameLevelManager::updateThread(v15, (char *)v16, 6, (char *)&v29);
v19 = (unsigned __int8)updated;
if ( (v29 & 1) != 0 )
operator delete(v31);
if ( !v19 )
{
LABEL_16:
*((_DWORD *)this + 217) = 0;
return _stack_chk_guard;
}
goto LABEL_15;
}
if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 5 )
{
if ( v5 )
{
v7 = (GameLevelManager *)*((unsigned int *)this + 218);
if ( (int)v7 > 0 )
{
v8 = (cocos2d::CCObject *)GameLevelManager::sharedState(v7);
v9 = *(_DWORD *)(*((_QWORD *)this + 100) + 56LL);
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)*((unsigned int *)this + 218));
v29 = 0;
v26 = (char *)cocos2d::CCString::getCString(v10);
v30 = 0;
v31 = nullptr;
v11 = strlen(v26);
std::string::__init(&v29, v26, v11);
updated = (GameLevelManager *)GameLevelManager::updateThread(v8, (char *)v9, 7, (char *)&v29);
v13 = (unsigned __int8)updated;
if ( (v29 & 1) != 0 )
{
operator delete(v31);
if ( v13 )
goto LABEL_15;
}
else if ( (_BYTE)updated )
{
goto LABEL_15;
}
}
}
*((_DWORD *)this + 218) = 0;
return _stack_chk_guard;
}
if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 7 )
{
if ( !v5 )
goto LABEL_21;
v20 = (GameLevelManager *)*((unsigned int *)this + 219);
if ( (int)v20 <= 0 )
goto LABEL_21;
v21 = (cocos2d::CCObject *)GameLevelManager::sharedState(v20);
v22 = *(_DWORD *)(*((_QWORD *)this + 100) + 56LL);
v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)*((unsigned int *)this + 219));
v29 = 0;
v28 = (char *)cocos2d::CCString::getCString(v23);
v30 = 0;
v31 = nullptr;
v24 = strlen(v28);
std::string::__init(&v29, v28, v24);
updated = (GameLevelManager *)GameLevelManager::updateThread(v21, (char *)v22, 11, (char *)&v29);
v25 = (unsigned __int8)updated;
if ( (v29 & 1) != 0 )
{
operator delete(v31);
if ( !v25 )
goto LABEL_21;
}
else if ( !(_BYTE)updated )
{
LABEL_21:
*((_DWORD *)this + 219) = 0;
return _stack_chk_guard;
}
LABEL_15:
*(_QWORD *)(GameLevelManager::sharedState(updated) + 1264) = (char *)this + 776;
}
return _stack_chk_guard;
}