//
// UILayer::updateUINodeVisibility from 0x6ee8e4 to 0x6ee958 (116 bytes)
//
// 3 xrefs:
// > UILayer::toggleMenuVisibility @ 0x6ef4b8
// > UILayer::togglePlatformerMode @ 0x6f0438
// > ??> @ 0xda428
//
// 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 12:51:47 +0000
//
__int64 __fastcall UILayer::updateUINodeVisibility(cocos2d::CCArray **this, unsigned __int8 a2)
{
int v3; // w21
unsigned int i; // w19
__int64 v5; // x0
__int64 v6; // x1
__int64 result; // x0
v3 = a2;
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(*(this + 77));
if ( i >= (unsigned int)result )
break;
v5 = cocos2d::CCArray::objectAtIndex(*(this + 77), i);
v6 = 0;
if ( v3 )
{
v6 = 1;
if ( i )
v6 = *((unsigned __int8 *)this + 624);
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 344LL))(v5, v6);
}
return result;
}