//
// GameObject::copyGroups from 0x1005be650 to 0x1005be6b5 (101 bytes)
//
// 4 xrefs:
// > PlayLayer::addObject @ 0x1000b22c5
// > PlayLayer::addObject @ 0x1000b244d
// > PlayLayer::addObject @ 0x1000b29d3
// > LevelEditorLayer::addSpecial @ 0x1000dfedd
//
// 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 GameObject::copyGroups(GameObject *a1)
{
__int64 v1; // rsi
__int64 v2; // r15
if ( *(__int16 *)(v1 + 1168) > 0 )
{
v2 = 0;
do
{
((void (__fastcall *)(GameObject *))a1->addToGroup)(a1);
++v2;
}
while ( v2 < *(__int16 *)(v1 + 1168) );
}
}