//
// EditorUI::showLiveColorSelectForMode from 0x1401be2d0 to 0x1401be391 (193 bytes)
//
// 3 xrefs:
// > CustomizeObjectLayer::onLiveEdit @ 0x14014209e
// > LevelSettingsLayer::onLiveEdit @ 0x14045ab9d
// > ??> @ 0x14091a4bc
//
// 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 11:28:02 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall EditorUI::showLiveColorSelectForMode(__int64 a1, unsigned int a2)
{
__int64 v4; // rax
__int64 ColorAction; // rax
_QWORD *v6; // rax
void *v8; // [rsp+30h] [rbp+8h]
EditorUI::closeLiveColorSelect(a1);
EditorUI::closeLiveHSVSelect(a1);
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v8 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
ColorAction = GJEffectManager::getColorAction(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v4 + 568) + 3528LL) + 320LL), a2);
v6 = ColorSelectLiveOverlay::create(ColorAction, 0, 0);
*(_QWORD *)(a1 + 1616) = v6;
v6[92] = a1 + 416;
*(_QWORD *)(*(_QWORD *)(a1 + 1616) + 568LL) = a1;
return (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1616) + 1064LL))(*(_QWORD *)(a1 + 1616));
}