//
// LevelEditorLayer::resetToggledGroupsAndObjects from 0x368008 to 0x368042 (58 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::onPlaytest @ 0x36eb7e
// > SetGroupIDLayer::onClose @ 0x508a00
//
// 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 LevelEditorLayer::resetToggledGroupsAndObjects(LevelEditorLayer *a1)
{
cocos2d::CCArray *m_objects; // r3
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r5
cocos2d::CCObject **v5; // r4
GameObject *v6; // r0
GameObject *v7; // t1
m_objects = a1->m_objects;
if ( m_objects )
{
data = m_objects->data;
if ( data->num )
{
arr = data->arr;
v5 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v5 )
{
v7 = (GameObject *)*arr++;
v6 = v7;
if ( !v7 )
break;
GameObject::resetGroupDisabled(v6);
}
}
}
LevelEditorLayer::resetToggledGroups(a1);
}