//
// SetupPortalPopup::updateItemVisibility from 0x633f50 to 0x633fa6 (86 bytes)
//
// 3 xrefs:
// > SetupPortalPopup::onUnboundMode @ 0x633fea
// > SetupPortalPopup::onEditCameraSettings @ 0x63412e
// > SetupPortalPopup::init @ 0x63480c
//
// 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:19 +0000
//
unsigned int __fastcall SetupPortalPopup::updateItemVisibility(cocos2d::CCArray **this)
{
unsigned int i; // r5
int v3; // r0
unsigned int j; // r5
unsigned int result; // r0
int v6; // r0
for ( i = 0; i < cocos2d::CCArray::count(*(this + 132)); ++i )
{
v3 = cocos2d::CCArray::objectAtIndex(*(this + 132), i);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v3 + 172))(v3, *((unsigned __int8 *)this + 560));
}
for ( j = 0; ; ++j )
{
result = cocos2d::CCArray::count(*(this + 133));
if ( j >= result )
break;
v6 = cocos2d::CCArray::objectAtIndex(*(this + 133), j);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v6 + 172))(v6, *((unsigned __int8 *)this + 561));
}
return result;
}