//
// GJBaseGameLayer::removeFromGroups from 0x9a058c to 0x9a05f8 (108 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::applyGroupState @ 0x78d598
// > LevelEditorLayer::removeSpecial @ 0x790728
// > ??> @ 0xb2fa8
//
// This function is hookable on this platform (idp: arm, 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:58:06 +0000
//
__int64 __fastcall GJBaseGameLayer::removeFromGroups(GJBaseGameLayer *this, GameObject *a2)
{
int v4; // w19
__int64 result; // x0
unsigned int v6; // w1
unsigned int GroupID; // w0
v4 = 0;
result = (unsigned int)*((__int16 *)a2 + 584);
if ( (int)result > 0 )
{
do
{
v6 = v4++;
GroupID = GameObject::getGroupID(a2, v6);
(*(void (__fastcall **)(GJBaseGameLayer *, GameObject *, _QWORD))(*(_QWORD *)this + 1360LL))(this, a2, GroupID);
result = (unsigned int)*((__int16 *)a2 + 584);
}
while ( (int)result > v4 );
}
return result;
}