//
// GJBaseGameLayer::removeGroupParent from 0x472d7c to 0x472de6 (106 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::setGroupParent @ 0x472e10
// > GJBaseGameLayer::removeFromGroup @ 0x472eec
// > SetGroupIDLayer::callRemoveFromGroup @ 0x509cd4
//
// 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::removeGroupParent(GJBaseGameLayer *a1, int a2)
{
GameObject *GroupParent; // r6
cocos2d::CCArray *v5; // r4
unsigned int i; // r5
GroupParent = GJBaseGameLayer::getGroupParent(a1, a2);
if ( GroupParent )
{
v5 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_parentGroupIDs, GroupParent->m_uniqueID);
if ( !v5 )
goto LABEL_9;
for ( i = 0; i < cocos2d::CCArray::count(v5); ++i )
{
if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v5, i) + 52) == a2 )
{
cocos2d::CCArray::removeObjectAtIndex(v5, i, 1);
break;
}
}
if ( !cocos2d::CCArray::count(v5) )
LABEL_9:
GroupParent->m_hasGroupParentsString = 0;
cocos2d::CCDictionary::removeObjectForKey(a1->m_parentGroupsDict, a2);
}
}