//
// EditorUI::onCopyState from 0x10018af3c to 0x10018af88 (76 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x100162fb8
// > EditorUI::init @ 0x100470044
//
// 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 10:59:52 +0000
//
__int64 __fastcall EditorUI::onCopyState(__int64 result, __n128 a2)
{
__int64 v2; // x19
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
if ( *(_QWORD *)(result + 1496) )
{
v2 = result;
v3 = EditorSFXManager::sharedState(a2);
v4 = EditorSFXManager::playAction(v3, 112, 110);
v5 = GameManager::sharedState(v4);
sub_100405A90(*(_QWORD *)(v5 + 552), *(_QWORD *)(v2 + 1496));
return EditorUI::updateButtons(v2);
}
return result;
}