//
// GJBaseGameLayer::removeFromGroup from 0x9a3708 to 0x9a37c4 (188 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::removeFromGroup @ 0x78ce94
// > ??> @ 0x72958
// > ??> @ 0x1428990
// > ??> @ 0x14757c0
//
// 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:08 +0000
//
cocos2d::CCDictionary **__fastcall GJBaseGameLayer::removeFromGroup(GJBaseGameLayer *this, GameObject *a2, int a3)
{
cocos2d::CCObject *Group; // x0
cocos2d::CCObject *OptimizedGroup; // x0
cocos2d::CCDictionary **result; // x0
cocos2d::CCObject *StaticGroup; // x0
Group = GJBaseGameLayer::getGroup(this, a3);
cocos2d::CCArray::removeObject(Group, a2, 1);
if ( *((_BYTE *)a2 + 1290) )
{
OptimizedGroup = GJBaseGameLayer::getOptimizedGroup(this, a3);
cocos2d::CCArray::removeObject(OptimizedGroup, a2, 1);
result = (cocos2d::CCDictionary **)*((unsigned __int8 *)a2 + 1170);
if ( !*((_BYTE *)a2 + 1170) )
return result;
}
else
{
StaticGroup = GJBaseGameLayer::getStaticGroup(this, a3);
cocos2d::CCArray::removeObject(StaticGroup, a2, 1);
result = (cocos2d::CCDictionary **)*((unsigned __int8 *)a2 + 1170);
if ( !*((_BYTE *)a2 + 1170) )
return result;
}
result = (cocos2d::CCDictionary **)(unsigned __int8)GJBaseGameLayer::isGroupParentOf(
(cocos2d::CCDictionary **)this,
a2,
a3);
if ( (_BYTE)result )
return GJBaseGameLayer::removeGroupParent((cocos2d::CCDictionary **)this, a2, a3);
return result;
}