//
// EditorUI::onPasteState from 0x10018af88 to 0x10018afec (100 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x10016306c
// > EditorUI::init @ 0x1004700e4
//
// 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::onPasteState(__int64 a1, __n128 a2)
{
__int64 result; // x0
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
if ( *(_QWORD *)(a1 + 1496) || (result = sub_1002E757C(*(_QWORD *)(a1 + 896)), (_DWORD)result) )
{
v4 = EditorSFXManager::sharedState(a2);
v5 = EditorSFXManager::playAction(v4, 113, 111);
v6 = GameManager::sharedState(v5);
sub_100405D0C(*(_QWORD *)(v6 + 552), *(_QWORD *)(a1 + 1496), *(_QWORD *)(a1 + 896));
return EditorUI::updateObjectInfoLabel(a1);
}
return result;
}