//
// EditorUI::onPaste from 0x10018aa70 to 0x10018aac4 (84 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x1001630ec
// > EditorUI::init @ 0x10046fc9c
//
// 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::onPaste(__int64 a1)
{
__int64 result; // x0
__n128 v3; // q0
__int64 v4; // x0
result = GameManager::sharedState(a1);
if ( (*(char *)(result + 535) & 0x8000000000000000LL) == 0 )
{
if ( !*(_BYTE *)(result + 535) )
return result;
goto LABEL_3;
}
if ( *(_QWORD *)(result + 520) )
{
LABEL_3:
v4 = EditorSFXManager::sharedState(v3);
EditorSFXManager::playAction_1(v4, 111);
return EditorUI::doPasteObjects(a1, 0);
}
return result;
}