//
// MemberListPopup::FLAlert_Clicked from 0x74b2e4 to 0x74b470 (396 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'MemberListPopup::FLAlert_Clicked @ 0x74b484
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:46 +0000
//
char *__fastcall MemberListPopup::FLAlert_Clicked(MemberListPopup *this, FLAlertLayer *a2, int a3)
{
char *result; // r0
int v7; // r0
const char *v8; // r7
GameManager *v9; // r8
cocos2d::CCString *v10; // r0
const char *CString; // r9
size_t v12; // r0
int updated; // r7
int v14; // r0
const char *v15; // r7
GameManager *v16; // r8
cocos2d::CCString *v17; // r0
const char *v18; // r9
size_t v19; // r0
int v20; // r7
int v21; // r0
const char *v22; // r7
GameManager *v23; // r8
cocos2d::CCString *v24; // r0
const char *v25; // r9
size_t v26; // r0
int v27; // r7
int v28; // [sp+0h] [bp-14h] BYREF
int v29; // [sp+4h] [bp-10h]
int v30; // [sp+8h] [bp-Ch]
result = (char *)(*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2);
if ( result == (char *)&byte_4 )
{
if ( !a3 )
goto LABEL_4;
if ( *((int *)this + 161) <= 0 )
goto LABEL_4;
v7 = GameLevelManager::sharedState((GameLevelManager *)&byte_4);
v8 = *(const char **)(*((_DWORD *)this + 152) + 52);
v9 = (GameManager *)v7;
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
*((const char **)this + 161));
v28 = 0;
v29 = 0;
v30 = 0;
CString = (const char *)cocos2d::CCString::getCString(v10);
v12 = strlen(CString);
std::string::__init(&v28, CString, v12);
updated = GameLevelManager::updateThread(v9, v8, 6, (unsigned __int8 *)&v28);
result = (char *)std::string::~string((int)&v28);
if ( !updated )
{
LABEL_4:
*((_DWORD *)this + 161) = 0;
return result;
}
}
else
{
result = (char *)(*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2);
if ( result == &byte_5 )
{
if ( !a3 )
goto LABEL_10;
if ( *((int *)this + 162) <= 0 )
goto LABEL_10;
v14 = GameLevelManager::sharedState((GameLevelManager *)&byte_5);
v15 = *(const char **)(*((_DWORD *)this + 152) + 52);
v16 = (GameManager *)v14;
v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
*((const char **)this + 162));
v28 = 0;
v29 = 0;
v30 = 0;
v18 = (const char *)cocos2d::CCString::getCString(v17);
v19 = strlen(v18);
std::string::__init(&v28, v18, v19);
v20 = GameLevelManager::updateThread(v16, v15, 7, (unsigned __int8 *)&v28);
result = (char *)std::string::~string((int)&v28);
if ( !v20 )
{
LABEL_10:
*((_DWORD *)this + 162) = 0;
return result;
}
}
else
{
result = (char *)(*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2);
if ( result != &byte_7 )
return result;
if ( !a3 )
goto LABEL_16;
if ( *((int *)this + 163) <= 0 )
goto LABEL_16;
v21 = GameLevelManager::sharedState((GameLevelManager *)&byte_7);
v22 = *(const char **)(*((_DWORD *)this + 152) + 52);
v23 = (GameManager *)v21;
v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
*((const char **)this + 163));
v28 = 0;
v29 = 0;
v30 = 0;
v25 = (const char *)cocos2d::CCString::getCString(v24);
v26 = strlen(v25);
std::string::__init(&v28, v25, v26);
v27 = GameLevelManager::updateThread(v23, v22, 11, (unsigned __int8 *)&v28);
result = (char *)std::string::~string((int)&v28);
if ( !v27 )
{
LABEL_16:
*((_DWORD *)this + 163) = 0;
return result;
}
}
}
result = (char *)GameLevelManager::sharedState((GameLevelManager *)result);
*((_DWORD *)result + 210) = (char *)this + 596;
return result;
}