//
// LevelBrowserLayer::onRemoveAllFavorites from 0x3ba854 to 0x3ba900 (172 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void LevelBrowserLayer::onRemoveAllFavorites(LevelBrowserLayer *a1, cocos2d::CCObject *a2)
{
GJSearchObject *m_searchObject; // r3
char *v4; // r1
FLAlertLayer *v5; // r5
void *v6; // [sp+Ch] [bp-10h] BYREF
_BYTE v7[4]; // [sp+10h] [bp-Ch] BYREF
v6 = &unk_ACDDA8;
m_searchObject = a1->m_searchObject;
if ( m_searchObject && m_searchObject->m_searchType == FavouriteLists )
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.";
sub_7753D4((int)&v6, v4);
sub_775C20(v7, &v6);
v5 = FLAlertLayer::create(
(int)&a1->FLAlertLayerProtocol,
(int)"Remove Favorites",
(int)v7,
(int)"Cancel",
(int)"Remove",
360.0);
sub_774008(v7);
v5->setTag(v5, 2);
v5->show(v5);
sub_774008(&v6);
}