//
// GameObject::copyGroups from 0x10068fd00 to 0x10068fd65 (101 bytes)
//
// 4 xrefs:
// > PlayLayer::addObject @ 0x10007f843
// > PlayLayer::addObject @ 0x10007f9db
// > PlayLayer::addObject @ 0x10007ff51
// > LevelEditorLayer::addSpecial @ 0x1000af6cd
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:35:07 +0000
//
__int64 __fastcall GameObject::copyGroups(__int64 a1, __int64 a2)
{
__int64 v2; // r15
__int64 result; // rax
if ( *(__int16 *)(a2 + 1168) > 0 )
{
v2 = 0;
do
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1600LL))(a1);
++v2;
result = *(__int16 *)(a2 + 1168);
}
while ( v2 < result );
}
return result;
}