//
// GJBaseGameLayer::removeFromGroups from 0x14032bd40 to 0x14032bdca (138 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::removeSpecial @ 0x1403f57a6
// > LevelEditorLayer::applyGroupState @ 0x140400dc7
// > ??> @ 0x1408b5fb4
// > ??> @ 0x1408b5fc4
// > ??> @ 0x14091f208
//
// 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::removeFromGroups(__int64 a1, __int64 a2)
{
int v4; // ebp
__int64 v5; // rsi
unsigned __int64 v6; // rdi
__int64 v7; // rax
__int64 v8; // r8
if ( *(__int16 *)(a2 + 1176) > 0 )
{
v4 = 0;
v5 = 0;
v6 = 0;
do
{
if ( v6 <= 9 && (v7 = *(_QWORD *)(a2 + 1168)) != 0 )
v8 = (unsigned int)*(__int16 *)(v5 + v7);
else
v8 = 0;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 1208LL))(a1, a2, v8);
++v4;
++v6;
v5 += 2;
}
while ( v4 < *(__int16 *)(a2 + 1176) );
}
}