//
// EditorUI::onPasteState from 0x1005b8620 to 0x1005b868e (110 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x10060c558
// > EditorUI::init @ 0x100007016
//
// 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 12:32:42 +0000
//
__int64 __fastcall EditorUI::onPasteState(__int64 a1)
{
__int64 v1; // rbx
__int64 result; // rax
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rsi
__int64 v6; // rdx
v1 = a1;
if ( *(_QWORD *)(a1 + 1496) || (a1 = *(_QWORD *)(a1 + 896), result = sub_1007FEF90(a1), (_DWORD)result) )
{
v3 = EditorSFXManager::sharedState(a1);
EditorSFXManager::playAction(v3, 113, 111);
v4 = GameManager::sharedState();
v5 = *(_QWORD *)(v1 + 1496);
LevelEditorLayer::pasteAttributeState(*(_QWORD *)(v4 + 552), v5, *(_QWORD *)(v1 + 896));
return EditorUI::updateObjectInfoLabel(v1, v5, v6);
}
return result;
}