{"type": "func", "start": 4295000352, "end": 4295000512, "name": "EditorUI::undoLastAction", "pseudocode": "// \n// EditorUI::undoLastAction from 0x100008120 to 0x1000081c0 (160 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060c66d\n// > EditorUI::init @ 0x100005f29\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:48 +0000\n// \n\n__int64 __fastcall EditorUI::undoLastAction(__int64 a1)\n{\n  __int64 v1; // rax\n\n  v1 = EditorSFXManager::sharedState(a1);\n  EditorSFXManager::playAction_1(v1, 180);\n  LevelEditorLayer::undoLastAction(*(_QWORD *)(a1 + 1440));\n  EditorUI::updateButtons(a1);\n  if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 760) + 352LL))(*(_QWORD *)(a1 + 760)) )\n  {\n    *(_BYTE *)(a1 + 776) = 1;\n    EditorUI::activateRotationControl(a1, 0);\n  }\n  if ( !*(_QWORD *)(a1 + 1496) && !(unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 896)) )\n  {\n    EditorUI::deactivateRotationControl(a1);\n    EditorUI::deactivateScaleControl(a1);\n    sub_100611790(a1);\n  }\n  EditorUI::updateObjectInfoLabel(a1);\n  return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1352LL))(a1);\n}", "assembly": "; \n; EditorUI::undoLastAction from 0x100008120 to 0x1000081c0 (160 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060c66d\n; > EditorUI::init @ 0x100005f29\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:48 +0000\n; \npush    rbp                                                            ; +0x0, 0x100008120\nmov     rbp, rsp                                                       ; +0x1, 0x100008121\npush    rbx                                                            ; +0x4, 0x100008124\npush    rax                                                            ; +0x5, 0x100008125\nmov     rbx, rdi                                                       ; +0x6, 0x100008126\ncall    EditorSFXManager__sharedState                                  ; +0x9, 0x100008129\nmov     rdi, rax                                                       ; +0xe, 0x10000812e\nmov     esi, 0B4h                                                      ; +0x11, 0x100008131\ncall    EditorSFXManager__playAction_1                                 ; +0x16, 0x100008136\nmov     rdi, [rbx+5A0h]                                                ; +0x1b, 0x10000813b\ncall    LevelEditorLayer__undoLastAction                               ; +0x22, 0x100008142\nmov     rdi, rbx                                                       ; +0x27, 0x100008147\ncall    EditorUI__updateButtons                                        ; +0x2a, 0x10000814a\nmov     rdi, [rbx+2F8h]                                                ; +0x2f, 0x10000814f\nmov     rax, [rdi]                                                     ; +0x36, 0x100008156\ncall    qword ptr [rax+160h]                                           ; +0x39, 0x100008159\ntest    al, al                                                         ; +0x3f, 0x10000815f\njz      short loc_100008174                                            ; +0x41, 0x100008161\nmov     byte ptr [rbx+308h], 1                                         ; +0x43, 0x100008163\nmov     rdi, rbx                                                       ; +0x4a, 0x10000816a\nxor     esi, esi                                                       ; +0x4d, 0x10000816d\ncall    EditorUI__activateRotationControl                              ; +0x4f, 0x10000816f\ncmp     qword ptr [rbx+5D8h], 0                                        ; +0x54, 0x100008174\njnz     short loc_1000081A6                                            ; +0x5c, 0x10000817c\nmov     rdi, [rbx+380h]                                                ; +0x5e, 0x10000817e\ncall    sub_1007FEF90                                                  ; +0x65, 0x100008185\ntest    eax, eax                                                       ; +0x6a, 0x10000818a\njnz     short loc_1000081A6                                            ; +0x6c, 0x10000818c\nmov     rdi, rbx                                                       ; +0x6e, 0x10000818e\ncall    EditorUI__deactivateRotationControl                            ; +0x71, 0x100008191\nmov     rdi, rbx                                                       ; +0x76, 0x100008196\ncall    EditorUI__deactivateScaleControl                               ; +0x79, 0x100008199\nmov     rdi, rbx                                                       ; +0x7e, 0x10000819e\ncall    sub_100611790                                                  ; +0x81, 0x1000081a1\nmov     rdi, rbx                                                       ; +0x86, 0x1000081a6\ncall    EditorUI__updateObjectInfoLabel                                ; +0x89, 0x1000081a9\nmov     rax, [rbx]                                                     ; +0x8e, 0x1000081ae\nmov     rdi, rbx                                                       ; +0x91, 0x1000081b1\nadd     rsp, 8                                                         ; +0x94, 0x1000081b4\npop     rbx                                                            ; +0x98, 0x1000081b8\npop     rbp                                                            ; +0x99, 0x1000081b9\njmp     qword ptr [rax+548h]                                           ; +0x9a, 0x1000081ba", "xrefs": ["EditorUI::handleEditorAction @ 0x10060c66d", "EditorUI::init @ 0x100005f29"], "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"}