//
// EditorUI::showLiveColorSelectForModeSpecial from 0x68e34c to 0x68e3f8 (172 bytes)
//
// 2 xrefs:
// > CustomizeObjectLayer::onLiveEdit @ 0x840f30
// > ??> @ 0x67440
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
void EditorUI::showLiveColorSelectForModeSpecial(EditorUI *a1, int a2)
{
GameObject *m_selectedObject; // x0
__int64 v4; // x1
EditorUI *v5; // x0
int v6; // w0
cocos2d::CCArray *m_selectedObjects; // x0
cocos2d::ccArray *data; // x2
GameObject **arr; // x20
GameObject **v10; // x21
GameObject *v11; // x0
int v12[2]; // [xsp+38h] [xbp+38h]
int v13[2]; // [xsp+38h] [xbp+38h]
m_selectedObject = a1->m_selectedObject;
*(_QWORD *)v12 = *(_QWORD *)&a2;
if ( m_selectedObject )
{
GameObject::deselectObject(m_selectedObject);
LODWORD(v4) = v12[0];
}
else
{
v6 = cocos2d::CCArray::count(a1->m_selectedObjects);
v4 = *(_QWORD *)v12;
if ( v6 )
{
m_selectedObjects = a1->m_selectedObjects;
if ( m_selectedObjects )
{
data = m_selectedObjects->data;
if ( data->num )
{
arr = (GameObject **)data->arr;
v10 = &arr[data->num - 1];
if ( arr <= v10 )
{
while ( 1 )
{
v11 = *arr;
if ( !*arr )
break;
*(_QWORD *)v13 = v4;
++arr;
GameObject::deselectObject(v11);
v4 = *(_QWORD *)v13;
if ( v10 < arr )
{
v5 = a1;
goto LABEL_4;
}
}
}
}
}
}
}
v5 = a1;
LABEL_4:
EditorUI::showLiveColorSelectForMode(v5, v4);
}