//
// UILayer::updateUINodeVisibility from 0x100051600 to 0x100051684 (132 bytes)
//
// 2 xrefs:
// > UILayer::togglePlatformerMode @ 0x100050dd4
// > UILayer::toggleMenuVisibility @ 0x1000527ac
//
// This function is hookable on this platform (idp: arm, 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 10:57:43 +0000
//
__int64 __fastcall UILayer::updateUINodeVisibility(__int64 a1, int a2)
{
__int64 result; // x0
__int64 v5; // x21
__int64 v6; // x0
char v7; // w8
result = sub_1002E757C(*(_QWORD *)(a1 + 616));
if ( (_DWORD)result )
{
v5 = 0;
do
{
v6 = sub_1002E75A0(*(_QWORD *)(a1 + 616), v5);
if ( a2 )
{
if ( (_DWORD)v5 )
v7 = *(_BYTE *)(a1 + 624);
else
v7 = 1;
}
else
{
v7 = 0;
}
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, v7 & 1);
v5 = (unsigned int)(v5 + 1);
result = sub_1002E757C(*(_QWORD *)(a1 + 616));
}
while ( (unsigned int)v5 < (unsigned int)result );
}
return result;
}