//
// SetupTriggerPopup::refreshGroupVisibility from 0x676a56 to 0x676af6 (160 bytes)
//
// 2 xrefs:
// > SetupTriggerPopup::goToPage @ 0x676c1a
// > TabbedPopupLayer::showTab @ 0x72e006
//
// 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::refreshGroupVisibility(cocos2d::CCArray **this)
{
unsigned int result; // r0
unsigned int i; // r6
unsigned int v4; // r5
cocos2d::CCArray *v5; // r8
int v6; // r9
int v7; // r4
cocos2d::CCDictionary *v8; // r10
int v9; // r0
int v10; // r0
int v11; // r4
void (__fastcall *v12)(int, int); // r10
int v13; // r0
result = cocos2d::CCArray::count(*(this + 167));
if ( result )
{
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(*(this + 167));
if ( i >= result )
break;
v4 = 0;
v5 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(*(this + 167), i);
v6 = (*(int (__fastcall **)(cocos2d::CCArray *))(*(_DWORD *)v5 + 32))(v5);
while ( v4 < cocos2d::CCArray::count(v5) )
{
v7 = cocos2d::CCArray::objectAtIndex(v5, v4);
if ( (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 176))(v7) && !v6 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v7 + 172))(v7, 0);
v8 = *(this + 144);
v9 = (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 32))(v7);
v10 = cocos2d::CCDictionary::objectForKey(v8, v9);
v11 = v10;
if ( v10 )
{
v12 = *(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 500);
v13 = (*(int (__fastcall **)(int))(*(_DWORD *)v10 + 176))(v10);
v12(v11, v13);
}
++v4;
}
}
}
return result;
}