//
// EditorUI::onPasteColor from 0x1005b8690 to 0x1005b86fe (110 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x10060bf26
// > EditorUI::init @ 0x1000070b8
//
// This function is hookable on this platform (idp: pc, 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 12:32:42 +0000
//
__int64 __fastcall EditorUI::onPasteColor(__int64 a1)
{
__int64 v1; // rbx
__int64 result; // rax
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rsi
__int64 v6; // rdx
v1 = a1;
if ( *(_QWORD *)(a1 + 1496) || (a1 = *(_QWORD *)(a1 + 896), result = sub_1007FEF90(a1), (_DWORD)result) )
{
v3 = EditorSFXManager::sharedState(a1);
EditorSFXManager::playAction(v3, 114, 111);
v4 = GameManager::sharedState();
v5 = *(_QWORD *)(v1 + 1496);
LevelEditorLayer::pasteColorState(*(_QWORD *)(v4 + 552), v5, *(_QWORD *)(v1 + 896));
return EditorUI::updateObjectInfoLabel(v1, v5, v6);
}
return result;
}