//
// GJBaseGameLayer::removeFromGroups from 0x10028e07c to 0x10028e0e8 (108 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::removeSpecial @ 0x1003fb8a4
// > sub_100405BC8 @ 0x100405be8
//
// 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 11:02:02 +0000
//
__int64 __fastcall GJBaseGameLayer::removeFromGroups(__int64 result, __int64 a2)
{
__int64 v3; // x20
__int64 v4; // x21
__int64 v5; // x0
if ( *(__int16 *)(a2 + 1168) >= 1 )
{
v3 = result;
v4 = 0;
do
{
v5 = sub_1002FA6C4(a2, v4);
result = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v3 + 1360LL))(v3, a2, v5);
v4 = (unsigned int)(v4 + 1);
}
while ( (int)v4 < *(__int16 *)(a2 + 1168) );
}
return result;
}