//
// UILayer::toggleMenuVisibility from 0x3fce50 to 0x3fce8a (58 bytes)
//
// 7 xrefs:
// > UILayer::editorPlaytest @ 0x3fdda4
// > PlayLayer::showEndLayer @ 0x402530
// > PlayLayer::showRetryLayer @ 0x402580
// > PlayLayer::pauseGame @ 0x402654
// > PlayLayer::resumeAndRestart @ 0x402718
// > PlayLayer::resume @ 0x406458
// > PlayLayer::resetLevel @ 0x412400
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:47:21 +0000
//
unsigned int __fastcall UILayer::toggleMenuVisibility(UILayer *this, int a2)
{
int v4; // r0
int v5; // r1
int v6; // r1
UILayer::resetUINodeState(this);
v4 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 113) + 536))(*((_DWORD *)this + 113));
if ( a2 )
v5 = 75;
else
v5 = 0;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 456))(v4, v5);
v6 = *((unsigned __int8 *)this + 476);
if ( *((_BYTE *)this + 476) )
v6 = a2;
return UILayer::updateUINodeVisibility((cocos2d::CCArray **)this, v6);
}