//
// GJBaseGameLayer::removeFromGroupParents from 0x472ef2 to 0x472f50 (94 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::removeSpecial @ 0x36ab9e
//
// 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::removeFromGroupParents(GJBaseGameLayer *a1, GameObject *a2)
{
cocos2d::CCArray *v4; // r6
unsigned int i; // r7
int v6; // r0
if ( a2->m_hasGroupParentsString )
{
v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_parentGroupIDs, a2->m_uniqueID);
if ( v4 )
{
for ( i = 0; i < cocos2d::CCArray::count(v4); ++i )
{
v6 = cocos2d::CCArray::objectAtIndex(v4, i);
cocos2d::CCDictionary::removeObjectForKey(a1->m_parentGroupsDict, *(_DWORD *)(v6 + 52));
}
cocos2d::CCDictionary::setObject(a1->m_removedParentGroupIDs, v4, a2->m_uniqueID);
cocos2d::CCDictionary::removeObjectForKey(a1->m_parentGroupIDs, a2->m_uniqueID);
}
}
}