//
// SetGroupIDLayer::onRemoveFromGroup from 0x1403fc9c0 to 0x1403fca8f (207 bytes)
//
// 4 xrefs:
// > SetGroupIDLayer::updateGroupIDButtons @ 0x1403fc6c0
// > ??> @ 0x14069e45c
// > ??> @ 0x14069e46c
// > ??> @ 0x1406d84bc
//
// 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 i; // ebx
struct cocos2d::CCObject *v5; // rax
__int64 v6; // rcx
__int64 v7; // rax
__int64 v8; // rax
if ( !a1->m_removeGroupsLock )
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_groupIDObjects); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(a1->m_groupIDObjects, i);
((void (__fastcall *)(struct cocos2d::CCObject *, _QWORD))v5->__vftable[12].getTag)(v5, 0);
}
a1->m_removeGroupsLock = 1;
a1->m_groupToRemove = a2->getTag(a2);
v7 = cocos2d::CCDirector::sharedDirector(v6);
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 112LL))(v7);
cocos2d::CCScheduler::scheduleSelector(v8, SetGroupIDLayer::callRemoveFromGroup, a1);
}
}