//
// EditorUI::showLiveColorSelectForModeSpecial from 0x100019ba0 to 0x100019cbf (287 bytes)
//
// 1 xrefs:
// > CustomizeObjectLayer::onLiveEdit @ 0x1001da2ce
//
// 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:18:55 +0000
//
__int64 __fastcall EditorUI::showLiveColorSelectForModeSpecial(_QWORD *a1, __int64 a2)
{
unsigned int v2; // r14d
__int64 v4; // rdi
__int64 v5; // rdx
__int64 v6; // rdi
__int64 v7; // rdi
__int64 v8; // rax
__int64 ColorAction; // rax
_QWORD *v10; // rax
__int64 v12; // rax
unsigned int *v13; // rax
_QWORD *v14; // r15
unsigned __int64 v15; // r12
v2 = a2;
v4 = a1[187];
if ( v4 )
{
GameObject::deselectObject(v4);
}
else if ( (unsigned int)sub_1007FEF90(a1[112]) )
{
v12 = a1[112];
if ( v12 )
{
v13 = *(unsigned int **)(v12 + 56);
if ( *v13 )
{
v14 = *((_QWORD **)v13 + 2);
v15 = (unsigned __int64)&v14[*v13 - 1];
do
{
if ( !*v14 )
break;
GameObject::deselectObject(*v14++);
}
while ( (unsigned __int64)v14 <= v15 );
}
}
}
v6 = a1[193];
if ( v6 )
{
a2 = 0;
ColorSelectLiveOverlay::closeColorSelect(v6, 0);
a1[193] = 0;
}
v7 = a1[194];
if ( v7 )
{
a2 = 0;
HSVLiveOverlay::closeColorSelect(v7, 0);
a1[194] = 0;
}
v8 = GameManager::sharedState(v7, a2, v5);
ColorAction = GJEffectManager::getColorAction(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v8 + 552) + 3272LL) + 320LL), v2);
v10 = (_QWORD *)ColorSelectLiveOverlay::createWithActions(ColorAction, 0);
a1[193] = v10;
v10[92] = a1 + 52;
v10[71] = a1;
return (*(__int64 (__fastcall **)(_QWORD *))(*v10 + 1312LL))(v10);
}