//
// EditorUI::onPaste from 0x1401c5e20 to 0x1401c5e98 (120 bytes)
//
// 3 xrefs:
// > EditorUI::handleEditorAction @ 0x1401c23d3
// > EditorUI::init @ 0x1401ab5ad
// > ??> @ 0x14091a768
//
// 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:04 +0000
//
__int64 __fastcall EditorUI::onPaste(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rax
void *v4; // [rsp+40h] [rbp+18h]
result = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v4 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
result = qword_14090BFD0;
}
if ( *(_QWORD *)(result + 536) )
{
v3 = EditorSFXManager::sharedState();
EditorSFXManager::playAction(v3, 111);
return EditorUI::doPasteObjects(a1, 0);
}
return result;
}