//
// EditorUI::doPasteInPlace from 0x6f3394 to 0x6f3412 (126 bytes)
//
// 1 xrefs:
// > EditorUI::onPasteInPlace @ 0x6f342e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:37 +0000
//
int __fastcall EditorUI::doPasteInPlace(EditorUI *this, int a2)
{
int result; // r0
int v5; // r3
int v6; // r3
int v7; // r0
int v8[3]; // [sp+0h] [bp-14h] BYREF
result = GameManager::sharedState(this);
v5 = *(unsigned __int8 *)(result + 388);
if ( (v5 & 1) != 0 )
v6 = *(_DWORD *)(result + 392);
else
v6 = v5 >> 1;
if ( v6 )
{
v7 = GameManager::sharedState((GameManager *)result);
std::string::basic_string(v8, v7 + 388);
EditorUI::pasteObjects((int)this, (unsigned __int8 *)v8, a2, 0);
std::string::~string((int)v8);
EditorBuildStats::noteAction(*((_DWORD *)this + 236) + 12104);
EditorUI::updateButtons((cocos2d::CCArray **)this);
return EditorUI::updateObjectInfoLabel((cocos2d::CCArray **)this);
}
return result;
}