//
// GJBaseGameLayer::removeFromGroup from 0x860240 to 0x8602f4 (180 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::removeFromGroup @ 0x66085c
// > ??> @ 0x52710
// > ??> @ 0x1148a40
// > ??> @ 0x1190730
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJBaseGameLayer::removeFromGroup(GJBaseGameLayer *a1, GameObject *a2, int a3)
{
cocos2d::CCArray *Group; // x0
cocos2d::CCArray *OptimizedGroup; // x0
cocos2d::CCArray *StaticGroup; // x0
Group = GJBaseGameLayer::getGroup(a1, a3);
cocos2d::CCArray::removeObject(Group, a2, 1);
if ( a2->m_isDecoration2 )
{
OptimizedGroup = GJBaseGameLayer::getOptimizedGroup(a1, a3);
cocos2d::CCArray::removeObject(OptimizedGroup, a2, 1);
if ( !a2->m_hasGroupParentsString )
return;
}
else
{
StaticGroup = GJBaseGameLayer::getStaticGroup(a1, a3);
cocos2d::CCArray::removeObject(StaticGroup, a2, 1);
if ( !a2->m_hasGroupParentsString )
return;
}
if ( a2 == GJBaseGameLayer::getGroupParent(a1, a3) )
GJBaseGameLayer::removeGroupParent(a1, a3);
}