//
// GJBaseGameLayer::addToGroupParents from 0x860394 to 0x860450 (188 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::addSpecial @ 0x6708d0
// > ??> @ 0x7be70
//
// 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::addToGroupParents(GJBaseGameLayer *a1, GameObject *a2)
{
cocos2d::CCArray *v4; // x20
unsigned int v5; // w19
int v6; // w21
bool v7; // cf
unsigned int v8; // w1
if ( a2->m_hasGroupParentsString )
{
v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(
a1->m_removedParentGroupIDs,
(unsigned int)a2->m_uniqueID);
if ( v4 )
{
a2->m_hasGroupParentsString = 0;
v5 = 0;
while ( 1 )
{
v7 = v5 >= (unsigned int)cocos2d::CCArray::count(v4);
v8 = v5++;
if ( v7 )
break;
v6 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v4, v8) + 56);
if ( !GJBaseGameLayer::getGroupParent(a1, v6) )
GJBaseGameLayer::setGroupParent(a1, a2, v6);
}
cocos2d::CCDictionary::removeObjectForKey(a1->m_removedParentGroupIDs, (unsigned int)a2->m_uniqueID);
}
}
}