//
// UILayer::updateUINodeVisibility from 0x1004c3430 to 0x1004c3506 (214 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:31:06 +0000
//
__int64 __fastcall UILayer::updateUINodeVisibility(__int64 a1, char a2)
{
__int64 result; // rax
__int64 v3; // rax
unsigned int v4; // r14d
__int64 v5; // rax
unsigned int v6; // r14d
__int64 v7; // rax
result = sub_1007FEF90(*(_QWORD *)(a1 + 616));
if ( (_DWORD)result )
{
if ( a2 )
{
v3 = sub_1007FEFE0(*(_QWORD *)(a1 + 616), 0);
v4 = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 344LL))(v3, 1);
result = sub_1007FEF90(*(_QWORD *)(a1 + 616));
if ( (unsigned int)result >= 2 )
{
do
{
v5 = sub_1007FEFE0(*(_QWORD *)(a1 + 616), v4);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, *(unsigned __int8 *)(a1 + 624));
++v4;
result = sub_1007FEF90(*(_QWORD *)(a1 + 616));
}
while ( v4 < (unsigned int)result );
}
}
else
{
v6 = 0;
do
{
v7 = sub_1007FEFE0(*(_QWORD *)(a1 + 616), v6);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, 0);
++v6;
result = sub_1007FEF90(*(_QWORD *)(a1 + 616));
}
while ( v6 < (unsigned int)result );
}
}
return result;
}