//
// EditorUI::resetSelectedObjectsColor from 0x14011f770 to 0x14011f831 (193 bytes)
//
// 4 xrefs:
// > EditorUI::colorSelectClosed @ 0x14011f747
// > ??> @ 0x14066ff54
// > ??> @ 0x14066ff64
// > ??> @ 0x1406c957c
//
// 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
//
void EditorUI::resetSelectedObjectsColor(EditorUI *a1)
{
GameObject *m_selectedObject; // rcx
cocos2d::CCArray *m_selectedObjects; // rax
cocos2d::ccArray *data; // rbx
__int64 num; // rax
cocos2d::CCObject **arr; // rbx
cocos2d::CCObject **i; // rdi
cocos2d::CCObject *v8; // rcx
__int16 v9; // [rsp+30h] [rbp+8h] BYREF
char v10; // [rsp+32h] [rbp+Ah]
m_selectedObject = a1->m_selectedObject;
if ( m_selectedObject )
{
v9 = -256;
v10 = 0;
m_selectedObject->selectObject(m_selectedObject, (cocos2d::ccColor3B *)&v9);
}
else if ( cocos2d::CCArray::count(a1->m_selectedObjects) )
{
m_selectedObjects = a1->m_selectedObjects;
if ( m_selectedObjects )
{
data = m_selectedObjects->data;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
for ( i = &arr[num - 1]; arr <= i; ++arr )
{
v8 = *arr;
if ( !*arr )
break;
v9 = -256;
v10 = 0;
v8->__vftable[18].setTag(v8, (int)&v9);
}
}
}
}
}