//
// LevelBrowserLayer::onProcessSelected from 0x4a50a0 to 0x4a5164 (196 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:49:53 +0000
//
int __fastcall LevelBrowserLayer::onProcessSelected(LevelBrowserLayer *this, cocos2d::CCObject *a2)
{
int result; // r0
const char *v5; // r4
cocos2d::CCString *v6; // r0
const char *CString; // r9
size_t v8; // r0
char **v9; // r4
void (__fastcall *v10)(char **, int); // r5
int v11; // r0
int v12[3]; // [sp+18h] [bp-14h] BYREF
result = LevelBrowserLayer::selectedCount(this);
v5 = (const char *)result;
if ( result > 0 )
{
result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
if ( result == 5 )
{
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Are you sure you want to delete the %i selected levels?",
v5);
memset(v12, 0, sizeof(v12));
CString = (const char *)cocos2d::CCString::getCString(v6);
v8 = strlen(CString);
std::string::__init(v12, CString, v8);
v9 = (char **)FLAlertLayer::create(
(int)this + 444,
(cocos2d::CCLabelBMFont *)"Delete",
(int)v12,
(ButtonSprite *)"Back",
(ButtonSprite *)"Delete",
380.0,
0,
0,
1.0);
result = std::string::~string((int)v12);
if ( v9 )
{
ButtonSprite::updateBGImage(v9[121], "GJ_button_06.png");
v10 = *((void (__fastcall **)(char **, int))*v9 + 9);
v11 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v10(v9, v11);
return (*((int (__fastcall **)(char **))*v9 + 164))(v9);
}
}
}
return result;
}