//
// GJBaseGameLayer::addToGroups from 0x85d1dc to 0x85d250 (116 bytes)
//
// 5 xrefs:
// > PlayLayer::addObject @ 0x5cc4ec
// > PlayLayer::addObject @ 0x5cca7c
// > PlayLayer::addObject @ 0x5ccc34
// > LevelEditorLayer::addSpecial @ 0x6708c4
// > ??> @ 0x616c8
//
// 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::addToGroups(GJBaseGameLayer *a1, GameObject *a2, bool a3)
{
_BOOL4 v5; // w22
int i; // w19
int v7; // w1
int GroupID; // w0
v5 = a3;
for ( i = 0; a2->m_groupCount > i; ++i )
{
v7 = i;
GroupID = GameObject::getGroupID(a2, v7);
a1->addToGroup(a1, a2, GroupID, v5);
}
}