//
// UILayer::updateUINodeVisibility from 0x1004c8b00 to 0x1004c8bd6 (214 bytes)
//
// 0 xrefs:
//
// 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)
{
__int64 v2; // rax
unsigned int v3; // r14d
__int64 v4; // rax
unsigned int v5; // r14d
__int64 v6; // rax
if ( (unsigned int)sub_100720070(a1->m_uiNodes) )
{
if ( a2 )
{
v2 = sub_1007200C0(a1->m_uiNodes, 0);
v3 = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 328LL))(v2, 1);
if ( (unsigned int)sub_100720070(a1->m_uiNodes) >= 2 )
{
do
{
v4 = sub_1007200C0(a1->m_uiNodes, v3);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v4 + 328LL))(v4, a1->m_dualMode);
++v3;
}
while ( v3 < (unsigned int)sub_100720070(a1->m_uiNodes) );
}
}
else
{
v5 = 0;
do
{
v6 = sub_1007200C0(a1->m_uiNodes, v5);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 328LL))(v6, 0);
++v5;
}
while ( v5 < (unsigned int)sub_100720070(a1->m_uiNodes) );
}
}
}