//
// LevelBrowserLayer::onRemoveAllFavorites from 0x4a56d4 to 0x4a577c (168 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::onRemoveAllFavorites(LevelBrowserLayer *this, cocos2d::CCObject *a2)
{
int v3; // r2
char *v4; // r1
int *v5; // r5
int v7[3]; // [sp+Ch] [bp-20h] BYREF
int v8[3]; // [sp+18h] [bp-14h] BYREF
memset(v7, 0, sizeof(v7));
v3 = *((_DWORD *)this + 125);
if ( v3 && *(_DWORD *)(v3 + 264) == 103 )
v4 = "Remove all lists from favorites?\nSearch and folder filters apply.";
else
v4 = "Remove all levels from favorites?\n"
"Search and folder filters apply.\n"
"Levels will not be deleted.";
std::string::assign(v7, v4);
std::string::basic_string(v8, (int)v7);
v5 = FLAlertLayer::create(
(int)this + 444,
(cocos2d::CCLabelBMFont *)"Remove Favorites",
(int)v8,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Remove",
360.0);
std::string::~string((int)v8);
(*(void (__fastcall **)(int *, int))(*v5 + 36))(v5, 2);
(*(void (__fastcall **)(int *))(*v5 + 656))(v5);
return std::string::~string((int)v7);
}