//
// EditorUI::resetSelectedObjectsColor from 0x7c6500 to 0x7c65b4 (180 bytes)
//
// 3 xrefs:
// > EditorUI::colorSelectClosed @ 0x7c65f0
// > EditorUI::colorSelectClosed @ 0x7c6610
// > ??> @ 0xdea90
//
// 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::resetSelectedObjectsColor(EditorUI *this)
{
__int64 v2; // x0
__int64 result; // x0
unsigned int *v4; // x1
__int64 *v5; // x19
__int64 *v6; // x20
v2 = *((_QWORD *)this + 187);
if ( v2 )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1528LL))(v2, 65280);
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112));
if ( (_DWORD)result )
{
result = *((_QWORD *)this + 112);
if ( result )
{
v4 = *(unsigned int **)(result + 56);
result = *v4;
if ( (_DWORD)result )
{
v5 = *((__int64 **)v4 + 2);
v6 = &v5[(unsigned int)result - 1];
if ( v5 <= v6 )
{
for ( result = *v5; *v5; result = *v5 )
{
++v5;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 1528LL))(result, 65280);
if ( v6 < v5 )
break;
}
}
}
}
}
return result;
}