//
// EditorUI::showLiveColorSelectForModeSpecial from 0x7c5e48 to 0x7c5ef4 (172 bytes)
//
// 2 xrefs:
// > CustomizeObjectLayer::onLiveEdit @ 0x9836ac
// > ??> @ 0x8c1e8
//
// 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::showLiveColorSelectForModeSpecial(EditorUI *this, __int64 a2)
{
GameObject *v3; // x0
__int64 v4; // x1
EditorUI *v5; // x0
int v6; // w0
__int64 v7; // x0
unsigned int *v8; // x2
GameObject **v9; // x20
GameObject **v10; // x21
GameObject *v11; // x0
int v14[2]; // [xsp+38h] [xbp+38h]
v3 = *((GameObject **)this + 187);
if ( v3 )
{
GameObject::deselectObject(v3);
LODWORD(v4) = a2;
}
else
{
v6 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112));
v4 = a2;
if ( v6 )
{
v7 = *((_QWORD *)this + 112);
if ( v7 )
{
v8 = *(unsigned int **)(v7 + 56);
if ( *v8 )
{
v9 = *((GameObject ***)v8 + 2);
v10 = &v9[*v8 - 1];
if ( v9 <= v10 )
{
while ( 1 )
{
v11 = *v9;
if ( !*v9 )
break;
*(_QWORD *)v14 = v4;
++v9;
GameObject::deselectObject(v11);
v4 = *(_QWORD *)v14;
if ( v10 < v9 )
{
v5 = this;
return EditorUI::showLiveColorSelectForMode(v5, v4);
}
}
}
}
}
}
}
v5 = this;
return EditorUI::showLiveColorSelectForMode(v5, v4);
}