//
// SetupRandAdvTriggerPopup::onRemoveFromGroup from 0x10002f7cc to 0x10002f88c (192 bytes)
//
// 1 xrefs:
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x10002f1f0
//
// 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 SetupRandAdvTriggerPopup::onRemoveFromGroup(SetupRandAdvTriggerPopup *a1, cocos2d::CCObject *a2)
{
__int64 v4; // x21
__int64 v5; // x0
cocos2d::CCDirector *v6; // x0
cocos2d::CCScheduler *v7; // x0
cocos2d::SEL_SCHEDULE v8; // 0:x1.16
if ( !a1->m_removingGroup )
{
if ( (unsigned int)sub_10024A36C(a1->m_groupButtons) )
{
v4 = 0;
do
{
v5 = sub_10024A388(a1->m_groupButtons, v4);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1040LL))(v5, 0);
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_groupButtons) );
}
a1->m_removingGroup = 1;
a1->m_groupToRemove = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v6 = cocos2d::CCDirector::sharedDirector();
v7 = (cocos2d::CCScheduler *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v6->getScheduler)(v6);
v8.ptr = (void (__cdecl *)(float))SetupRandAdvTriggerPopup::callRemoveFromGroup;
v8.adj = 0;
cocos2d::CCScheduler::scheduleSelector(v7, v8, a1, 0.0, 0xFFFFFFFE, 0.0, 0);
}
}