//
// GameObject::copyGroups from 0x646ba8 to 0x646c10 (104 bytes)
//
// 5 xrefs:
// > PlayLayer::addObject @ 0x5cca6c
// > PlayLayer::addObject @ 0x5ccc24
// > PlayLayer::addObject @ 0x5ccd84
// > LevelEditorLayer::addSpecial @ 0x67076c
// > ??> @ 0x51f60
//
// 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 GameObject::copyGroups(GameObject *a1)
{
GameObject *v1; // x1
GameObject *v3; // x20
int v4; // w19
int v5; // w1
int (__fastcall *addToGroup)(GameObject *__hidden, int); // x22
unsigned int GroupID; // w0
v3 = v1;
v4 = 0;
while ( v3->m_groupCount > v4 )
{
v5 = v4++;
addToGroup = a1->addToGroup;
GroupID = GameObject::getGroupID(v3, v5);
addToGroup(a1, GroupID);
}
}