//
// LevelEditorLayer::applyGroupState from 0x368adc to 0x368b32 (86 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::pasteGroupState @ 0x368b46
// > LevelEditorLayer::pasteGroupState @ 0x368b72
// > LevelEditorLayer::copyObjectState @ 0x368c98
//
// 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::applyGroupState(LevelEditorLayer *a1, GameObject *a2, GameObject *a3)
{
int i; // r5
int GroupID; // r8
GJBaseGameLayer::removeFromGroups(a1, a2);
GameObject::resetGroups(a2);
GameObject::resetGroupDisabled(a2);
for ( i = 0; i < a3->m_groupCount; ++i )
{
GroupID = GameObject::getGroupID(a3, i);
if ( a2->addToGroup(a2, GroupID) == 1 )
((void (__fastcall *)(LevelEditorLayer *, GameObject *, int))a1->addToGroup)(a1, a2, GroupID);
}
}