//
// GJBaseGameLayer::addToGroups from 0x14032bbc0 to 0x14032bc4f (143 bytes)
//
// 7 xrefs:
// > LevelEditorLayer::addSpecial @ 0x1403f5137
// > PlayLayer::addObject @ 0x14050c7b1
// > PlayLayer::addObject @ 0x14050ce38
// > PlayLayer::addObject @ 0x14050d36e
// > ??> @ 0x1408b5f48
// > ??> @ 0x1408b5f58
// > ??> @ 0x14091f1c0
//
// 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:30:29 +0000
//
void __fastcall GJBaseGameLayer::addToGroups(__int64 a1, __int64 a2, unsigned __int8 a3)
{
int v6; // ebp
__int64 v7; // rsi
unsigned __int64 v8; // rdi
__int64 v9; // rax
__int64 v10; // r8
if ( *(__int16 *)(a2 + 1176) > 0 )
{
v6 = 0;
v7 = 0;
v8 = 0;
do
{
if ( v8 <= 9 && (v9 = *(_QWORD *)(a2 + 1168)) != 0 )
v10 = (unsigned int)*(__int16 *)(v7 + v9);
else
v10 = 0;
(*(void (__fastcall **)(__int64, __int64, __int64, _QWORD))(*(_QWORD *)a1 + 1200LL))(a1, a2, v10, a3);
++v6;
++v8;
v7 += 2;
}
while ( v6 < *(__int16 *)(a2 + 1176) );
}
}