//
// EditorUI::resetSelectedObjectsColor from 0x48448c to 0x48450a (126 bytes)
//
// 1 xrefs:
// > EditorUI::colorSelectClosed @ 0x48453e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:49:24 +0000
//
int __fastcall EditorUI::resetSelectedObjectsColor(EditorUI *this)
{
int v2; // r0
int result; // r0
int v4; // r3
_DWORD *v5; // r2
int *v6; // r4
int *v7; // r5
int v8; // t1
v2 = *((_DWORD *)this + 249);
if ( v2 )
return (*(int (__fastcall **)(int, int))(*(_DWORD *)v2 + 764))(v2, 65280);
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167));
if ( result )
{
v4 = *((_DWORD *)this + 167);
if ( v4 )
{
v5 = *(_DWORD **)(v4 + 52);
if ( *v5 )
{
v6 = (int *)v5[3];
v7 = &v6[*v5 - 1];
while ( v6 <= v7 )
{
v8 = *v6++;
result = v8;
if ( !v8 )
break;
result = (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 764))(result, 65280);
}
}
}
}
return result;
}