//
// SetupTriggerPopup::toggleGroup from 0x676964 to 0x6769da (118 bytes)
//
// 1 xrefs:
// > SetupShaderEffectPopup::toggleGroup @ 0x687e6e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:56 +0000
//
unsigned int __fastcall SetupTriggerPopup::toggleGroup(cocos2d::CCArray **this, unsigned int a2, int a3)
{
unsigned int v5; // r5
cocos2d::CCArray *GroupContainer; // r6
unsigned int result; // r0
int *v8; // r4
cocos2d::CCDictionary *v9; // r9
int v10; // r0
int v11; // r0
int v12; // r4
void (__fastcall *v13)(int, int); // r9
int v14; // r0
v5 = 0;
GroupContainer = (cocos2d::CCArray *)SetupTriggerPopup::getGroupContainer(this, a2);
(*(void (__fastcall **)(cocos2d::CCArray *, int))(*(_DWORD *)GroupContainer + 36))(GroupContainer, a3);
while ( 1 )
{
result = cocos2d::CCArray::count(GroupContainer);
if ( v5 >= result )
break;
v8 = (int *)cocos2d::CCArray::objectAtIndex(GroupContainer, v5);
if ( !cocos2d::CCDictionary::objectForKey(*(this + 172), v8[1]) )
(*(void (__fastcall **)(int *, int))(*v8 + 172))(v8, a3);
v9 = *(this + 144);
v10 = (*(int (__fastcall **)(int *))(*v8 + 32))(v8);
v11 = cocos2d::CCDictionary::objectForKey(v9, v10);
v12 = v11;
if ( v11 )
{
v13 = *(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 500);
v14 = (*(int (__fastcall **)(int))(*(_DWORD *)v11 + 176))(v11);
v13(v12, v14);
}
++v5;
}
return result;
}