{"type": "func", "start": 4295651348, "end": 4295651496, "name": "GameLevelManager::deleteLevelList", "pseudocode": "// \n// GameLevelManager::deleteLevelList from 0x1000a7014 to 0x1000a70a8 (148 bytes)\n// \n// 3 xrefs:\n// > LevelListLayer::onFavorite @ 0x1002e1ec4\n// > sub_1002E3C98 @ 0x1002e3cc4\n// > LevelBrowserLayer::FLAlert_Clicked @ 0x10049b0ec\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:58:34 +0000\n// \n\nvoid __fastcall GameLevelManager::deleteLevelList(__int64 a1, __int64 a2)\n{\n  __int64 v3; // x0\n  __int64 v4; // x20\n  __int64 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 ( *(_DWORD *)(a2 + 544) == 2 )\n  {\n    v3 = LocalLevelManager::sharedState(a1);\n    sub_1002E765C(*(_QWORD *)(v3 + 368), a2, 1);\n  }\n  else\n  {\n    v4 = *(_QWORD *)(a1 + 784);\n    v5 = sub_1003065B0(\"%i\", *(_DWORD *)(a2 + 344));\n    CString = (char *)cocos2d::CCString::getCString(v5);\n    sub_100009900(__p, CString);\n    cocos2d::CCDictionary::removeObjectForKey(v4, (char *)__p);\n    if ( v8 < 0 )\n      operator delete(__p[0]);\n  }\n}", "assembly": "; \n; GameLevelManager::deleteLevelList from 0x1000a7014 to 0x1000a70a8 (148 bytes)\n; \n; 3 xrefs:\n; > LevelListLayer::onFavorite @ 0x1002e1ec4\n; > sub_1002E3C98 @ 0x1002e3cc4\n; > LevelBrowserLayer::FLAlert_Clicked @ 0x10049b0ec\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:58:34 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x1000a7014\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1000a7018\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1000a701c\nADD             X29, SP, #0x30                                         ; +0xc, 0x1000a7020\nMOV             X19, X1                                                ; +0x10, 0x1000a7024\nLDR             W8, [X1,#0x220]                                        ; +0x14, 0x1000a7028\nCMP             W8, #2                                                 ; +0x18, 0x1000a702c\nB.NE            loc_1000A7054                                          ; +0x1c, 0x1000a7030\nBL              LocalLevelManager__sharedState                         ; +0x20, 0x1000a7034\nLDR             X0, [X0,#0x170]                                        ; +0x24, 0x1000a7038\nMOV             X1, X19                                                ; +0x28, 0x1000a703c\nMOV             W2, #1                                                 ; +0x2c, 0x1000a7040\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x30, 0x1000a7044\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x34, 0x1000a7048\nADD             SP, SP, #0x40 ; '@'                                    ; +0x38, 0x1000a704c\nB               sub_1002E765C                                          ; +0x3c, 0x1000a7050\nLDR             X20, [X0,#0x310]                                       ; +0x40, 0x1000a7054\nLDR             W8, [X19,#0x158]                                       ; +0x44, 0x1000a7058\nSTR             X8, [SP,#0x30+var_30]                                  ; +0x48, 0x1000a705c\nADRL            X0, aI; \"%i\"                                           ; +0x4c, 0x1000a7060\nBL              sub_1003065B0                                          ; +0x54, 0x1000a7068\nBL              cocos2d__CCString__getCString                          ; +0x58, 0x1000a706c\nMOV             X1, X0; __s                                            ; +0x5c, 0x1000a7070\nADD             X0, SP, #0x30+__p; int                                 ; +0x60, 0x1000a7074\nBL              sub_100009900                                          ; +0x64, 0x1000a7078\nADD             X1, SP, #0x30+__p; __s                                 ; +0x68, 0x1000a707c\nMOV             X0, X20; int                                           ; +0x6c, 0x1000a7080\nBL              cocos2d__CCDictionary__removeObjectForKey              ; +0x70, 0x1000a7084\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x74, 0x1000a7088\nTBZ             W8, #0x1F, loc_1000A7098                               ; +0x78, 0x1000a708c\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x7c, 0x1000a7090\nBL              __ZdlPv; operator delete(void *)                       ; +0x80, 0x1000a7094\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x84, 0x1000a7098\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x88, 0x1000a709c\nADD             SP, SP, #0x40 ; '@'                                    ; +0x8c, 0x1000a70a0\nRET                                                                    ; +0x90, 0x1000a70a4", "xrefs": ["LevelListLayer::onFavorite @ 0x1002e1ec4", "sub_1002E3C98 @ 0x1002e3cc4", "LevelBrowserLayer::FLAlert_Clicked @ 0x10049b0ec"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}