//
// UILayer::toggleMenuVisibility from 0x6ef460 to 0x6ef4bc (92 bytes)
//
// 8 xrefs:
// > UILayer::editorPlaytest @ 0x6f0ae4
// > PlayLayer::showEndLayer @ 0x6f7118
// > PlayLayer::showRetryLayer @ 0x6f7198
// > PlayLayer::pauseGame @ 0x6f72c0
// > PlayLayer::resumeAndRestart @ 0x6f73b4
// > PlayLayer::resume @ 0x7000dc
// > PlayLayer::resetLevel @ 0x7111ac
// > ??> @ 0xcd360
//
// 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 12:51:47 +0000
//
__int64 __fastcall UILayer::toggleMenuVisibility(UILayer *this, unsigned __int8 a2)
{
int v3; // w20
__int64 v4; // x0
__int64 v5; // x1
v3 = a2;
UILayer::resetUINodeState(this);
v4 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 71) + 1072LL))(*((_QWORD *)this + 71));
if ( v3 )
v5 = 75;
else
v5 = 0;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 912LL))(v4, v5);
return UILayer::updateUINodeVisibility((cocos2d::CCArray **)this, (unsigned __int8)v3 & *((_BYTE *)this + 596));
}