//
// SetupRandAdvTriggerPopup::onRemoveFromGroup from 0xaee8d4 to 0xaee98c (184 bytes)
//
// 3 xrefs:
// > ??> @ 0x44a88
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0xaefaf0
// > ??> @ 0x1541440
//
// This function is hookable on this platform (idp: arm, 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 13:01:11 +0000
//
__int64 __fastcall SetupRandAdvTriggerPopup::onRemoveFromGroup(__int64 this, cocos2d::CCObject *a2)
{
__int64 v3; // x20
unsigned int v4; // w19
__int64 v5; // x0
bool v6; // cf
unsigned int v7; // w1
cocos2d::CCDirector *v8; // x0
__int64 v9; // x0
__int64 v10; // x0
if ( !*(_BYTE *)(this + 1044) )
{
v3 = this;
v4 = 0;
while ( 1 )
{
v6 = v4 >= (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(v3 + 1016));
v7 = v4++;
if ( v6 )
break;
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v3 + 1016), v7);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1056LL))(v5, 0);
}
*(_BYTE *)(v3 + 1044) = 1;
v8 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
*(_DWORD *)(v3 + 1040) = (_DWORD)v8;
v9 = cocos2d::CCDirector::sharedDirector(v8);
v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 128LL))(v9);
return cocos2d::CCScheduler::scheduleSelector(
v10,
SetupRandAdvTriggerPopup::callRemoveFromGroup,
0,
v3,
4294967294LL,
0,
0.0,
0.0);
}
return this;
}