//
// GameObject::copyGroups from 0x140299990 to 0x140299a15 (133 bytes)
//
// 6 xrefs:
// > PlayLayer::addObject @ 0x14050cb93
// > PlayLayer::addObject @ 0x14050ce2a
// > PlayLayer::addObject @ 0x14050d360
// > ??> @ 0x1408af614
// > ??> @ 0x1408af624
// > ??> @ 0x14091d774
//
// 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 11:29:12 +0000
//
void __fastcall GameObject::copyGroups(__int64 a1, __int64 a2)
{
int v4; // ebp
__int64 v5; // rdi
unsigned __int64 v6; // rbx
__int64 v7; // rax
__int64 v8; // rdx
if ( *(__int16 *)(a2 + 1176) > 0 )
{
v4 = 0;
v5 = 0;
v6 = 0;
do
{
if ( v6 <= 9 && (v7 = *(_QWORD *)(a2 + 1168)) != 0 )
v8 = (unsigned int)*(__int16 *)(v5 + v7);
else
v8 = 0;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1448LL))(a1, v8);
++v4;
++v6;
v5 += 2;
}
while ( v4 < *(__int16 *)(a2 + 1176) );
}
}