//
// UILayer::updateUINodeVisibility from 0x3fc6ca to 0x3fc706 (60 bytes)
//
// 2 xrefs:
// > UILayer::toggleMenuVisibility @ 0x3fce86
// > UILayer::togglePlatformerMode @ 0x3fd8b4
//
// 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:47:21 +0000
//
unsigned int __fastcall UILayer::updateUINodeVisibility(cocos2d::CCArray **this, int a2)
{
unsigned int i; // r4
unsigned int result; // r0
int v6; // r0
int v7; // r1
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(*(this + 122));
if ( i >= result )
break;
v6 = cocos2d::CCArray::objectAtIndex(*(this + 122), i);
if ( a2 )
{
if ( i )
v7 = *((unsigned __int8 *)this + 492);
else
v7 = 1;
}
else
{
v7 = 0;
}
(*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 172))(v6, v7);
}
return result;
}