//
// GJBaseGameLayer::removeFromGroups from 0x1001f25a4 to 0x1001f2610 (108 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::removeSpecial @ 0x10035b91c
// > LevelEditorLayer::applyGroupState @ 0x100363b14
//
// 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 GJBaseGameLayer::removeFromGroups(GJBaseGameLayer *a1, GameObject *a2)
{
int v4; // w21
__int64 GroupID; // x0
if ( a2->m_groupCount >= 1 )
{
v4 = 0;
do
{
GroupID = GameObject::getGroupID(a2, v4);
((void (__fastcall *)(GJBaseGameLayer *, GameObject *, __int64))a1->removeFromGroup)(a1, a2, GroupID);
++v4;
}
while ( v4 < a2->m_groupCount );
}
}