//
// FRequestProfilePage::onDeleteSelected from 0x5f1810 to 0x5f196c (348 bytes)
//
// 0 xrefs:
//
// 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:54:28 +0000
//
int __fastcall FRequestProfilePage::onDeleteSelected(FRequestProfilePage *this, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // r0
const char *v4; // r1
int StoredOnlineLevels; // r0
int *v6; // r2
int v7; // r3
int *v8; // r2
int *v9; // r3
int v10; // r1
int v11; // t1
char **v12; // r4
int v13; // r6
char *v14; // r4
int *v15; // r7
int *v16; // r0
int v18[3]; // [sp+1Ch] [bp-1Ch] BYREF
int v19; // [sp+28h] [bp-10h] BYREF
int v20; // [sp+2Ch] [bp-Ch]
int v21; // [sp+30h] [bp-8h]
v3 = (GameLevelManager *)GameLevelManager::sharedState(this);
if ( (*((_BYTE *)this + 544) & 1) != 0 )
v4 = *((const char **)this + 138);
else
v4 = (char *)this + 545;
StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v3, v4);
if ( StoredOnlineLevels )
{
v6 = *(int **)(StoredOnlineLevels + 52);
v7 = *v6;
if ( *v6 )
{
v8 = (int *)v6[3];
v9 = &v8[v7 - 1];
while ( v8 <= v9 )
{
v11 = *v8++;
v10 = v11;
if ( !v11 )
break;
if ( *(_BYTE *)(v10 + 557) )
{
v13 = *((unsigned __int8 *)this + 540);
v14 = (char *)this + 520;
if ( v13 )
{
v15 = v18;
memset(v18, 0, sizeof(v18));
std::string::__init(v18, "Are you sure you want to delete the selected requests?", 0x46u);
v16 = FLAlertLayer::create(
(int)v14,
(cocos2d::CCLabelBMFont *)"Delete",
(int)v18,
(ButtonSprite *)"Back",
(ButtonSprite *)"Delete",
380.0,
0,
0,
1.0);
}
else
{
v15 = &v19;
v19 = 0;
v20 = 0;
v21 = 0;
std::string::__init(
&v19,
"Ignore the selected requests?\nThey won't be notified.\nChange your mind under Ignored.",
0x65u);
v16 = FLAlertLayer::create(
(int)v14,
(cocos2d::CCLabelBMFont *)"Ignore",
(int)&v19,
(ButtonSprite *)"Back",
(ButtonSprite *)"Ignore",
380.0,
0,
0,
1.0);
}
v12 = (char **)v16;
std::string::~string((int)v15);
ButtonSprite::updateBGImage(v12[121], "GJ_button_06.png");
(*((void (__fastcall **)(char **, int))*v12 + 9))(v12, 3);
return (*((int (__fastcall **)(char **))*v12 + 164))(v12);
}
}
}
}
v19 = 0;
v20 = 0;
v21 = 0;
std::string::__init(&v19, "No requests selected.", 0x15u);
v12 = (char **)FLAlertLayer::create(
0,
(cocos2d::CCLabelBMFont *)"Nothing here...",
(int)&v19,
(ButtonSprite *)"OK",
nullptr);
std::string::~string((int)&v19);
return (*((int (__fastcall **)(char **))*v12 + 164))(v12);
}