//
// GJBaseGameLayer::addToGroups from 0x10011a3e0 to 0x10011a448 (104 bytes)
//
// 4 xrefs:
// > PlayLayer::addObject @ 0x10007f5bf
// > PlayLayer::addObject @ 0x10007f853
// > PlayLayer::addObject @ 0x10007ff61
// > LevelEditorLayer::addSpecial @ 0x1000afa91
//
// 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:24:35 +0000
//
void __fastcall GJBaseGameLayer::addToGroups(__int64 a1, __int64 a2, unsigned __int8 a3)
{
unsigned int v3; // r15d
unsigned int v4; // r12d
unsigned int GroupID; // eax
if ( *(__int16 *)(a2 + 1168) > 0 )
{
v3 = 0;
v4 = a3;
do
{
GroupID = GameObject::getGroupID(a2, v3);
(*(void (__fastcall **)(__int64, __int64, _QWORD, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, a2, GroupID, v4);
++v3;
}
while ( (int)v3 < *(__int16 *)(a2 + 1168) );
}
}