//
// EditorUI::onCopy from 0x1401c5c50 to 0x1401c5c9b (75 bytes)
//
// 2 xrefs:
// > EditorUI::init @ 0x1401ab506
// > ??> @ 0x14091a750
//
// 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
//
unsigned int __fastcall EditorUI::onCopy(__int64 a1)
{
unsigned int result; // eax
__int64 v3; // rax
if ( *(_QWORD *)(a1 + 1568) || (result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944))) != 0 )
{
v3 = EditorSFXManager::sharedState();
EditorSFXManager::playAction(v3, 110);
return EditorUI::doCopyObjects(a1, 0);
}
return result;
}