{"type": "func", "start": 4295063760, "end": 4295063998, "name": "EditorUI::uncheckPortals", "pseudocode": "// \n// EditorUI::uncheckPortals from 0x1000178d0 to 0x1000179be (238 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060c75f\n// > EditorCommandsPopup::onCommand @ 0x1008dee41\n// \n// This function is hookable on this platform (idp: pc, 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:18:55 +0000\n// \n\n__int64 __fastcall EditorUI::uncheckPortals(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v2; // r14\n  int v3; // r15d\n  unsigned int i; // r12d\n  int v5; // ecx\n  __int64 v6; // r13\n\n  result = LevelEditorLayer::getAllObjects(*(_QWORD *)(a1 + 1440));\n  if ( result )\n  {\n    v2 = result;\n    result = sub_1007FEF90(result);\n    if ( (int)result > 0 )\n    {\n      v3 = result;\n      for ( i = 0; v3 != i; ++i )\n      {\n        result = sub_1007FEFE0(v2, i);\n        v5 = *(_DWORD *)(result + 1028);\n        if ( v5 > 659 )\n        {\n          if ( v5 != 660 && v5 != 1933 && v5 != 1331 )\n            continue;\n        }\n        else if ( v5 != 13 && v5 != 47 && v5 != 111 )\n        {\n          continue;\n        }\n        if ( *(_BYTE *)(result + 1768) == 1 )\n        {\n          v6 = result;\n          result = DrawGridLayer::removeFromGuides(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 14288LL), result);\n          *(_BYTE *)(v6 + 1768) = 0;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::uncheckPortals from 0x1000178d0 to 0x1000179be (238 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060c75f\n; > EditorCommandsPopup::onCommand @ 0x1008dee41\n; \n; This function is hookable on this platform (idp: pc, 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:18:55 +0000\n; \npush    rbp                                                            ; +0x0, 0x1000178d0\nmov     rbp, rsp                                                       ; +0x1, 0x1000178d1\npush    r15                                                            ; +0x4, 0x1000178d4\npush    r14                                                            ; +0x6, 0x1000178d6\npush    r13                                                            ; +0x8, 0x1000178d8\npush    r12                                                            ; +0xa, 0x1000178da\npush    rbx                                                            ; +0xc, 0x1000178dc\npush    rax                                                            ; +0xd, 0x1000178dd\nmov     rbx, rdi                                                       ; +0xe, 0x1000178de\nmov     rdi, [rdi+5A0h]                                                ; +0x11, 0x1000178e1\ncall    LevelEditorLayer__getAllObjects                                ; +0x18, 0x1000178e8\ntest    rax, rax                                                       ; +0x1d, 0x1000178ed\njz      loc_1000179AF                                                  ; +0x20, 0x1000178f0\nmov     r14, rax                                                       ; +0x26, 0x1000178f6\nmov     rdi, rax                                                       ; +0x29, 0x1000178f9\ncall    sub_1007FEF90                                                  ; +0x2c, 0x1000178fc\ntest    eax, eax                                                       ; +0x31, 0x100017901\njle     loc_1000179AF                                                  ; +0x33, 0x100017903\nmov     r15d, eax                                                      ; +0x39, 0x100017909\nxor     r12d, r12d                                                     ; +0x3c, 0x10001790c\njmp     short loc_10001792C                                            ; +0x3f, 0x10001790f\nalign 20h                                                              ; +0x41, 0x100017911\ninc     r12d                                                           ; +0x50, 0x100017920\ncmp     r15d, r12d                                                     ; +0x53, 0x100017923\njz      loc_1000179AF                                                  ; +0x56, 0x100017926\nmov     rdi, r14                                                       ; +0x5c, 0x10001792c\nmov     esi, r12d                                                      ; +0x5f, 0x10001792f\ncall    sub_1007FEFE0                                                  ; +0x62, 0x100017932\nmov     ecx, [rax+404h]                                                ; +0x67, 0x100017937\ncmp     ecx, 293h                                                      ; +0x6d, 0x10001793d\njg      short loc_100017960                                            ; +0x73, 0x100017943\ncmp     ecx, 0Dh                                                       ; +0x75, 0x100017945\njz      short loc_100017980                                            ; +0x78, 0x100017948\ncmp     ecx, 2Fh ; '/'                                                 ; +0x7a, 0x10001794a\njz      short loc_100017980                                            ; +0x7d, 0x10001794d\ncmp     ecx, 6Fh ; 'o'                                                 ; +0x7f, 0x10001794f\njz      short loc_100017980                                            ; +0x82, 0x100017952\njmp     short loc_100017920                                            ; +0x84, 0x100017954\nalign 20h                                                              ; +0x86, 0x100017956\ncmp     ecx, 294h                                                      ; +0x90, 0x100017960\njz      short loc_100017980                                            ; +0x96, 0x100017966\ncmp     ecx, 78Dh                                                      ; +0x98, 0x100017968\njz      short loc_100017980                                            ; +0x9e, 0x10001796e\ncmp     ecx, 533h                                                      ; +0xa0, 0x100017970\njnz     short loc_100017920                                            ; +0xa6, 0x100017976\nnop     dword ptr [rax+rax+00000000h]                                  ; +0xa8, 0x100017978\ncmp     byte ptr [rax+6E8h], 1                                         ; +0xb0, 0x100017980\njnz     short loc_100017920                                            ; +0xb7, 0x100017987\nmov     rcx, [rbx+5A0h]                                                ; +0xb9, 0x100017989\nmov     rdi, [rcx+37D0h]                                               ; +0xc0, 0x100017990\nmov     rsi, rax                                                       ; +0xc7, 0x100017997\nmov     r13, rax                                                       ; +0xca, 0x10001799a\ncall    DrawGridLayer__removeFromGuides                                ; +0xcd, 0x10001799d\nmov     byte ptr [r13+6E8h], 0                                         ; +0xd2, 0x1000179a2\njmp     loc_100017920                                                  ; +0xda, 0x1000179aa\nadd     rsp, 8                                                         ; +0xdf, 0x1000179af\npop     rbx                                                            ; +0xe3, 0x1000179b3\npop     r12                                                            ; +0xe4, 0x1000179b4\npop     r13                                                            ; +0xe6, 0x1000179b6\npop     r14                                                            ; +0xe8, 0x1000179b8\npop     r15                                                            ; +0xea, 0x1000179ba\npop     rbp                                                            ; +0xec, 0x1000179bc\nretn                                                                   ; +0xed, 0x1000179bd", "xrefs": ["EditorUI::handleEditorAction @ 0x10060c75f", "EditorCommandsPopup::onCommand @ 0x1008dee41"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}