//
// GJBaseGameLayer::removeFromGroups from 0x470d40 to 0x470d76 (54 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::applyGroupState @ 0x368ae6
// > LevelEditorLayer::removeSpecial @ 0x36aba6
//
// 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 GJBaseGameLayer::removeFromGroups(GJBaseGameLayer *a1, GameObject *a2)
{
int i; // r4
int GroupID; // r0
if ( a2->m_groupCount > 0 )
{
for ( i = 0; i < a2->m_groupCount; ++i )
{
GroupID = GameObject::getGroupID(a2, i);
a1->removeFromGroup(a1, a2, GroupID);
}
}
}