//
// SetupTriggerPopup::toggleGroup from 0x541650 to 0x5416c6 (118 bytes)
//
// 1 xrefs:
// > SetupShaderEffectPopup::toggleGroup @ 0x551ac8
//
// 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 SetupTriggerPopup::toggleGroup(SetupTriggerPopup *a1, int a2, bool a3)
{
_BOOL4 v3; // r8
unsigned int v5; // r5
cocos2d::CCArray *GroupContainer; // r6
intptr_t *v7; // r4
cocos2d::CCDictionary *m_inputNodes; // r9
intptr_t v9; // r0
cocos2d::CCObject *v10; // r0
cocos2d::CCObject *v11; // r4
bool (__fastcall *isEqual)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // r9
int v13; // r0
v3 = a3;
v5 = 0;
GroupContainer = SetupTriggerPopup::getGroupContainer(a1, a2);
GroupContainer->setTag(GroupContainer, v3);
while ( v5 < cocos2d::CCArray::count(GroupContainer) )
{
v7 = (intptr_t *)cocos2d::CCArray::objectAtIndex(GroupContainer, v5);
if ( !cocos2d::CCDictionary::objectForKey(a1->m_disabledEasingButtons, v7[1]) )
(*(void (__fastcall **)(intptr_t *, _BOOL4))(*v7 + 164))(v7, v3);
m_inputNodes = a1->m_inputNodes;
v9 = (*(int (__fastcall **)(intptr_t *))(*v7 + 32))(v7);
v10 = cocos2d::CCDictionary::objectForKey(m_inputNodes, v9);
v11 = v10;
if ( v10 )
{
isEqual = v10->__vftable[12].isEqual;
v13 = ((int (__fastcall *)(cocos2d::CCObject *))v10->__vftable[4].~CCObject_0)(v10);
isEqual(v11, (const cocos2d::CCObject *)v13);
}
++v5;
}
}