//
// SetupRandAdvTriggerPopup::onRemoveFromGroup from 0x9ae680 to 0x9ae738 (184 bytes)
//
// 3 xrefs:
// > ??> @ 0x2d948
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x9af43c
// > ??> @ 0x1229530
//
// 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 SetupRandAdvTriggerPopup::onRemoveFromGroup(SetupRandAdvTriggerPopup *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_removingGroup )
{
v4 = 0;
while ( 1 )
{
v6 = v4 >= (unsigned int)cocos2d::CCArray::count(a1->m_groupButtons);
v7 = v4++;
if ( v6 )
break;
v5 = cocos2d::CCArray::objectAtIndex(a1->m_groupButtons, v7);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1040LL))(v5, 0);
}
v8 = a2->__vftable;
a1->m_removingGroup = 1;
a1->m_groupToRemove = v8->getTag(a2);
v9 = cocos2d::CCDirector::sharedDirector();
v10 = (__int64)v9->getScheduler(v9);
cocos2d::CCScheduler::scheduleSelector(
v10,
SetupRandAdvTriggerPopup::callRemoveFromGroup,
0,
a1,
4294967294LL,
0,
0.0,
0.0);
}
}