//
// UILayer::updateUINodeVisibility from 0x100049a18 to 0x100049a9c (132 bytes)
//
// 4 xrefs:
// > UILayer::init @ 0x1000494a0
// > UILayer::togglePlatformerMode @ 0x1000497d8
// > UILayer::updateDualMode @ 0x100049854
// > UILayer::toggleMenuVisibility @ 0x10004a0a4
//
// 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 __fastcall UILayer::updateUINodeVisibility(UILayer *a1, bool a2)
{
_BOOL4 v2; // w19
__int64 v4; // x21
__int64 v5; // x0
bool m_dualMode; // w8
v2 = a2;
if ( (unsigned int)sub_10024A36C(a1->m_uiNodes) )
{
v4 = 0;
do
{
v5 = sub_10024A388(a1->m_uiNodes, v4);
if ( v2 )
{
if ( (_DWORD)v4 )
m_dualMode = a1->m_dualMode;
else
m_dualMode = 1;
}
else
{
m_dualMode = 0;
}
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v5 + 328LL))(v5, m_dualMode);
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_uiNodes) );
}
}