//
// SetupRandAdvTriggerPopup::onRemoveFromGroup from 0x10038f5b0 to 0x10038f665 (181 bytes)
//
// 1 xrefs:
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x10038ef4f
//
// 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)
{
unsigned int v2; // r15d
__int64 v3; // rax
cocos2d::CCDirector *v4; // rax
cocos2d::CCScheduler *v5; // rax
if ( !a1->m_removingGroup )
{
if ( (unsigned int)sub_100720070(a1->m_groupButtons) )
{
v2 = 0;
do
{
v3 = sub_1007200C0(a1->m_groupButtons, v2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1040LL))(v3, 0);
++v2;
}
while ( v2 < (unsigned int)sub_100720070(a1->m_groupButtons) );
}
a1->m_removingGroup = 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)SetupRandAdvTriggerPopup::callRemoveFromGroup,
a1,
0.0,
0xFFFFFFFE,
0.0,
0);
}
}