//
// EditorUI::onPaste from 0xbda078 to 0xbda0d0 (88 bytes)
//
// 4 xrefs:
// > EditorUI::handleEditorAction @ 0xbd83c8
// > ??> @ 0x102c10
// > EditorUI::init @ 0x7d02f4
// > ??> @ 0x1547e70
//
// 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 13:03:42 +0000
//
__int64 __fastcall EditorUI::onPaste(EditorUI *this, cocos2d::CCObject *a2)
{
unsigned __int8 *v3; // x2
__int64 result; // x0
__int64 v5; // x1
EditorSFXManager *v6; // x0
v3 = (unsigned __int8 *)(GameManager::sharedState(this) + 512);
result = *v3;
v5 = (unsigned __int8)result >> 1;
if ( (result & 1) != 0 )
v5 = *((_QWORD *)v3 + 1);
if ( v5 )
{
v6 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)result);
EditorSFXManager::playAction(v6, 111);
return EditorUI::doPasteObjects(this, 0);
}
return result;
}