//
// GJBaseGameLayer::removeFromGroups from 0x5907a6 to 0x5907dc (54 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::applyGroupState @ 0x4624b6
// > LevelEditorLayer::removeSpecial @ 0x46437e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:05 +0000
//
int __fastcall GJBaseGameLayer::removeFromGroups(int this, GameObject *a2)
{
int v2; // r6
signed int i; // r4
int GroupID; // r0
v2 = this;
if ( *((__int16 *)a2 + 510) > 0 )
{
for ( i = 0; i < *((__int16 *)a2 + 510); ++i )
{
GroupID = GameObject::getGroupID(a2, i);
this = (*(int (__fastcall **)(int, GameObject *, int))(*(_DWORD *)v2 + 680))(v2, a2, GroupID);
}
}
return this;
}