//
// SetupTriggerPopup::refreshGroupVisibility from 0x541742 to 0x5417b8 (118 bytes)
//
// 1 xrefs:
// > SetupTriggerPopup::goToPage @ 0x5418aa
//
// 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::refreshGroupVisibility(SetupTriggerPopup *a1)
{
unsigned int i; // r5
unsigned int v3; // r4
cocos2d::CCArray *v4; // r7
int v5; // r9
int v6; // r6
if ( cocos2d::CCArray::count(a1->m_groupContainers) )
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_groupContainers); ++i )
{
v3 = 0;
v4 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(a1->m_groupContainers, i);
v5 = v4->getTag(v4);
while ( v3 < cocos2d::CCArray::count(v4) )
{
v6 = cocos2d::CCArray::objectAtIndex(v4, v3);
if ( (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 168))(v6) )
{
if ( !v5 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v6 + 164))(v6, 0);
}
++v3;
}
}
}
}