//
// LevelEditorLayer::applyGroupState from 0x1000f3af0 to 0x1000f3b89 (153 bytes)
//
// 0 xrefs:
//
// 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 v4; // r12d
__int64 GroupID; // r13
GJBaseGameLayer::removeFromGroups(a1, a2);
GameObject::resetGroups(a2);
GameObject::resetGroupDisabled(a2);
if ( a3->m_groupCount > 0 )
{
v4 = 0;
do
{
GroupID = (unsigned int)GameObject::getGroupID(a3, v4);
if ( ((unsigned int (__fastcall *)(GameObject *, __int64))a2->addToGroup)(a2, GroupID) == 1 )
((void (__fastcall *)(LevelEditorLayer *, GameObject *, _QWORD, __int64))a1->addToGroup)(
a1,
a2,
(unsigned int)GroupID,
1);
++v4;
}
while ( v4 < a3->m_groupCount );
}
}