{"type": "func", "start": 4299666940, "end": 4299667144, "name": "EditorUI::uncheckPortals", "pseudocode": "// \n// EditorUI::uncheckPortals from 0x10047b5fc to 0x10047b6c8 (204 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x1001631f8\n// > EditorCommandsPopup::onCommand @ 0x1004c5b6c\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 11:05:43 +0000\n// \n\n__int64 __fastcall EditorUI::uncheckPortals(__int64 a1)\n{\n  __int64 result; // x0\n  __int64 v3; // x20\n  int v4; // w21\n  unsigned int i; // w22\n  __int64 v6; // x23\n  int v7; // w8\n\n  result = LevelEditorLayer::getAllObjects(*(_QWORD *)(a1 + 1440));\n  if ( result )\n  {\n    v3 = result;\n    result = sub_1002E757C(result);\n    if ( (int)result >= 1 )\n    {\n      v4 = result;\n      for ( i = 0; v4 != i; ++i )\n      {\n        result = sub_1002E75A0(v3, i);\n        v6 = result;\n        v7 = *(_DWORD *)(result + 1028);\n        if ( v7 > 659 )\n        {\n          if ( v7 != 660 && v7 != 1933 && v7 != 1331 )\n            continue;\n        }\n        else if ( v7 != 13 && v7 != 47 && v7 != 111 )\n        {\n          continue;\n        }\n        if ( *(_BYTE *)(result + 1768) == 1 )\n        {\n          result = sub_1003FF90C(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 14288LL));\n          *(_BYTE *)(v6 + 1768) = 0;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::uncheckPortals from 0x10047b5fc to 0x10047b6c8 (204 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x1001631f8\n; > EditorCommandsPopup::onCommand @ 0x1004c5b6c\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 11:05:43 +0000\n; \nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x10047b5fc\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10047b600\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10047b604\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10047b608\nADD             X29, SP, #0x30                                         ; +0x10, 0x10047b60c\nMOV             X19, X0                                                ; +0x14, 0x10047b610\nLDR             X0, [X0,#0x5A0]                                        ; +0x18, 0x10047b614\nBL              LevelEditorLayer__getAllObjects                        ; +0x1c, 0x10047b618\nCBZ             X0, loc_10047B6B4                                      ; +0x20, 0x10047b61c\nMOV             X20, X0                                                ; +0x24, 0x10047b620\nBL              sub_1002E757C                                          ; +0x28, 0x10047b624\nCMP             W0, #1                                                 ; +0x2c, 0x10047b628\nB.LT            loc_10047B6B4                                          ; +0x30, 0x10047b62c\nMOV             X21, X0                                                ; +0x34, 0x10047b630\nMOV             W22, #0                                                ; +0x38, 0x10047b634\nMOV             X0, X20                                                ; +0x3c, 0x10047b638\nMOV             X1, X22                                                ; +0x40, 0x10047b63c\nBL              sub_1002E75A0                                          ; +0x44, 0x10047b640\nMOV             X23, X0                                                ; +0x48, 0x10047b644\nLDR             W8, [X0,#0x404]                                        ; +0x4c, 0x10047b648\nCMP             W8, #0x293                                             ; +0x50, 0x10047b64c\nB.GT            loc_10047B670                                          ; +0x54, 0x10047b650\nCMP             W8, #0xD                                               ; +0x58, 0x10047b654\nB.EQ            loc_10047B688                                          ; +0x5c, 0x10047b658\nCMP             W8, #0x2F ; '/'                                        ; +0x60, 0x10047b65c\nB.EQ            loc_10047B688                                          ; +0x64, 0x10047b660\nCMP             W8, #0x6F ; 'o'                                        ; +0x68, 0x10047b664\nB.EQ            loc_10047B688                                          ; +0x6c, 0x10047b668\nB               loc_10047B6A8                                          ; +0x70, 0x10047b66c\nCMP             W8, #0x294                                             ; +0x74, 0x10047b670\nB.EQ            loc_10047B688                                          ; +0x78, 0x10047b674\nCMP             W8, #0x78D                                             ; +0x7c, 0x10047b678\nB.EQ            loc_10047B688                                          ; +0x80, 0x10047b67c\nCMP             W8, #0x533                                             ; +0x84, 0x10047b680\nB.NE            loc_10047B6A8                                          ; +0x88, 0x10047b684\nLDRB            W8, [X23,#0x6E8]                                       ; +0x8c, 0x10047b688\nCMP             W8, #1                                                 ; +0x90, 0x10047b68c\nB.NE            loc_10047B6A8                                          ; +0x94, 0x10047b690\nLDR             X8, [X19,#0x5A0]                                       ; +0x98, 0x10047b694\nLDR             X0, [X8,#0x37D0]                                       ; +0x9c, 0x10047b698\nMOV             X1, X23                                                ; +0xa0, 0x10047b69c\nBL              sub_1003FF90C                                          ; +0xa4, 0x10047b6a0\nSTRB            WZR, [X23,#0x6E8]                                      ; +0xa8, 0x10047b6a4\nADD             W22, W22, #1                                           ; +0xac, 0x10047b6a8\nCMP             W21, W22                                               ; +0xb0, 0x10047b6ac\nB.NE            loc_10047B638                                          ; +0xb4, 0x10047b6b0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xb8, 0x10047b6b4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xbc, 0x10047b6b8\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xc0, 0x10047b6bc\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0xc4, 0x10047b6c0\nRET                                                                    ; +0xc8, 0x10047b6c4", "xrefs": ["EditorUI::handleEditorAction @ 0x1001631f8", "EditorCommandsPopup::onCommand @ 0x1004c5b6c"], "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"}