{"type": "func", "start": 4295693956, "end": 4295694148, "name": "GJLevelList::removeLevelFromList", "pseudocode": "// \n// GJLevelList::removeLevelFromList from 0x1000b1684 to 0x1000b1744 (192 bytes)\n// \n// 1 xrefs:\n// > LevelListLayer::cellPerformedAction @ 0x1002465f0\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall GJLevelList::removeLevelFromList(GJLevelList *a1, int a2)\n{\n  __int64 v2; // x20\n  std::__vector_base<int>::pointer end; // x8\n  std::__vector_base<int>::pointer begin; // x21\n  size_t v6; // x22\n  cocos2d::CCDictionary *m_levelsDict; // x21\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v9; // [xsp+1Fh] [xbp-21h]\n\n  v2 = *(_QWORD *)&a2;\n  begin = a1->m_levels.__begin_;\n  end = a1->m_levels.__end_;\n  if ( begin != end )\n  {\n    v6 = (char *)end - (char *)begin - 4;\n    while ( *begin != a2 )\n    {\n      ++begin;\n      v6 -= 4LL;\n      if ( begin == end )\n        goto LABEL_9;\n    }\n    if ( begin + 1 != end )\n      memmove(begin, begin + 1, v6);\n    a1->m_levels.__end_ = (std::__vector_base<int>::pointer)((char *)begin + v6);\n    GJLevelList::updateLevelsString(a1);\n  }\nLABEL_9:\n  m_levelsDict = a1->m_levelsDict;\n  GameToolbox::intToString(v2, __p);\n  cocos2d::CCDictionary::removeObjectForKey_1((int)m_levelsDict, (char *)__p);\n  if ( v9 < 0 )\n    operator delete(__p[0]);\n  a1->m_modified = 1;\n}", "assembly": "; \n; GJLevelList::removeLevelFromList from 0x1000b1684 to 0x1000b1744 (192 bytes)\n; \n; 1 xrefs:\n; > LevelListLayer::cellPerformedAction @ 0x1002465f0\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, #0x50                                          ; +0x0, 0x1000b1684\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1000b1688\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1000b168c\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1000b1690\nADD             X29, SP, #0x40                                         ; +0x10, 0x1000b1694\nMOV             X20, X1                                                ; +0x14, 0x1000b1698\nMOV             X19, X0                                                ; +0x18, 0x1000b169c\nLDP             X21, X8, [X0,#0x140]                                   ; +0x1c, 0x1000b16a0\nCMP             X21, X8                                                ; +0x20, 0x1000b16a4\nB.EQ            loc_1000B16FC                                          ; +0x24, 0x1000b16a8\nSUB             X9, X8, X21                                            ; +0x28, 0x1000b16ac\nSUB             X22, X9, #4                                            ; +0x2c, 0x1000b16b0\nLDR             W9, [X21]                                              ; +0x30, 0x1000b16b4\nCMP             W9, W20                                                ; +0x34, 0x1000b16b8\nB.EQ            loc_1000B16D4                                          ; +0x38, 0x1000b16bc\nADD             X21, X21, #4                                           ; +0x3c, 0x1000b16c0\nSUB             X22, X22, #4                                           ; +0x40, 0x1000b16c4\nCMP             X21, X8                                                ; +0x44, 0x1000b16c8\nB.NE            loc_1000B16B4                                          ; +0x48, 0x1000b16cc\nB               loc_1000B16FC                                          ; +0x4c, 0x1000b16d0\nADD             X1, X21, #4; __src                                     ; +0x50, 0x1000b16d4\nCMP             X1, X8                                                 ; +0x54, 0x1000b16d8\nB.EQ            loc_1000B16EC                                          ; +0x58, 0x1000b16dc\nMOV             X0, X21; __dst                                         ; +0x5c, 0x1000b16e0\nMOV             X2, X22; __len                                         ; +0x60, 0x1000b16e4\nBL              _memmove                                               ; +0x64, 0x1000b16e8\nADD             X8, X21, X22                                           ; +0x68, 0x1000b16ec\nSTR             X8, [X19,#0x148]                                       ; +0x6c, 0x1000b16f0\nMOV             X0, X19                                                ; +0x70, 0x1000b16f4\nBL              GJLevelList__updateLevelsString                        ; +0x74, 0x1000b16f8\nLDR             X21, [X19,#0x210]                                      ; +0x78, 0x1000b16fc\nADD             X8, SP, #0x40+__p                                      ; +0x7c, 0x1000b1700\nMOV             X0, X20                                                ; +0x80, 0x1000b1704\nBL              GameToolbox__intToString                               ; +0x84, 0x1000b1708\nADD             X1, SP, #0x40+__p; __s                                 ; +0x88, 0x1000b170c\nMOV             X0, X21; int                                           ; +0x8c, 0x1000b1710\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x90, 0x1000b1714\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x94, 0x1000b1718\nTBZ             W8, #0x1F, loc_1000B1728                               ; +0x98, 0x1000b171c\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x9c, 0x1000b1720\nBL              __ZdlPv; operator delete(void *)                       ; +0xa0, 0x1000b1724\nMOV             W8, #1                                                 ; +0xa4, 0x1000b1728\nSTRB            W8, [X19,#0x18F]                                       ; +0xa8, 0x1000b172c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xac, 0x1000b1730\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xb0, 0x1000b1734\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xb4, 0x1000b1738\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xb8, 0x1000b173c\nRET                                                                    ; +0xbc, 0x1000b1740", "xrefs": ["LevelListLayer::cellPerformedAction @ 0x1002465f0"], "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"}