//
// GJBaseGameLayer::removeFromGroupParents from 0x10013d7e0 to 0x10013d893 (179 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::removeSpecial @ 0x1000e2691
//
// 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 __fastcall GJBaseGameLayer::removeFromGroupParents(GJBaseGameLayer *a1, GameObject *a2)
{
cocos2d::CCObject *v2; // rax
cocos2d::CCObject *v3; // r15
unsigned int v4; // r12d
__int64 v5; // rax
if ( a2->m_hasGroupParentsString )
{
v2 = cocos2d::CCDictionary::objectForKey(a1->m_parentGroupIDs, (unsigned int)a2->m_uniqueID);
if ( v2 )
{
v3 = v2;
if ( (unsigned int)sub_100720070(v2) )
{
v4 = 0;
do
{
v5 = sub_1007200C0(v3, v4);
cocos2d::CCDictionary::removeObjectForKey(a1->m_parentGroupsDict, *(int *)(v5 + 56));
++v4;
}
while ( v4 < (unsigned int)sub_100720070(v3) );
}
cocos2d::CCDictionary::setObject(a1->m_removedParentGroupIDs, v3, (unsigned int)a2->m_uniqueID);
cocos2d::CCDictionary::removeObjectForKey(a1->m_parentGroupIDs, (unsigned int)a2->m_uniqueID);
}
}
}