//
// LevelEditorLayer::resetToggledGroupsAndObjects from 0x461d4a to 0x461d84 (58 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::onPlaytest @ 0x4683a8
// > SetGroupIDLayer::onClose @ 0x6397d2
//
// 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:48:53 +0000
//
_DWORD *__fastcall LevelEditorLayer::resetToggledGroupsAndObjects(LevelEditorLayer *this)
{
int v2; // r3
_DWORD *v4; // r2
int *v5; // r5
int *v6; // r4
int v7; // r0
int v8; // t1
v2 = *((_DWORD *)this + 522);
if ( v2 )
{
v4 = *(_DWORD **)(v2 + 52);
if ( *v4 )
{
v5 = (int *)v4[3];
v6 = &v5[*v4 - 1];
while ( v5 <= v6 )
{
v8 = *v5++;
v7 = v8;
if ( !v8 )
break;
GameObject::resetGroupDisabled(v7);
}
}
}
return LevelEditorLayer::resetToggledGroups(this);
}