//
// EditorUI::onPasteState from 0xbd8c14 to 0xbd8c78 (100 bytes)
//
// 4 xrefs:
// > EditorUI::handleEditorAction @ 0xbd7a80
// > ??> @ 0x7d758
// > EditorUI::init @ 0x7d0760
// > ??> @ 0x1543398
//
// 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:41 +0000
//
EditorSFXManager *__fastcall EditorUI::onPasteState(EditorUI *this, cocos2d::CCObject *a2)
{
EditorSFXManager *result; // x0
EditorSFXManager *v4; // x0
GameManager *v5; // x0
__int64 v6; // x0
result = *((EditorSFXManager **)this + 187);
if ( result
|| (result = (EditorSFXManager *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)), (_DWORD)result) )
{
v4 = (EditorSFXManager *)EditorSFXManager::sharedState(result);
v5 = (GameManager *)EditorSFXManager::playAction(v4, 113, 111);
v6 = GameManager::sharedState(v5);
LevelEditorLayer::pasteAttributeState(
*(_QWORD *)(v6 + 552),
*((GameObject **)this + 187),
*((cocos2d::CCArray **)this + 112));
return (EditorSFXManager *)EditorUI::updateObjectInfoLabel(this);
}
return result;
}