//
// GameObject::copyGroups from 0x10025d4e0 to 0x10025d554 (116 bytes)
//
// 4 xrefs:
// > PlayLayer::addObject @ 0x100118bb0
// > PlayLayer::addObject @ 0x100118fa0
// > PlayLayer::addObject @ 0x1001192a4
// > LevelEditorLayer::addSpecial @ 0x100359dbc
//
// 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; // x1
__int64 v2; // x19
unsigned __int64 v4; // x21
__int64 v5; // x8
__int64 v6; // x1
if ( *(__int16 *)(v1 + 1168) >= 1 )
{
v2 = v1;
v4 = 0;
do
{
if ( v4 <= 9 && (v5 = *(_QWORD *)(v2 + 1160)) != 0 )
v6 = (unsigned int)*(__int16 *)(v5 + 2 * v4);
else
v6 = 0;
((void (__fastcall *)(GameObject *, __int64))a1->addToGroup)(a1, v6);
++v4;
}
while ( (__int64)v4 < *(__int16 *)(v2 + 1168) );
}
}