//
// GJBaseGameLayer::removeFromGroup from 0x10028e0e8 to 0x10028e190 (168 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::removeFromGroup @ 0x100403720
// > ??> @ 0x1008df960
// > ??> @ 0x100918fe8
//
// 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::removeFromGroup(__int64 a1, __int64 a2, __int64 a3)
{
__int64 Group; // x0
__int64 OptimizedGroup; // x0
__int64 result; // x0
Group = GJBaseGameLayer::getGroup(a1, a3);
sub_1002E765C(Group, a2, 1);
if ( *(_BYTE *)(a2 + 1290) == 1 )
OptimizedGroup = GJBaseGameLayer::getOptimizedGroup(a1, a3);
else
OptimizedGroup = GJBaseGameLayer::getStaticGroup(a1, a3);
result = sub_1002E765C(OptimizedGroup, a2, 1);
if ( *(_BYTE *)(a2 + 1170) == 1 )
{
result = sub_10028E190(a1, a2, a3);
if ( (_DWORD)result )
return GJBaseGameLayer::removeGroupParent(a1, a2, a3);
}
return result;
}