//
// GameObject::copyGroups from 0x44dbd2 to 0x44dc06 (52 bytes)
//
// 4 xrefs:
// > PlayLayer::addObject @ 0x4004ae
// > PlayLayer::addObject @ 0x40071e
// > PlayLayer::addObject @ 0x400966
// > LevelEditorLayer::addSpecial @ 0x46e47e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:35 +0000
//
int __fastcall GameObject::copyGroups(int this, GameObject *a2)
{
int v2; // r6
signed int v4; // r4
unsigned int v5; // r1
int (__fastcall *v6)(int, int); // r7
int GroupID; // r0
v2 = this;
if ( *((__int16 *)a2 + 510) > 0 )
{
v4 = 0;
while ( v4 < *((__int16 *)a2 + 510) )
{
v5 = v4++;
v6 = *(int (__fastcall **)(int, int))(*(_DWORD *)v2 + 800);
GroupID = GameObject::getGroupID(a2, v5);
this = v6(v2, GroupID);
}
}
return this;
}