//
// SetupCameraModePopup::updateItemVisibility from 0x1405ac350 to 0x1405ac419 (201 bytes)
//
// 5 xrefs:
// > SetupCameraModePopup::init @ 0x1405abfcf
// > SetupCameraModePopup::onUnboundMode @ 0x1405ac233
// > SetupCameraModePopup::onUnboundMode @ 0x1405ac28c
// > SetupCameraModePopup::onEditCameraSettings @ 0x1405ac345
// > ??> @ 0x14092d800
//
// 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:34:40 +0000
//
unsigned int __fastcall SetupCameraModePopup::updateItemVisibility(__int64 a1)
{
unsigned int v2; // edi
unsigned int i; // esi
struct cocos2d::CCObject *v4; // rax
unsigned int result; // eax
struct cocos2d::CCObject *v6; // rax
v2 = 0;
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1000)); ++i )
{
v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1000), i);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v4 + 336LL))(
v4,
*(unsigned __int8 *)(a1 + 1060));
}
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1008));
if ( result )
{
do
{
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1008), v2);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v6 + 336LL))(
v6,
*(unsigned __int8 *)(a1 + 1061));
++v2;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1008));
}
while ( v2 < result );
}
return result;
}