//
// SetupRandAdvTriggerPopup::removeGroupID from 0x9b06f4 to 0x9b0784 (144 bytes)
//
// 2 xrefs:
// > SetupRandAdvTriggerPopup::callRemoveFromGroup @ 0x9b07b0
// > ??> @ 0x9eef8
//
// 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::removeGroupID(SetupRandAdvTriggerPopup *a1, int a2)
{
RandTriggerGameObject *m_gameObject; // x1
unsigned int v5; // w19
RandTriggerGameObject *v6; // x0
bool v7; // cf
unsigned int v8; // w1
m_gameObject = (RandTriggerGameObject *)a1->m_gameObject;
a1->m_performedAction = 1;
if ( m_gameObject )
{
SetupRandAdvTriggerPopup::removeGroupIDFromObject(a1, m_gameObject, a2);
SetupRandAdvTriggerPopup::updateGroupIDButtons(a1);
}
else
{
v5 = 0;
while ( 1 )
{
v7 = v5 >= (unsigned int)cocos2d::CCArray::count(a1->m_gameObjects);
v8 = v5++;
if ( v7 )
break;
v6 = (RandTriggerGameObject *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v8);
SetupRandAdvTriggerPopup::removeGroupIDFromObject(a1, v6, a2);
}
SetupRandAdvTriggerPopup::updateGroupIDButtons(a1);
}
}