//
// UILayer::updateUINodeVisibility from 0x5c6184 to 0x5c61f8 (116 bytes)
//
// 3 xrefs:
// > UILayer::toggleMenuVisibility @ 0x5c70f8
// > UILayer::togglePlatformerMode @ 0x5c7eb4
// > ??> @ 0xa62d8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void UILayer::updateUINodeVisibility(UILayer *a1, bool a2)
{
_BOOL4 v3; // w21
unsigned int i; // w19
__int64 v5; // x0
_BOOL8 m_dualMode; // x1
v3 = a2;
for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(a1->m_uiNodes); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(a1->m_uiNodes, i);
m_dualMode = 0;
if ( v3 )
{
m_dualMode = 1;
if ( i )
m_dualMode = a1->m_dualMode;
}
(*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v5 + 328LL))(v5, m_dualMode);
}
}