//
// EditorUI::onCopyState from 0x140114360 to 0x1401143d4 (116 bytes)
//
// 3 xrefs:
// > EditorUI::init @ 0x1400e0fdb
// > ??> @ 0x1406c90cc
// > ??> @ 0x1406c90d8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void EditorUI::onCopyState(EditorUI *a1, cocos2d::CCObject *a2)
{
__int64 v3; // rcx
void *v4; // [rsp+30h] [rbp+8h]
if ( a1->m_selectedObject )
{
v3 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v4 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = qword_1406C2ED8;
}
LevelEditorLayer::copyObjectState(*(LevelEditorLayer **)(v3 + 528), a1->m_selectedObject);
EditorUI::updateButtons(a1);
}
}