//
// GameObject::copyGroups from 0x76fd48 to 0x76fdb0 (104 bytes)
//
// 5 xrefs:
// > PlayLayer::addObject @ 0x6f46b0
// > PlayLayer::addObject @ 0x6f4904
// > PlayLayer::addObject @ 0x6f4a64
// > LevelEditorLayer::addSpecial @ 0x7a08b4
// > ??> @ 0x72010
//
// This function is hookable on this platform (idp: arm, 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:53:12 +0000
//
__int64 __fastcall GameObject::copyGroups(GameObject *this, GameObject *a2)
{
__int64 result; // x0
int i; // w19
unsigned int v6; // w1
void (__fastcall *v7)(GameObject *, _QWORD); // x22
unsigned int GroupID; // w0
result = (unsigned int)*((__int16 *)a2 + 584);
for ( i = 0; (int)result > i; result = (unsigned int)*((__int16 *)a2 + 584) )
{
v6 = i++;
v7 = *(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)this + 1600LL);
GroupID = GameObject::getGroupID(a2, v6);
v7(this, GroupID);
}
return result;
}