//
// SetupRandAdvTriggerPopup::onRemoveFromGroup from 0x1405d4550 to 0x1405d4625 (213 bytes)
//
// 4 xrefs:
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x1405d41ce
// > ??> @ 0x1408e12c4
// > ??> @ 0x1408e12d4
// > ??> @ 0x14092e904
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:34:56 +0000
//
void __fastcall SetupRandAdvTriggerPopup::onRemoveFromGroup(__int64 a1, __int64 a2)
{
unsigned int i; // ebx
struct cocos2d::CCObject *v5; // rax
__int64 v6; // rcx
__int64 v7; // rax
__int64 v8; // rax
if ( !*(_BYTE *)(a1 + 1036) )
{
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1008)); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1008), i);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v5 + 936LL))(v5, 0);
}
*(_BYTE *)(a1 + 1036) = 1;
*(_DWORD *)(a1 + 1032) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v7 = cocos2d::CCDirector::sharedDirector(v6);
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 112LL))(v7);
cocos2d::CCScheduler::scheduleSelector(v8, SetupRandAdvTriggerPopup::callRemoveFromGroup, a1);
}
}