//
// SetupPortalPopup::updateItemVisibility from 0xab0868 to 0xab08f4 (140 bytes)
//
// 5 xrefs:
// > SetupPortalPopup::onUnboundMode @ 0xab0928
// > SetupPortalPopup::onUnboundMode @ 0xab0968
// > SetupPortalPopup::onEditCameraSettings @ 0xab0b24
// > SetupPortalPopup::init @ 0xab139c
// > ??> @ 0x94960
//
// This function is hookable on this platform (idp: arm, 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 13:00:56 +0000
//
__int64 __fastcall SetupPortalPopup::updateItemVisibility(cocos2d::CCArray **this)
{
unsigned int v2; // w20
__int64 v3; // x0
bool v4; // cf
unsigned int v5; // w1
unsigned int v6; // w20
__int64 v7; // x0
__int64 result; // x0
unsigned int v9; // w1
v2 = 0;
while ( 1 )
{
v4 = v2 >= (unsigned int)cocos2d::CCArray::count(*(this + 85));
v5 = v2++;
if ( v4 )
break;
v3 = cocos2d::CCArray::objectAtIndex(*(this + 85), v5);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, *((unsigned __int8 *)this + 740));
}
v6 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 86));
v4 = v6 >= (unsigned int)result;
v9 = v6++;
if ( v4 )
break;
v7 = cocos2d::CCArray::objectAtIndex(*(this + 86), v9);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, *((unsigned __int8 *)this + 741));
}
return result;
}