{"type": "func", "start": 4731324, "end": 4731398, "name": "EditorUI::updateEditMenu", "pseudocode": "// \n// EditorUI::updateEditMenu from 0x4831bc to 0x483206 (74 bytes)\n// \n// 6 xrefs:\n// > EditorUI::resetUI @ 0x489cdc\n// > EditorUI::onShowUIBtn @ 0x489e0a\n// > EditorUI::clickOnPosition @ 0x48c7b8\n// > EditorUI::handleEditorAction @ 0x6f1f3c\n// > EditorUI::setupEditMenu @ 0x6f7f16\n// > EditorUI::recreateButtonTabs @ 0x6f7ff4\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::updateEditMenu(EditorUI *this)\n{\n  _BOOL4 v2; // r1\n  int v3; // r0\n  int result; // r0\n  int (*v5)(void); // r3\n\n  if ( *((_BYTE *)this + 1053) )\n    v2 = 0;\n  else\n    v2 = *((_DWORD *)this + 235) == 3;\n  v3 = *((_DWORD *)this + 264);\n  if ( v3 )\n  {\n    (*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v3 + 172))(v3, v2);\n    result = *((_DWORD *)this + 154);\n    if ( !result )\n      return result;\n    v5 = *(int (**)(void))(*(_DWORD *)result + 172);\n  }\n  else\n  {\n    result = *((_DWORD *)this + 154);\n    if ( !result )\n      return result;\n    v5 = *(int (**)(void))(*(_DWORD *)result + 172);\n  }\n  return v5();\n}", "assembly": "; \n; EditorUI::updateEditMenu from 0x4831bc to 0x483206 (74 bytes)\n; \n; 6 xrefs:\n; > EditorUI::resetUI @ 0x489cdc\n; > EditorUI::onShowUIBtn @ 0x489e0a\n; > EditorUI::clickOnPosition @ 0x48c7b8\n; > EditorUI::handleEditorAction @ 0x6f1f3c\n; > EditorUI::setupEditMenu @ 0x6f7f16\n; > EditorUI::recreateButtonTabs @ 0x6f7ff4\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            {R4,LR}                                                ; +0x0, 0x4831bc\nMOV             R4, R0                                                 ; +0x2, 0x4831be\nLDRB.W          R3, [R0,#0x41D]                                        ; +0x4, 0x4831c0\nCBNZ            R3, loc_4831D2                                         ; +0x8, 0x4831c4\nLDR.W           R1, [R0,#0x3AC]                                        ; +0xa, 0x4831c6\nSUBS            R3, R1, #3                                             ; +0xe, 0x4831ca\nNEGS            R1, R3                                                 ; +0x10, 0x4831cc\nADCS            R1, R3                                                 ; +0x12, 0x4831ce\nB               loc_4831D4                                             ; +0x14, 0x4831d0\nMOVS            R1, #0                                                 ; +0x16, 0x4831d2\nLDR.W           R0, [R4,#0x420]                                        ; +0x18, 0x4831d4\nCBZ             R0, loc_4831F2                                         ; +0x1c, 0x4831d8\nLDR             R3, [R0]                                               ; +0x1e, 0x4831da\nLDR.W           R3, [R3,#0xAC]                                         ; +0x20, 0x4831dc\nBLX             R3                                                     ; +0x24, 0x4831e0\nLDR.W           R0, [R4,#0x268]                                        ; +0x26, 0x4831e2\nCBZ             R0, locret_483204                                      ; +0x2a, 0x4831e6\nLDR             R3, [R0]                                               ; +0x2c, 0x4831e8\nMOVS            R1, #0                                                 ; +0x2e, 0x4831ea\nLDR.W           R3, [R3,#0xAC]                                         ; +0x30, 0x4831ec\nB               loc_4831FE                                             ; +0x34, 0x4831f0\nLDR.W           R0, [R4,#0x268]                                        ; +0x36, 0x4831f2\nCBZ             R0, locret_483204                                      ; +0x3a, 0x4831f6\nLDR             R3, [R0]                                               ; +0x3c, 0x4831f8\nLDR.W           R3, [R3,#0xAC]                                         ; +0x3e, 0x4831fa\nPOP.W           {R4,LR}                                                ; +0x42, 0x4831fe\nBX              R3                                                     ; +0x46, 0x483202\nPOP             {R4,PC}                                                ; +0x48, 0x483204", "xrefs": ["EditorUI::resetUI @ 0x489cdc", "EditorUI::onShowUIBtn @ 0x489e0a", "EditorUI::clickOnPosition @ 0x48c7b8", "EditorUI::handleEditorAction @ 0x6f1f3c", "EditorUI::setupEditMenu @ 0x6f7f16", "EditorUI::recreateButtonTabs @ 0x6f7ff4"], "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"}