//
// LevelEditorLayer::applyGroupState from 0x100363af4 to 0x100363ba4 (176 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::copyObjectState @ 0x100363aa8
// > LevelEditorLayer::pasteGroupState @ 0x100363d44
// > LevelEditorLayer::pasteGroupState @ 0x100363d74
//
// 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 __fastcall LevelEditorLayer::applyGroupState(LevelEditorLayer *a1, GameObject *a2, GameObject *a3)
{
int v6; // w22
__int64 GroupID; // x23
GJBaseGameLayer::removeFromGroups(a1, a2);
GameObject::resetGroups(a2);
GameObject::resetGroupDisabled(a2);
if ( a3->m_groupCount >= 1 )
{
v6 = 0;
do
{
GroupID = GameObject::getGroupID(a3, v6);
if ( ((unsigned int (__fastcall *)(GameObject *, __int64))a2->addToGroup)(a2, GroupID) == 1 )
((void (__fastcall *)(LevelEditorLayer *, GameObject *, __int64, __int64))a1->addToGroup)(a1, a2, GroupID, 1);
++v6;
}
while ( v6 < a3->m_groupCount );
}
}