//
// GJBaseGameLayer::removeFromGroups from 0x10013d190 to 0x10013d1e6 (86 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::removeSpecial @ 0x1000e269c
// > LevelEditorLayer::copyObjectState @ 0x1000f3a51
// > LevelEditorLayer::applyGroupState @ 0x1000f3b07
// > LevelEditorLayer::pasteGroupState @ 0x1000f3d56
// > LevelEditorLayer::pasteGroupState @ 0x1000f3e2f
//
// 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 v2; // r15d
unsigned int GroupID; // eax
if ( a2->m_groupCount > 0 )
{
v2 = 0;
do
{
GroupID = GameObject::getGroupID(a2, v2);
((void (__fastcall *)(GJBaseGameLayer *, GameObject *, _QWORD))a1->removeFromGroup)(a1, a2, GroupID);
++v2;
}
while ( v2 < a2->m_groupCount );
}
}