{"type": "func", "start": 4299624272, "end": 4299624372, "name": "EditorUI::undoLastAction", "pseudocode": "// \n// EditorUI::undoLastAction from 0x100470f50 to 0x100470fb4 (100 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x10016313c\n// > EditorUI::init @ 0x10046f06c\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:38 +0000\n// \n\n__int64 __fastcall EditorUI::undoLastAction(__int64 a1, __n128 a2)\n{\n  __int64 v3; // x0\n  __n128 v4; // q0\n\n  v3 = EditorSFXManager::sharedState(a2);\n  EditorSFXManager::playAction_1(v3, 180);\n  LevelEditorLayer::undoLastAction(*(_QWORD *)(a1 + 1440));\n  EditorUI::updateButtons(a1);\n  if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 760) + 352LL))(*(_QWORD *)(a1 + 760)) )\n  {\n    *(_BYTE *)(a1 + 776) = 1;\n    EditorUI::activateRotationControl(a1);\n  }\n  return EditorUI::updateSpecialUIElements(a1, v4);\n}", "assembly": "; \n; EditorUI::undoLastAction from 0x100470f50 to 0x100470fb4 (100 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x10016313c\n; > EditorUI::init @ 0x10046f06c\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:38 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100470f50\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100470f54\nADD             X29, SP, #0x10                                         ; +0x8, 0x100470f58\nMOV             X19, X0                                                ; +0xc, 0x100470f5c\nBL              EditorSFXManager__sharedState                          ; +0x10, 0x100470f60\nMOV             W1, #0xB4                                              ; +0x14, 0x100470f64\nBL              EditorSFXManager__playAction_1                         ; +0x18, 0x100470f68\nLDR             X0, [X19,#0x5A0]                                       ; +0x1c, 0x100470f6c\nBL              LevelEditorLayer__undoLastAction                       ; +0x20, 0x100470f70\nMOV             X0, X19                                                ; +0x24, 0x100470f74\nBL              EditorUI__updateButtons                                ; +0x28, 0x100470f78\nLDR             X0, [X19,#0x2F8]                                       ; +0x2c, 0x100470f7c\nLDR             X8, [X0]                                               ; +0x30, 0x100470f80\nLDR             X8, [X8,#0x160]                                        ; +0x34, 0x100470f84\nBLR             X8                                                     ; +0x38, 0x100470f88\nCBZ             W0, loc_100470FA4                                      ; +0x3c, 0x100470f8c\nMOV             W8, #1                                                 ; +0x40, 0x100470f90\nSTRB            W8, [X19,#0x308]                                       ; +0x44, 0x100470f94\nMOV             X0, X19                                                ; +0x48, 0x100470f98\nMOV             X1, #0                                                 ; +0x4c, 0x100470f9c\nBL              EditorUI__activateRotationControl                      ; +0x50, 0x100470fa0\nMOV             X0, X19                                                ; +0x54, 0x100470fa4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x58, 0x100470fa8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x5c, 0x100470fac\nB               EditorUI__updateSpecialUIElements                      ; +0x60, 0x100470fb0", "xrefs": ["EditorUI::handleEditorAction @ 0x10016313c", "EditorUI::init @ 0x10046f06c"], "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"}