{"type": "func", "start": 8144032, "end": 8144240, "name": "EditorUI::uncheckPortals", "pseudocode": "// \n// EditorUI::uncheckPortals from 0x7c44a0 to 0x7c4570 (208 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0xbd75cc\n// > EditorCommandsPopup::onCommand @ 0xcbbfd0\n// > <???> @ 0x105358\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 12:54:08 +0000\n// \n\n__int64 __fastcall EditorUI::uncheckPortals(LevelEditorLayer **this)\n{\n  __int64 result; // x0\n  cocos2d::CCArray *v3; // x21\n  int v4; // w22\n  unsigned int v5; // w19\n  __int64 v6; // x20\n\n  result = LevelEditorLayer::getAllObjects(*(this + 180));\n  v3 = (cocos2d::CCArray *)result;\n  if ( result )\n  {\n    result = cocos2d::CCArray::count((cocos2d::CCArray *)result);\n    v4 = result;\n    if ( (int)result > 0 )\n    {\n      v5 = 0;\n      while ( 1 )\n      {\n        v6 = cocos2d::CCArray::objectAtIndex(v3, v5);\n        result = *(unsigned int *)(v6 + 1028);\n        if ( (_DWORD)result != 111 )\n        {\n          if ( (int)result > 111 )\n          {\n            if ( (_DWORD)result != 1331 && (_DWORD)result != 1933 && (_DWORD)result != 660 )\n              goto LABEL_7;\n          }\n          else if ( (_DWORD)result != 13 && (_DWORD)result != 47 )\n          {\n            goto LABEL_7;\n          }\n        }\n        result = *(unsigned __int8 *)(v6 + 1768);\n        if ( *(_BYTE *)(v6 + 1768) )\n        {\n          ++v5;\n          result = DrawGridLayer::removeFromGuides(*((cocos2d::CCArray ***)*(this + 180) + 1786), (GameObject *)v6);\n          *(_BYTE *)(v6 + 1768) = 0;\n          if ( v4 == v5 )\n            return result;\n        }\n        else\n        {\nLABEL_7:\n          if ( v4 == ++v5 )\n            return result;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::uncheckPortals from 0x7c44a0 to 0x7c4570 (208 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0xbd75cc\n; > EditorCommandsPopup::onCommand @ 0xcbbfd0\n; > <???> @ 0x105358\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 12:54:08 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x7c44a0\nMOV             X29, SP                                                ; +0x4, 0x7c44a4\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x8, 0x7c44a8\nSTR             X23, [SP,#0x40+var_10]                                 ; +0xc, 0x7c44ac\nMOV             X23, X0                                                ; +0x10, 0x7c44b0\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x14, 0x7c44b4\nLDR             X0, [X0,#0x5A0]; this                                  ; +0x18, 0x7c44b8\nBL              _ZN16LevelEditorLayer13getAllObjectsEv; LevelEditorLayer::getAllObjects(void) ; +0x1c, 0x7c44bc\nMOV             X21, X0                                                ; +0x20, 0x7c44c0\nCBZ             X0, loc_7C455C                                         ; +0x24, 0x7c44c4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x28, 0x7c44c8\nCMP             W0, WZR                                                ; +0x2c, 0x7c44cc\nMOV             W22, W0                                                ; +0x30, 0x7c44d0\nB.LE            loc_7C455C                                             ; +0x34, 0x7c44d4\nMOV             W19, #0                                                ; +0x38, 0x7c44d8\nB               loc_7C4504                                             ; +0x3c, 0x7c44dc\nCMP             W0, #0x533                                             ; +0x40, 0x7c44e0\nB.EQ            loc_7C4534                                             ; +0x44, 0x7c44e4\nCMP             W0, #0x78D                                             ; +0x48, 0x7c44e8\nB.EQ            loc_7C4534                                             ; +0x4c, 0x7c44ec\nCMP             W0, #0x294                                             ; +0x50, 0x7c44f0\nB.EQ            loc_7C4534                                             ; +0x54, 0x7c44f4\nADD             W19, W19, #1                                           ; +0x58, 0x7c44f8\nCMP             W22, W19                                               ; +0x5c, 0x7c44fc\nB.EQ            loc_7C455C                                             ; +0x60, 0x7c4500\nMOV             X0, X21; this                                          ; +0x64, 0x7c4504\nMOV             W1, W19; unsigned int                                  ; +0x68, 0x7c4508\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x6c, 0x7c450c\nMOV             X20, X0                                                ; +0x70, 0x7c4510\nLDR             W0, [X0,#0x404]                                        ; +0x74, 0x7c4514\nCMP             W0, #0x6F ; 'o'                                        ; +0x78, 0x7c4518\nB.EQ            loc_7C4534                                             ; +0x7c, 0x7c451c\nB.GT            loc_7C44E0                                             ; +0x80, 0x7c4520\nCMP             W0, #0xD                                               ; +0x84, 0x7c4524\nB.EQ            loc_7C4534                                             ; +0x88, 0x7c4528\nCMP             W0, #0x2F ; '/'                                        ; +0x8c, 0x7c452c\nB.NE            loc_7C44F8                                             ; +0x90, 0x7c4530\nLDRB            W0, [X20,#0x6E8]                                       ; +0x94, 0x7c4534\nCBZ             W0, loc_7C44F8                                         ; +0x98, 0x7c4538\nLDR             X0, [X23,#0x5A0]                                       ; +0x9c, 0x7c453c\nMOV             X1, X20; GameObject *                                  ; +0xa0, 0x7c4540\nADD             W19, W19, #1                                           ; +0xa4, 0x7c4544\nLDR             X0, [X0,#0x37D0]; this                                 ; +0xa8, 0x7c4548\nBL              _ZN13DrawGridLayer16removeFromGuidesEP10GameObject; DrawGridLayer::removeFromGuides(GameObject *) ; +0xac, 0x7c454c\nSTRB            WZR, [X20,#0x6E8]                                      ; +0xb0, 0x7c4550\nCMP             W22, W19                                               ; +0xb4, 0x7c4554\nB.NE            loc_7C4504                                             ; +0xb8, 0x7c4558\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xbc, 0x7c455c\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xc0, 0x7c4560\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xc4, 0x7c4564\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xc8, 0x7c4568\nRET                                                                    ; +0xcc, 0x7c456c", "xrefs": ["EditorUI::handleEditorAction @ 0xbd75cc", "EditorCommandsPopup::onCommand @ 0xcbbfd0", "<???> @ 0x105358"], "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"}