//
// GameObject::copyGroups from 0x14019c940 to 0x14019c9c5 (133 bytes)
//
// 6 xrefs:
// > PlayLayer::addObject @ 0x1403ae246
// > PlayLayer::addObject @ 0x1403ae453
// > PlayLayer::addObject @ 0x1403ae99c
// > ??> @ 0x14067928c
// > ??> @ 0x14067929c
// > ??> @ 0x1406cbdf0
//
// 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)
{
__int64 v1; // rdx
__int64 v2; // rsi
int v4; // ebp
__int64 v5; // rdi
unsigned __int64 v6; // rbx
__int64 v7; // rax
__int64 v8; // rdx
v2 = v1;
if ( *(__int16 *)(v1 + 1176) > 0 )
{
v4 = 0;
v5 = 0;
v6 = 0;
do
{
if ( v6 <= 9 && (v7 = *(_QWORD *)(v2 + 1168)) != 0 )
v8 = (unsigned int)*(__int16 *)(v5 + v7);
else
v8 = 0;
a1->addToGroup(a1, v8);
++v4;
++v6;
v5 += 2;
}
while ( v4 < *(__int16 *)(v2 + 1176) );
}
}