//
// GJBaseGameLayer::addToGroups from 0x470d06 to 0x470d40 (58 bytes)
//
// 4 xrefs:
// > PlayLayer::addObject @ 0x310dca
// > PlayLayer::addObject @ 0x3111e2
// > PlayLayer::addObject @ 0x31142a
// > LevelEditorLayer::addSpecial @ 0x370d52
//
// 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; // r7
int i; // r4
int GroupID; // r0
v5 = a3;
if ( a2->m_groupCount > 0 )
{
for ( i = 0; i < a2->m_groupCount; ++i )
{
GroupID = GameObject::getGroupID(a2, i);
a1->addToGroup(a1, a2, GroupID, v5);
}
}
}