//
// EditorUI::doPasteInPlace from 0x10003e450 to 0x10003e4fd (173 bytes)
//
// 1 xrefs:
// > EditorUI::onPasteInPlace @ 0x10003e447
//
// 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
//
void __fastcall EditorUI::doPasteInPlace(EditorUI *a1, bool a2)
{
double v2; // xmm0_8
GameManager *v3; // rax
unsigned int sizex2; // ecx
GameManager *v5; // rax
std::string v6[2]; // [rsp+0h] [rbp-30h] BYREF
v3 = GameManager::sharedState();
sizex2 = v3->m_editorClipboard.m_data.m_short.sizex2;
if ( (sizex2 & 1) != 0 )
{
if ( !v3->m_editorClipboard.m_data.m_long.size )
return;
}
else if ( !(sizex2 >> 1) )
{
return;
}
v5 = GameManager::sharedState();
if ( (v5->m_editorClipboard.m_data.m_short.sizex2 & 1) != 0 )
sub_100006B70(v6, v5->m_editorClipboard.m_data.m_long.longStorage, v5->m_editorClipboard.m_data.m_long.size, v2);
else
v6[0] = (std::string)v5->m_editorClipboard;
EditorUI::pasteObjects(a1, v6, a2, 0);
if ( (*(_BYTE *)&v6[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(v6[0].__r_.__value_.__l.__data_);
EditorUI::updateButtons(a1);
EditorUI::updateObjectInfoLabel(a1);
}