//
// SetupCameraModePopup::updateItemVisibility from 0xb45e0c to 0xb45e98 (140 bytes)
//
// 5 xrefs:
// > SetupCameraModePopup::onUnboundMode @ 0xb45ecc
// > SetupCameraModePopup::onUnboundMode @ 0xb45f0c
// > SetupCameraModePopup::onEditCameraSettings @ 0xb460c8
// > SetupCameraModePopup::init @ 0xb46930
// > ??> @ 0xd4f20
//
// 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:01:53 +0000
//
__int64 __fastcall SetupCameraModePopup::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 + 127));
v5 = v2++;
if ( v4 )
break;
v3 = cocos2d::CCArray::objectAtIndex(*(this + 127), v5);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, *((unsigned __int8 *)this + 1076));
}
v6 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 128));
v4 = v6 >= (unsigned int)result;
v9 = v6++;
if ( v4 )
break;
v7 = cocos2d::CCArray::objectAtIndex(*(this + 128), v9);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, *((unsigned __int8 *)this + 1077));
}
return result;
}