//
// EditorUI::onCopyState from 0x1401c7030 to 0x1401c70d6 (166 bytes)
//
// 3 xrefs:
// > EditorUI::handleEditorAction @ 0x1401c4451
// > EditorUI::init @ 0x1401ab97a
// > ??> @ 0x14091a78c
//
// This function is hookable on this platform (idp: pc, 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:28:05 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall EditorUI::onCopyState(__int64 a1)
{
_QWORD *v2; // rbx
bool hasSoundsForAction; // al
__int64 v4; // rcx
void *v5; // [rsp+30h] [rbp+8h]
if ( *(_QWORD *)(a1 + 1568) )
{
v2 = (_QWORD *)EditorSFXManager::sharedState();
hasSoundsForAction = EditorSFXManager::hasSoundsForAction(v2, 112);
EditorSFXManager::playAction((__int64)v2, 2 * hasSoundsForAction + 110);
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v5 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
LevelEditorLayer::copyObjectState(*(_QWORD *)(v4 + 568), *(_QWORD *)(a1 + 1568));
EditorUI::updateButtons(a1);
}
}