//
// UILayer::updateUINodeVisibility from 0x30cca6 to 0x30cce2 (60 bytes)
//
// 2 xrefs:
// > UILayer::toggleMenuVisibility @ 0x30d72e
// > UILayer::togglePlatformerMode @ 0x30dff2
//
// 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; // r6
unsigned int i; // r4
int v5; // r0
_BOOL4 m_dualMode; // r1
v3 = a2;
for ( i = 0; i < cocos2d::CCArray::count(a1->m_uiNodes); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(a1->m_uiNodes, i);
if ( v3 )
{
if ( i )
m_dualMode = a1->m_dualMode;
else
m_dualMode = 1;
}
else
{
m_dualMode = 0;
}
(*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v5 + 164))(v5, m_dualMode);
}
}