//
// SetupTriggerPopup::refreshGroupVisibility from 0x14060bae0 to 0x14060bc26 (326 bytes)
//
// 5 xrefs:
// > SetupTriggerPopup::goToPage @ 0x14060b94e
// > TabbedPopupLayer::showTab @ 0x14066cdb1
// > ??> @ 0x1408e4e28
// > ??> @ 0x1408e4e6c
// > ??> @ 0x14092fbf4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:35:14 +0000
//
unsigned int __fastcall SetupTriggerPopup::refreshGroupVisibility(__int64 a1)
{
unsigned int result; // eax
unsigned int v3; // r12d
cocos2d::CCArray *v4; // r14
int v5; // ebp
unsigned int i; // edi
struct cocos2d::CCObject *v7; // rbx
int v8; // eax
struct cocos2d::CCObject *v9; // rax
struct cocos2d::CCObject *v10; // rsi
__int64 v11; // rbx
unsigned __int8 v12; // al
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 912));
if ( result )
{
v3 = 0;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 912));
if ( result )
{
do
{
v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 912), v3);
v5 = (*(__int64 (__fastcall **)(cocos2d::CCArray *))(*(_QWORD *)v4 + 56LL))(v4);
for ( i = 0; i < cocos2d::CCArray::count(v4); ++i )
{
v7 = cocos2d::CCArray::objectAtIndex(v4, i);
if ( (*(unsigned __int8 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v7 + 344LL))(v7) && !v5 )
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v7 + 336LL))(v7, 0);
v8 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v7 + 56LL))(v7);
v9 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 760), v8);
v10 = v9;
if ( v9 )
{
v11 = *(_QWORD *)v9;
v12 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v9 + 344LL))(v9);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(v11 + 920))(v10, v12);
}
}
++v3;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 912));
}
while ( v3 < result );
}
}
return result;
}