{"type": "func", "start": 4191742, "end": 4191860, "name": "EditorPauseLayer::uncheckAllPortals", "pseudocode": "// \n// EditorPauseLayer::uncheckAllPortals from 0x3ff5fe to 0x3ff674 (118 bytes)\n// \n// 0 xrefs:\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 EditorPauseLayer::uncheckAllPortals(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  unsigned int m_saved; // r4\n  bool v4; // r7\n  cocos2d::CCArray *AllObjects; // r6\n  int v6; // r0\n  int v7; // r3\n  int v8; // r10\n  bool v9; // zf\n\n  m_saved = a1->m_saved;\n  if ( !a1->m_saved )\n  {\n    v4 = a1->m_saved;\n    AllObjects = LevelEditorLayer::getAllObjects(a1->m_editorLayer);\n    while ( 1 )\n    {\n      if ( m_saved >= cocos2d::CCArray::count(AllObjects) )\n        return;\n      v6 = cocos2d::CCArray::objectAtIndex(AllObjects, m_saved);\n      v7 = *(_DWORD *)(v6 + 884);\n      v8 = v6;\n      if ( v7 != 111 )\n      {\n        if ( v7 > 111 )\n        {\n          if ( v7 != 1331 && v7 != 1933 )\n          {\n            v9 = v7 == 660;\nLABEL_11:\n            if ( !v9 )\n              goto LABEL_15;\n          }\n        }\n        else if ( v7 != 13 )\n        {\n          v9 = v7 == 47;\n          goto LABEL_11;\n        }\n      }\n      if ( *(_BYTE *)(v6 + 1576) )\n      {\n        DrawGridLayer::removeFromGuides(a1->m_editorLayer->m_drawGridLayer, (GameObject *)v6);\n        *(_BYTE *)(v8 + 1576) = v4;\n      }\nLABEL_15:\n      ++m_saved;\n    }\n  }\n}", "assembly": "; \n; EditorPauseLayer::uncheckAllPortals from 0x3ff5fe to 0x3ff674 (118 bytes)\n; \n; 0 xrefs:\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.W          {R4-R10,LR}                                            ; +0x0, 0x3ff5fe\nMOV             R5, R0                                                 ; +0x4, 0x3ff602\nLDRB.W          R4, [R0,#0x1C0]                                        ; +0x6, 0x3ff604\nCBNZ            R4, locret_3FF670                                      ; +0xa, 0x3ff608\nLDR.W           R0, [R0,#0x1CC]; this                                  ; +0xc, 0x3ff60a\nMOV             R7, R4                                                 ; +0x10, 0x3ff60e\nBL              _ZN16LevelEditorLayer13getAllObjectsEv; LevelEditorLayer::getAllObjects(void) ; +0x12, 0x3ff610\nMOVW            R8, #0x533                                             ; +0x16, 0x3ff614\nMOVW            R9, #0x78D                                             ; +0x1a, 0x3ff618\nMOV             R6, R0                                                 ; +0x1e, 0x3ff61c\nMOV             R0, R6; this                                           ; +0x20, 0x3ff61e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x22, 0x3ff620\nCMP             R4, R0                                                 ; +0x26, 0x3ff624\nBCS             locret_3FF670                                          ; +0x28, 0x3ff626\nMOV             R0, R6; this                                           ; +0x2a, 0x3ff628\nMOV             R1, R4; unsigned int                                   ; +0x2c, 0x3ff62a\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2e, 0x3ff62c\nLDR.W           R3, [R0,#0x374]                                        ; +0x32, 0x3ff630\nMOV             R10, R0                                                ; +0x36, 0x3ff634\nCMP             R3, #0x6F ; 'o'                                        ; +0x38, 0x3ff636\nBEQ             loc_3FF652                                             ; +0x3a, 0x3ff638\nBGT             loc_3FF644                                             ; +0x3c, 0x3ff63a\nCMP             R3, #0xD                                               ; +0x3e, 0x3ff63c\nBEQ             loc_3FF652                                             ; +0x40, 0x3ff63e\nCMP             R3, #0x2F ; '/'                                        ; +0x42, 0x3ff640\nB               loc_3FF650                                             ; +0x44, 0x3ff642\nCMP             R3, R8                                                 ; +0x46, 0x3ff644\nBEQ             loc_3FF652                                             ; +0x48, 0x3ff646\nCMP             R3, R9                                                 ; +0x4a, 0x3ff648\nBEQ             loc_3FF652                                             ; +0x4c, 0x3ff64a\nCMP.W           R3, #0x294                                             ; +0x4e, 0x3ff64c\nBNE             loc_3FF66C                                             ; +0x52, 0x3ff650\nLDRB.W          R3, [R10,#0x628]                                       ; +0x54, 0x3ff652\nCBZ             R3, loc_3FF66C                                         ; +0x58, 0x3ff656\nLDR.W           R3, [R5,#0x1CC]                                        ; +0x5a, 0x3ff658\nMOV             R1, R10; GameObject *                                  ; +0x5e, 0x3ff65c\nADD.W           R3, R3, #0x2E80                                        ; +0x60, 0x3ff65e\nLDR             R0, [R3,#0x2C]; this                                   ; +0x64, 0x3ff662\nBL              _ZN13DrawGridLayer16removeFromGuidesEP10GameObject; DrawGridLayer::removeFromGuides(GameObject *) ; +0x66, 0x3ff664\nSTRB.W          R7, [R10,#0x628]                                       ; +0x6a, 0x3ff668\nADDS            R4, #1                                                 ; +0x6e, 0x3ff66c\nB               loc_3FF61E                                             ; +0x70, 0x3ff66e\nPOP.W           {R4-R10,PC}                                            ; +0x72, 0x3ff670", "xrefs": [], "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"}