//
// EditorUI::undoLastAction from 0x100470f50 to 0x100470fb4 (100 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x10016313c
// > EditorUI::init @ 0x10046f06c
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:05:38 +0000
//
__int64 __fastcall EditorUI::undoLastAction(__int64 a1, __n128 a2)
{
__int64 v3; // x0
__n128 v4; // q0
v3 = EditorSFXManager::sharedState(a2);
EditorSFXManager::playAction_1(v3, 180);
LevelEditorLayer::undoLastAction(*(_QWORD *)(a1 + 1440));
EditorUI::updateButtons(a1);
if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 760) + 352LL))(*(_QWORD *)(a1 + 760)) )
{
*(_BYTE *)(a1 + 776) = 1;
EditorUI::activateRotationControl(a1);
}
return EditorUI::updateSpecialUIElements(a1, v4);
}