//
// LevelBrowserLayer::onDeleteAll from 0x7f566c to 0x7f5768 (252 bytes)
//
// 3 xrefs:
// > ??> @ 0x564e8
// > LevelBrowserLayer::init @ 0x7fab78
// > ??> @ 0x1541f08
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:54:37 +0000
//
__int64 __fastcall LevelBrowserLayer::onDeleteAll(LevelBrowserLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x20
_QWORD v5[2]; // [xsp+20h] [xbp+20h] BYREF
void *v6; // [xsp+30h] [xbp+30h]
v6 = (void *)operator new(0xA0u);
v5[1] = 159;
v5[0] = 161;
*((_BYTE *)memcpy(
v6,
"Delete all saved online levels?\n"
"Search and folder filters apply.\n"
"Favorite levels will not be deleted.\n"
"Stats and progress will be saved.",
0x9Fu)
+ 159) = 0;
v3 = FLAlertLayer::create(
(__int64)this + 552,
(cocos2d::CCLabelBMFont *)"Delete All",
(char *)v5,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Delete",
360.0);
if ( (v5[0] & 1) != 0 )
operator delete(v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
return _stack_chk_guard;
}