//
// GameLevelManager::deleteLevelList from 0x1000a7014 to 0x1000a70a8 (148 bytes)
//
// 3 xrefs:
// > LevelListLayer::onFavorite @ 0x1002e1ec4
// > sub_1002E3C98 @ 0x1002e3cc4
// > LevelBrowserLayer::FLAlert_Clicked @ 0x10049b0ec
//
// 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 10:58:34 +0000
//
void __fastcall GameLevelManager::deleteLevelList(__int64 a1, __int64 a2)
{
__int64 v3; // x0
__int64 v4; // x20
__int64 v5; // x0
char *CString; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
if ( *(_DWORD *)(a2 + 544) == 2 )
{
v3 = LocalLevelManager::sharedState(a1);
sub_1002E765C(*(_QWORD *)(v3 + 368), a2, 1);
}
else
{
v4 = *(_QWORD *)(a1 + 784);
v5 = sub_1003065B0("%i", *(_DWORD *)(a2 + 344));
CString = (char *)cocos2d::CCString::getCString(v5);
sub_100009900(__p, CString);
cocos2d::CCDictionary::removeObjectForKey(v4, (char *)__p);
if ( v8 < 0 )
operator delete(__p[0]);
}
}