{"type": "func", "start": 4295569556, "end": 4295569704, "name": "GameLevelManager::deleteLevelList", "pseudocode": "// \n// GameLevelManager::deleteLevelList from 0x100093094 to 0x100093128 (148 bytes)\n// \n// 3 xrefs:\n// > LevelListLayer::onFavorite @ 0x100244e04\n// > LevelListLayer::onDelete @ 0x100246b78\n// > LevelBrowserLayer::FLAlert_Clicked @ 0x10041974c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GameLevelManager::deleteLevelList(GameLevelManager *a1, GJLevelList *a2)\n{\n  LocalLevelManager *v3; // x0\n  cocos2d::CCDictionary *m_favoriteLists; // x20\n  cocos2d::CCString *v5; // x0\n  char *CString; // x0\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v8; // [xsp+1Fh] [xbp-11h]\n\n  if ( a2->m_listType == Editor )\n  {\n    v3 = LocalLevelManager::sharedState();\n    sub_10024A444(v3->m_localLists, a2, 1);\n  }\n  else\n  {\n    m_favoriteLists = a1->m_favoriteLists;\n    v5 = (cocos2d::CCString *)sub_100268F4C(\"%i\", a2->m_listID);\n    CString = (char *)cocos2d::CCString::getCString(v5);\n    sub_100009900(__p, CString);\n    cocos2d::CCDictionary::removeObjectForKey_1((int)m_favoriteLists, (char *)__p);\n    if ( v8 < 0 )\n      operator delete(__p[0]);\n  }\n}", "assembly": "; \n; GameLevelManager::deleteLevelList from 0x100093094 to 0x100093128 (148 bytes)\n; \n; 3 xrefs:\n; > LevelListLayer::onFavorite @ 0x100244e04\n; > LevelListLayer::onDelete @ 0x100246b78\n; > LevelBrowserLayer::FLAlert_Clicked @ 0x10041974c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x40                                          ; +0x0, 0x100093094\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100093098\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x10009309c\nADD             X29, SP, #0x30                                         ; +0xc, 0x1000930a0\nMOV             X19, X1                                                ; +0x10, 0x1000930a4\nLDR             W8, [X1,#0x218]                                        ; +0x14, 0x1000930a8\nCMP             W8, #2                                                 ; +0x18, 0x1000930ac\nB.NE            loc_1000930D4                                          ; +0x1c, 0x1000930b0\nBL              LocalLevelManager__sharedState                         ; +0x20, 0x1000930b4\nLDR             X0, [X0,#0x168]                                        ; +0x24, 0x1000930b8\nMOV             X1, X19                                                ; +0x28, 0x1000930bc\nMOV             W2, #1                                                 ; +0x2c, 0x1000930c0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x30, 0x1000930c4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x34, 0x1000930c8\nADD             SP, SP, #0x40 ; '@'                                    ; +0x38, 0x1000930cc\nB               sub_10024A444                                          ; +0x3c, 0x1000930d0\nLDR             X20, [X0,#0x180]                                       ; +0x40, 0x1000930d4\nLDR             W8, [X19,#0x158]                                       ; +0x44, 0x1000930d8\nSTR             X8, [SP,#0x30+var_30]                                  ; +0x48, 0x1000930dc\nADRL            X0, aI; \"%i\"                                           ; +0x4c, 0x1000930e0\nBL              sub_100268F4C                                          ; +0x54, 0x1000930e8\nBL              cocos2d__CCString__getCString                          ; +0x58, 0x1000930ec\nMOV             X1, X0; __s                                            ; +0x5c, 0x1000930f0\nADD             X0, SP, #0x30+__p; int                                 ; +0x60, 0x1000930f4\nBL              sub_100009900                                          ; +0x64, 0x1000930f8\nADD             X1, SP, #0x30+__p; __s                                 ; +0x68, 0x1000930fc\nMOV             X0, X20; int                                           ; +0x6c, 0x100093100\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x70, 0x100093104\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x74, 0x100093108\nTBZ             W8, #0x1F, loc_100093118                               ; +0x78, 0x10009310c\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x7c, 0x100093110\nBL              __ZdlPv; operator delete(void *)                       ; +0x80, 0x100093114\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x84, 0x100093118\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x88, 0x10009311c\nADD             SP, SP, #0x40 ; '@'                                    ; +0x8c, 0x100093120\nRET                                                                    ; +0x90, 0x100093124", "xrefs": ["LevelListLayer::onFavorite @ 0x100244e04", "LevelListLayer::onDelete @ 0x100246b78", "LevelBrowserLayer::FLAlert_Clicked @ 0x10041974c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}