{"type": "func", "start": 4299638704, "end": 4299638832, "name": "EditorUI::updateEditMenu", "pseudocode": "// \n// EditorUI::updateEditMenu from 0x1004747b0 to 0x100474830 (128 bytes)\n// \n// 6 xrefs:\n// > EditorUI::handleEditorAction @ 0x100162cdc\n// > EditorUI::setupEditMenu @ 0x10018532c\n// > EditorUI::recreateButtonTabs @ 0x1001881f0\n// > EditorUI::resetUI @ 0x1004717c8\n// > sub_1004734B8 @ 0x1004734f0\n// > EditorUI::clickOnPosition @ 0x100474100\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:40 +0000\n// \n\n__int64 __fastcall EditorUI::updateEditMenu(__int64 a1)\n{\n  _BOOL8 v2; // x1\n  __int64 v3; // x0\n  __int64 result; // x0\n  __int64 (*v5)(void); // x2\n\n  v2 = (*(_BYTE *)(a1 + 1589) & 1) == 0 && *(_DWORD *)(a1 + 1436) == 3;\n  v3 = *(_QWORD *)(a1 + 1592);\n  if ( v3 )\n  {\n    (*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v3 + 344LL))(v3, v2);\n    result = *(_QWORD *)(a1 + 832);\n    if ( !result )\n      return result;\n    v5 = *(__int64 (**)(void))(*(_QWORD *)result + 344LL);\n  }\n  else\n  {\n    result = *(_QWORD *)(a1 + 832);\n    if ( !result )\n      return result;\n    v5 = *(__int64 (**)(void))(*(_QWORD *)result + 344LL);\n  }\n  return v5();\n}", "assembly": "; \n; EditorUI::updateEditMenu from 0x1004747b0 to 0x100474830 (128 bytes)\n; \n; 6 xrefs:\n; > EditorUI::handleEditorAction @ 0x100162cdc\n; > EditorUI::setupEditMenu @ 0x10018532c\n; > EditorUI::recreateButtonTabs @ 0x1001881f0\n; > EditorUI::resetUI @ 0x1004717c8\n; > sub_1004734B8 @ 0x1004734f0\n; > EditorUI::clickOnPosition @ 0x100474100\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:40 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1004747b0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1004747b4\nADD             X29, SP, #0x10                                         ; +0x8, 0x1004747b8\nMOV             X19, X0                                                ; +0xc, 0x1004747bc\nLDRB            W8, [X0,#0x635]                                        ; +0x10, 0x1004747c0\nTBZ             W8, #0, loc_1004747D0                                  ; +0x14, 0x1004747c4\nMOV             W1, #0                                                 ; +0x18, 0x1004747c8\nB               loc_1004747DC                                          ; +0x1c, 0x1004747cc\nLDR             W8, [X19,#0x59C]                                       ; +0x20, 0x1004747d0\nCMP             W8, #3                                                 ; +0x24, 0x1004747d4\nCSET            W1, EQ                                                 ; +0x28, 0x1004747d8\nLDR             X0, [X19,#0x638]                                       ; +0x2c, 0x1004747dc\nCBZ             X0, loc_100474808                                      ; +0x30, 0x1004747e0\nLDR             X8, [X0]                                               ; +0x34, 0x1004747e4\nLDR             X8, [X8,#0x158]                                        ; +0x38, 0x1004747e8\nBLR             X8                                                     ; +0x3c, 0x1004747ec\nLDR             X0, [X19,#0x340]                                       ; +0x40, 0x1004747f0\nCBZ             X0, loc_100474824                                      ; +0x44, 0x1004747f4\nLDR             X8, [X0]                                               ; +0x48, 0x1004747f8\nLDR             X2, [X8,#0x158]                                        ; +0x4c, 0x1004747fc\nMOV             W1, #0                                                 ; +0x50, 0x100474800\nB               loc_100474818                                          ; +0x54, 0x100474804\nLDR             X0, [X19,#0x340]                                       ; +0x58, 0x100474808\nCBZ             X0, loc_100474824                                      ; +0x5c, 0x10047480c\nLDR             X8, [X0]                                               ; +0x60, 0x100474810\nLDR             X2, [X8,#0x158]                                        ; +0x64, 0x100474814\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x68, 0x100474818\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x6c, 0x10047481c\nBR              X2                                                     ; +0x70, 0x100474820\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0x100474824\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x78, 0x100474828\nRET                                                                    ; +0x7c, 0x10047482c", "xrefs": ["EditorUI::handleEditorAction @ 0x100162cdc", "EditorUI::setupEditMenu @ 0x10018532c", "EditorUI::recreateButtonTabs @ 0x1001881f0", "EditorUI::resetUI @ 0x1004717c8", "sub_1004734B8 @ 0x1004734f0", "EditorUI::clickOnPosition @ 0x100474100"], "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"}