//
// EditorUI::onPaste from 0x1005b7e60 to 0x1005b7eb6 (86 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x10060c609
// > EditorUI::init @ 0x100006bb7
//
// 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::onPaste(__int64 a1)
{
__int64 result; // rax
unsigned int v2; // ecx
__int64 v3; // rax
result = GameManager::sharedState();
v2 = *(unsigned __int8 *)(result + 512);
if ( (v2 & 1) == 0 )
{
if ( !(v2 >> 1) )
return result;
goto LABEL_3;
}
if ( *(_QWORD *)(result + 520) )
{
LABEL_3:
v3 = EditorSFXManager::sharedState(a1);
EditorSFXManager::playAction_1(v3, 111);
return EditorUI::doPasteObjects(a1, 0);
}
return result;
}