//
// SetGroupIDLayer::onRemoveFromGroup from 0x1003178c0 to 0x100317975 (181 bytes)
//
// 1 xrefs:
// > SetGroupIDLayer::updateGroupIDButtons @ 0x100316621
//
// 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 SetGroupIDLayer::onRemoveFromGroup(SetGroupIDLayer *a1, cocos2d::CCObject *a2)
{
unsigned int v2; // r15d
__int64 v3; // rax
cocos2d::CCDirector *v4; // rax
cocos2d::CCScheduler *v5; // rax
if ( !a1->m_removeGroupsLock )
{
if ( (unsigned int)sub_100720070(a1->m_groupIDObjects) )
{
v2 = 0;
do
{
v3 = sub_1007200C0(a1->m_groupIDObjects, v2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1040LL))(v3, 0);
++v2;
}
while ( v2 < (unsigned int)sub_100720070(a1->m_groupIDObjects) );
}
a1->m_removeGroupsLock = 1;
a1->m_groupToRemove = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = (cocos2d::CCScheduler *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v4->getScheduler)(v4);
cocos2d::CCScheduler::scheduleSelector(
v5,
(cocos2d::SEL_SCHEDULE)(unsigned __int64)SetGroupIDLayer::callRemoveFromGroup,
a1,
0.0,
0xFFFFFFFE,
0.0,
0);
}
}