//
// GameObject::copyGroups from 0x3564fa to 0x35652e (52 bytes)
//
// 4 xrefs:
// > PlayLayer::addObject @ 0x310f6e
// > PlayLayer::addObject @ 0x3111d8
// > PlayLayer::addObject @ 0x311420
// > LevelEditorLayer::addSpecial @ 0x370b7e
//
// 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; // r1
GameObject *v3; // r5
int v4; // r4
int v5; // r1
int (__fastcall *addToGroup)(GameObject *__hidden, int); // r7
int GroupID; // r0
v3 = v1;
if ( v1->m_groupCount > 0 )
{
v4 = 0;
while ( v4 < v3->m_groupCount )
{
v5 = v4++;
addToGroup = a1->addToGroup;
GroupID = GameObject::getGroupID(v3, v5);
addToGroup(a1, GroupID);
}
}
}