//
// GJBaseGameLayer::removeFromGroups from 0x10011a640 to 0x10011a696 (86 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::removeSpecial @ 0x1000b1ec4
// > LevelEditorLayer::copyObjectState @ 0x1000c7a11
// > LevelEditorLayer::applyGroupState @ 0x1000c7ac7
// > LevelEditorLayer::pasteGroupState @ 0x1000c7d16
// > LevelEditorLayer::pasteGroupState @ 0x1000c7def
//
// 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
//
__int64 __fastcall GJBaseGameLayer::removeFromGroups(__int64 a1, __int64 a2)
{
int v2; // r15d
unsigned int GroupID; // eax
__int64 result; // rax
if ( *(__int16 *)(a2 + 1168) > 0 )
{
v2 = 0;
do
{
GroupID = GameObject::getGroupID(a2, (unsigned int)v2);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1360LL))(a1, a2, GroupID);
++v2;
result = (unsigned int)*(__int16 *)(a2 + 1168);
}
while ( v2 < (int)result );
}
return result;
}