//
// SetupRandAdvTriggerPopup::removeGroupID from 0xaf105c to 0xaf10ec (144 bytes)
//
// 2 xrefs:
// > SetupRandAdvTriggerPopup::callRemoveFromGroup @ 0xaf1118
// > ??> @ 0xd1320
//
// 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:12 +0000
//
__int64 __fastcall SetupRandAdvTriggerPopup::removeGroupID(SetupRandAdvTriggerPopup *this, int a2)
{
__int64 v4; // x1
unsigned int v5; // w19
__int64 v6; // x0
bool v7; // cf
unsigned int v8; // w1
*((_BYTE *)this + 1012) = 1;
v4 = *((_QWORD *)this + 85);
if ( v4 )
{
SetupRandAdvTriggerPopup::removeGroupIDFromObject((__int64)this, v4, a2);
return SetupRandAdvTriggerPopup::updateGroupIDButtons((cocos2d::CCArray **)this);
}
else
{
v5 = 0;
while ( 1 )
{
v7 = v5 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 86));
v8 = v5++;
if ( v7 )
break;
v6 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v8);
SetupRandAdvTriggerPopup::removeGroupIDFromObject((__int64)this, v6, a2);
}
return SetupRandAdvTriggerPopup::updateGroupIDButtons((cocos2d::CCArray **)this);
}
}