{"type": "func", "start": 4731204, "end": 4731324, "name": "EditorUI::uncheckPortals", "pseudocode": "// \n// EditorUI::uncheckPortals from 0x483144 to 0x4831bc (120 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f20ee\n// > EditorCommandsPopup::onCommand @ 0x77a86e\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:23 +0000\n// \n\nint __fastcall EditorUI::uncheckPortals(LevelEditorLayer **this)\n{\n  int result; // r0\n  cocos2d::CCArray *v3; // r6\n  signed int v4; // r5\n  signed int i; // r4\n  int v6; // r3\n  int v7; // r11\n  bool v8; // zf\n\n  result = LevelEditorLayer::getAllObjects(*(this + 236));\n  v3 = (cocos2d::CCArray *)result;\n  if ( result )\n  {\n    result = cocos2d::CCArray::count((cocos2d::CCArray *)result);\n    v4 = result;\n  }\n  else\n  {\n    v4 = 0;\n  }\n  for ( i = 0; i < v4; ++i )\n  {\n    result = cocos2d::CCArray::objectAtIndex(v3, i);\n    v6 = *(_DWORD *)(result + 892);\n    v7 = result;\n    if ( v6 != 111 )\n    {\n      if ( v6 > 111 )\n      {\n        if ( v6 != 1331 && v6 != 1933 )\n        {\n          v8 = v6 == 660;\nLABEL_13:\n          if ( !v8 )\n            continue;\n        }\n      }\n      else if ( v6 != 13 )\n      {\n        v8 = v6 == 47;\n        goto LABEL_13;\n      }\n    }\n    if ( *(_BYTE *)(result + 1584) )\n    {\n      result = DrawGridLayer::removeFromGuides(*((cocos2d::CCArray ***)*(this + 236) + 2970), (GameObject *)result);\n      *(_BYTE *)(v7 + 1584) = 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::uncheckPortals from 0x483144 to 0x4831bc (120 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f20ee\n; > EditorCommandsPopup::onCommand @ 0x77a86e\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:23 +0000\n; \nPUSH.W          {R3-R11,LR}                                            ; +0x0, 0x483144\nMOV             R7, R0                                                 ; +0x4, 0x483148\nLDR.W           R0, [R0,#0x3B0]; this                                  ; +0x6, 0x48314a\nBL              _ZN16LevelEditorLayer13getAllObjectsEv; LevelEditorLayer::getAllObjects(void) ; +0xa, 0x48314e\nMOV             R6, R0                                                 ; +0xe, 0x483152\nCBZ             R0, loc_48315E                                         ; +0x10, 0x483154\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x12, 0x483156\nMOV             R5, R0                                                 ; +0x16, 0x48315a\nB               loc_483160                                             ; +0x18, 0x48315c\nMOV             R5, R0                                                 ; +0x1a, 0x48315e\nMOVS            R4, #0                                                 ; +0x1c, 0x483160\nMOVW            R9, #0x533                                             ; +0x1e, 0x483162\nMOV             R8, R4                                                 ; +0x22, 0x483166\nMOVW            R10, #0x78D                                            ; +0x24, 0x483168\nCMP             R4, R5                                                 ; +0x28, 0x48316c\nBGE             locret_4831B8                                          ; +0x2a, 0x48316e\nMOV             R0, R6; this                                           ; +0x2c, 0x483170\nMOV             R1, R4; unsigned int                                   ; +0x2e, 0x483172\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x30, 0x483174\nLDR.W           R3, [R0,#0x37C]                                        ; +0x34, 0x483178\nMOV             R11, R0                                                ; +0x38, 0x48317c\nCMP             R3, #0x6F ; 'o'                                        ; +0x3a, 0x48317e\nBEQ             loc_48319A                                             ; +0x3c, 0x483180\nBGT             loc_48318C                                             ; +0x3e, 0x483182\nCMP             R3, #0xD                                               ; +0x40, 0x483184\nBEQ             loc_48319A                                             ; +0x42, 0x483186\nCMP             R3, #0x2F ; '/'                                        ; +0x44, 0x483188\nB               loc_483198                                             ; +0x46, 0x48318a\nCMP             R3, R9                                                 ; +0x48, 0x48318c\nBEQ             loc_48319A                                             ; +0x4a, 0x48318e\nCMP             R3, R10                                                ; +0x4c, 0x483190\nBEQ             loc_48319A                                             ; +0x4e, 0x483192\nCMP.W           R3, #0x294                                             ; +0x50, 0x483194\nBNE             loc_4831B4                                             ; +0x54, 0x483198\nLDRB.W          R3, [R11,#0x630]                                       ; +0x56, 0x48319a\nCBZ             R3, loc_4831B4                                         ; +0x5a, 0x48319e\nLDR.W           R3, [R7,#0x3B0]                                        ; +0x5c, 0x4831a0\nMOV             R1, R11; GameObject *                                  ; +0x60, 0x4831a4\nADD.W           R3, R3, #0x2E40                                        ; +0x62, 0x4831a6\nLDR             R0, [R3,#0x28]; this                                   ; +0x66, 0x4831aa\nBL              _ZN13DrawGridLayer16removeFromGuidesEP10GameObject; DrawGridLayer::removeFromGuides(GameObject *) ; +0x68, 0x4831ac\nSTRB.W          R8, [R11,#0x630]                                       ; +0x6c, 0x4831b0\nADDS            R4, #1                                                 ; +0x70, 0x4831b4\nB               loc_48316C                                             ; +0x72, 0x4831b6\nPOP.W           {R3-R11,PC}                                            ; +0x74, 0x4831b8", "xrefs": ["EditorUI::handleEditorAction @ 0x6f20ee", "EditorCommandsPopup::onCommand @ 0x77a86e"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}