//
// SetupTriggerPopup::refreshGroupVisibility from 0x9e4b04 to 0x9e4bf0 (236 bytes)
//
// 2 xrefs:
// > SetupTriggerPopup::goToPage @ 0x9e4d6c
// > ??> @ 0x497d0
//
// 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 v2; // w23
unsigned int v3; // w19
cocos2d::CCArray *v4; // x21
int v5; // w22
bool v6; // cf
unsigned int v7; // w1
cocos2d::CCArray *i; // x0
__int64 v9; // x20
v2 = 0;
if ( (unsigned int)cocos2d::CCArray::count(a1->m_groupContainers)
&& (unsigned int)cocos2d::CCArray::count(a1->m_groupContainers) )
{
do
{
v3 = 0;
v4 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(a1->m_groupContainers, v2);
v5 = v4->getTag(v4);
v6 = (unsigned int)cocos2d::CCArray::count(v4) == 0;
v7 = 0;
for ( i = v4; !v6; i = v4 )
{
v9 = cocos2d::CCArray::objectAtIndex(i, v7);
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v9 + 336LL))(v9) )
{
if ( !v5 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 328LL))(v9, 0);
}
v6 = ++v3 >= (unsigned int)cocos2d::CCArray::count(v4);
v7 = v3;
}
++v2;
}
while ( v2 < (unsigned int)cocos2d::CCArray::count(a1->m_groupContainers) );
}
}