//
// EditorUI::showLiveColorSelectForMode from 0x7c5dd4 to 0x7c5e48 (116 bytes)
//
// 4 xrefs:
// > EditorUI::showLiveColorSelectForModeSpecial @ 0x7c5e80
// > EditorUI::showLiveColorSelectForModeSpecial @ 0x7c5ef0
// > LevelSettingsLayer::onLiveEdit @ 0xb61a20
// > ??> @ 0xd6570
//
// This function is hookable on this platform (idp: arm, 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:54:08 +0000
//
__int64 __fastcall EditorUI::showLiveColorSelectForMode(EditorUI *this, int a2)
{
GameManager *v3; // x0
__int64 v4; // x0
ColorSelectLiveOverlay *ColorAction; // x0
ColorAction *v6; // x2
__int64 v7; // x0
EditorUI::closeLiveColorSelect((__int64)this);
v3 = (GameManager *)EditorUI::closeLiveHSVSelect((__int64)this);
v4 = GameManager::sharedState(v3);
ColorAction = (ColorSelectLiveOverlay *)GJEffectManager::getColorAction(
*(GJEffectManager **)(*(_QWORD *)(*(_QWORD *)(v4 + 552) + 3272LL) + 320LL),
a2);
v7 = ColorSelectLiveOverlay::createWithActions(ColorAction, nullptr, v6);
*((_QWORD *)this + 193) = v7;
*(_QWORD *)(v7 + 736) = (char *)this + 416;
*(_QWORD *)(*((_QWORD *)this + 193) + 568LL) = this;
return (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 193) + 1312LL))(*((_QWORD *)this + 193));
}