//
// UILayer::toggleMenuVisibility from 0x100052758 to 0x1000527b0 (88 bytes)
//
// 7 xrefs:
// > UILayer::editorPlaytest @ 0x1000517f8
// > PlayLayer::showEndLayer @ 0x100143e04
// > sub_100144F5C @ 0x100144f88
// > PlayLayer::resetLevel @ 0x10014b704
// > PlayLayer::pauseGame @ 0x10014c4c0
// > PlayLayer::resumeAndRestart @ 0x10014c5cc
// > PlayLayer::resume @ 0x10014c77c
//
// 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:44 +0000
//
__int64 __fastcall UILayer::toggleMenuVisibility(__int64 a1, int a2)
{
__int64 v4; // x0
__int64 v5; // x1
UILayer::resetUINodeState(a1);
v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 568) + 1072LL))(*(_QWORD *)(a1 + 568));
if ( a2 )
v5 = 75;
else
v5 = 0;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 912LL))(v4, v5);
return UILayer::updateUINodeVisibility(a1, (unsigned __int8)(*(_BYTE *)(a1 + 596) & a2));
}