{"type": "func", "start": 4300614304, "end": 4300614481, "name": "GJLevelList::removeLevelFromList", "pseudocode": "// \n// GJLevelList::removeLevelFromList from 0x100562aa0 to 0x100562b51 (177 bytes)\n// \n// 1 xrefs:\n// > LevelListLayer::cellPerformedAction @ 0x10035f779\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 GJLevelList::removeLevelFromList(GJLevelList *a1, int a2)\n{\n  double v2; // xmm0_8\n  std::__vector_base<int>::pointer begin; // r14\n  std::__vector_base<int>::pointer end; // rax\n  size_t v5; // r15\n  cocos2d::CCDictionary *m_levelsDict; // r14\n  size_t v7[7]; // [rsp+8h] [rbp-38h] BYREF\n\n  begin = a1->m_levels.__begin_;\n  end = a1->m_levels.__end_;\n  if ( begin != end )\n  {\n    v5 = (char *)end - (char *)begin - 4;\n    while ( *begin != a2 )\n    {\n      ++begin;\n      v5 -= 4LL;\n      if ( begin == end )\n        goto LABEL_9;\n    }\n    if ( begin + 1 != end )\n      memmove(begin, begin + 1, v5);\n    a1->m_levels.__end_ = (std::__vector_base<int>::pointer)((char *)begin + v5);\n    GJLevelList::updateLevelsString(a1);\n  }\nLABEL_9:\n  m_levelsDict = a1->m_levelsDict;\n  GameToolbox::intToString(v7, a2, v2);\n  cocos2d::CCDictionary::removeObjectForKey_1((__int64)m_levelsDict, (char *)v7);\n  if ( (v7[0] & 1) != 0 )\n    operator delete((void *)v7[2]);\n  a1->m_modified = 1;\n}", "assembly": "; \n; GJLevelList::removeLevelFromList from 0x100562aa0 to 0x100562b51 (177 bytes)\n; \n; 1 xrefs:\n; > LevelListLayer::cellPerformedAction @ 0x10035f779\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\npush    rbp                                                            ; +0x0, 0x100562aa0\nmov     rbp, rsp                                                       ; +0x1, 0x100562aa1\npush    r15                                                            ; +0x4, 0x100562aa4\npush    r14                                                            ; +0x6, 0x100562aa6\npush    r12                                                            ; +0x8, 0x100562aa8\npush    rbx                                                            ; +0xa, 0x100562aaa\nsub     rsp, 20h                                                       ; +0xb, 0x100562aab\nmov     rbx, rdi                                                       ; +0xf, 0x100562aaf\nmov     r14, [rdi+140h]                                                ; +0x12, 0x100562ab2\nmov     rax, [rdi+148h]                                                ; +0x19, 0x100562ab9\ncmp     r14, rax                                                       ; +0x20, 0x100562ac0\njz      short loc_100562B10                                            ; +0x23, 0x100562ac3\nmov     r15, rax                                                       ; +0x25, 0x100562ac5\nsub     r15, r14                                                       ; +0x28, 0x100562ac8\nadd     r15, 0FFFFFFFFFFFFFFFCh                                        ; +0x2b, 0x100562acb\nnop                                                                    ; +0x2f, 0x100562acf\ncmp     [r14], esi                                                     ; +0x30, 0x100562ad0\njz      short loc_100562AE4                                            ; +0x33, 0x100562ad3\nadd     r14, 4                                                         ; +0x35, 0x100562ad5\nadd     r15, 0FFFFFFFFFFFFFFFCh                                        ; +0x39, 0x100562ad9\ncmp     r14, rax                                                       ; +0x3d, 0x100562add\njnz     short loc_100562AD0                                            ; +0x40, 0x100562ae0\njmp     short loc_100562B10                                            ; +0x42, 0x100562ae2\nmov     r12d, esi                                                      ; +0x44, 0x100562ae4\nlea     rsi, [r14+4]; __src                                            ; +0x47, 0x100562ae7\ncmp     rsi, rax                                                       ; +0x4b, 0x100562aeb\njz      short loc_100562AFB                                            ; +0x4e, 0x100562aee\nmov     rdi, r14; __dst                                                ; +0x50, 0x100562af0\nmov     rdx, r15; __len                                                ; +0x53, 0x100562af3\ncall    _memmove                                                       ; +0x56, 0x100562af6\nadd     r14, r15                                                       ; +0x5b, 0x100562afb\nmov     [rbx+148h], r14                                                ; +0x5e, 0x100562afe\nmov     rdi, rbx                                                       ; +0x65, 0x100562b05\ncall    GJLevelList__updateLevelsString                                ; +0x68, 0x100562b08\nmov     esi, r12d                                                      ; +0x6d, 0x100562b0d\nmov     r14, [rbx+210h]                                                ; +0x70, 0x100562b10\nlea     r15, [rbp+var_38]                                              ; +0x77, 0x100562b17\nmov     rdi, r15                                                       ; +0x7b, 0x100562b1b\ncall    GameToolbox__intToString                                       ; +0x7e, 0x100562b1e\nmov     rdi, r14                                                       ; +0x83, 0x100562b23\nmov     rsi, r15                                                       ; +0x86, 0x100562b26\ncall    cocos2d__CCDictionary__removeObjectForKey_1                    ; +0x89, 0x100562b29\ntest    [rbp+var_38], 1                                                ; +0x8e, 0x100562b2e\njz      short loc_100562B3D                                            ; +0x92, 0x100562b32\nmov     rdi, [rbp+__p]; __p                                            ; +0x94, 0x100562b34\ncall    __ZdlPv; operator delete(void *)                               ; +0x98, 0x100562b38\nmov     byte ptr [rbx+18Fh], 1                                         ; +0x9d, 0x100562b3d\nadd     rsp, 20h                                                       ; +0xa4, 0x100562b44\npop     rbx                                                            ; +0xa8, 0x100562b48\npop     r12                                                            ; +0xa9, 0x100562b49\npop     r14                                                            ; +0xab, 0x100562b4b\npop     r15                                                            ; +0xad, 0x100562b4d\npop     rbp                                                            ; +0xaf, 0x100562b4f\nretn                                                                   ; +0xb0, 0x100562b50", "xrefs": ["LevelListLayer::cellPerformedAction @ 0x10035f779"], "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"}