//
// SetGroupIDLayer::onRemoveFromGroup from 0x974dac to 0x974e64 (184 bytes)
//
// 3 xrefs:
// > ??> @ 0x4df28
// > SetGroupIDLayer::updateGroupIDButtons @ 0x9765f4
// > ??> @ 0x122a810
//
// 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 v4; // w19
__int64 v5; // x0
bool v6; // cf
unsigned int v7; // w1
cocos2d::CCObject_vtbl *v8; // x1
cocos2d::CCDirector *v9; // x0
__int64 v10; // x0
if ( !a1->m_removeGroupsLock )
{
v4 = 0;
while ( 1 )
{
v6 = v4 >= (unsigned int)cocos2d::CCArray::count(a1->m_groupIDObjects);
v7 = v4++;
if ( v6 )
break;
v5 = cocos2d::CCArray::objectAtIndex(a1->m_groupIDObjects, v7);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1040LL))(v5, 0);
}
v8 = a2->__vftable;
a1->m_removeGroupsLock = 1;
a1->m_groupToRemove = v8->getTag(a2);
v9 = cocos2d::CCDirector::sharedDirector();
v10 = (__int64)v9->getScheduler(v9);
cocos2d::CCScheduler::scheduleSelector(v10, SetGroupIDLayer::callRemoveFromGroup, 0, a1, 4294967294LL, 0, 0.0, 0.0);
}
}