//
// SetGroupIDLayer::onRemoveFromGroup from 0x508c48 to 0x508cc2 (122 bytes)
//
// 0 xrefs:
//
// 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 SetGroupIDLayer::onRemoveFromGroup(SetGroupIDLayer *a1, cocos2d::CCObject *a2)
{
unsigned int m_removeGroupsLock; // r4
int v5; // r0
cocos2d::CCDirector *v6; // r0
int v7; // r0
m_removeGroupsLock = a1->m_removeGroupsLock;
if ( !a1->m_removeGroupsLock )
{
while ( m_removeGroupsLock < cocos2d::CCArray::count(a1->m_groupIDObjects) )
{
v5 = cocos2d::CCArray::objectAtIndex(a1->m_groupIDObjects, m_removeGroupsLock++);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v5 + 520))(v5, 0);
}
a1->m_removeGroupsLock = 1;
a1->m_groupToRemove = a2->getTag(a2);
v6 = cocos2d::CCDirector::sharedDirector();
v7 = (int)v6->getScheduler(v6);
cocos2d::CCScheduler::scheduleSelector(v7, (int)SetGroupIDLayer::callRemoveFromGroup, 0, (int)a1, 0.0, -2, 0.0, 0);
}
}