{"type": "func", "start": 4023804, "end": 4023922, "name": "GJLevelList::removeLevelFromList", "pseudocode": "// \n// GJLevelList::removeLevelFromList from 0x3d65fc to 0x3d6672 (118 bytes)\n// \n// 1 xrefs:\n// > LevelListLayer::cellPerformedAction @ 0x5923c8\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 GJLevelList::removeLevelFromList(GJLevelList *a1, int a2)\n{\n  int *m_start; // r4\n  char *v5; // r1\n  cocos2d::CCDictionary *m_levelsDict; // r8\n  _DWORD v7[2]; // [sp+0h] [bp-8h] BYREF\n\n  v7[0] = a1;\n  v7[1] = a2;\n  m_start = a1->m_levels.m_start;\n  while ( 1 )\n  {\n    v5 = (char *)m_start;\n    if ( m_start == a1->m_levels.m_finish )\n      break;\n    ++m_start;\n    if ( *(_DWORD *)v5 == a2 )\n    {\n      std::vector<int>::_M_erase((int)&a1->m_levels, v5);\n      GJLevelList::updateLevelsString(a1);\n      break;\n    }\n  }\n  m_levelsDict = a1->m_levelsDict;\n  GameToolbox::intToString((GameToolbox *)v7, a2);\n  cocos2d::CCDictionary::removeObjectForKey(m_levelsDict);\n  sub_774008(v7);\n  a1->m_modified = 1;\n}", "assembly": "; \n; GJLevelList::removeLevelFromList from 0x3d65fc to 0x3d6672 (118 bytes)\n; \n; 1 xrefs:\n; > LevelListLayer::cellPerformedAction @ 0x5923c8\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x3D6606)                ; +0x0, 0x3d65fc\nPUSH.W          {R0,R1,R4-R8,LR}                                       ; +0x2, 0x3d65fe\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x3d6602\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x3d6604\nLDR.W           R4, [R0,#0x108]                                        ; +0xa, 0x3d6606\nMOV             R6, R0                                                 ; +0xe, 0x3d660a\nLDR             R2, [R3]                                               ; +0x10, 0x3d660c\nMOV             R7, R1                                                 ; +0x12, 0x3d660e\nMOV             R5, R3                                                 ; +0x14, 0x3d6610\nSTR             R2, [SP,#8+var_4]                                      ; +0x16, 0x3d6612\nLDR.W           R2, [R0,#0x10C]                                        ; +0x18, 0x3d6614\nCMP             R4, R2                                                 ; +0x1c, 0x3d6618\nMOV             R1, R4; void *                                         ; +0x1e, 0x3d661a\nBEQ             loc_3D6634                                             ; +0x20, 0x3d661c\nLDR             R3, [R1]                                               ; +0x22, 0x3d661e\nADDS            R4, #4                                                 ; +0x24, 0x3d6620\nCMP             R3, R7                                                 ; +0x26, 0x3d6622\nBNE             loc_3D6618                                             ; +0x28, 0x3d6624\nADD.W           R0, R6, #0x108; int                                    ; +0x2a, 0x3d6626\nBL              _ZNSt6vectorIiSaIiEE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPiS1_EE; std::vector<int>::_M_erase(__gnu_cxx::__normal_iterator<int *,std::vector<int>>) ; +0x2e, 0x3d662a\nMOV             R0, R6; this                                           ; +0x32, 0x3d662e\nBL              _ZN11GJLevelList18updateLevelsStringEv; GJLevelList::updateLevelsString(void) ; +0x34, 0x3d6630\nLDR.W           R8, [R6,#0x168]                                        ; +0x38, 0x3d6634\nMOV             R0, SP; this                                           ; +0x3c, 0x3d6638\nMOV             R1, R7; int                                            ; +0x3e, 0x3d663a\nMOV             R4, SP                                                 ; +0x40, 0x3d663c\nBL              _ZN11GameToolbox11intToStringEi; GameToolbox::intToString(int) ; +0x42, 0x3d663e\nMOV             R1, SP                                                 ; +0x46, 0x3d6642\nMOV             R0, R8; this                                           ; +0x48, 0x3d6644\nBL              _ZN7cocos2d12CCDictionary18removeObjectForKeyERKSs; cocos2d::CCDictionary::removeObjectForKey(std::string const&) ; +0x4a, 0x3d6646\nMOV             R0, SP                                                 ; +0x4e, 0x3d664a\nBL              sub_774008                                             ; +0x50, 0x3d664c\nMOVS            R3, #1                                                 ; +0x54, 0x3d6650\nLDR             R2, [SP,#8+var_4]                                      ; +0x56, 0x3d6652\nSTRB.W          R3, [R6,#0x14B]                                        ; +0x58, 0x3d6654\nLDR             R3, [R5]                                               ; +0x5c, 0x3d6658\nCMP             R2, R3                                                 ; +0x5e, 0x3d665a\nBEQ             loc_3D666C                                             ; +0x60, 0x3d665c\nBLX             __stack_chk_fail                                       ; +0x62, 0x3d665e\nMOV             R0, R4                                                 ; +0x66, 0x3d6662\nBL              sub_774008                                             ; +0x68, 0x3d6664\nBL              __cxa_end_cleanup                                      ; +0x6c, 0x3d6668\nADD             SP, SP, #8                                             ; +0x70, 0x3d666c\nPOP.W           {R4-R8,PC}                                             ; +0x72, 0x3d666e", "xrefs": ["LevelListLayer::cellPerformedAction @ 0x5923c8"], "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"}