//
// UILayer::toggleMenuVisibility from 0x5c70a0 to 0x5c70fc (92 bytes)
//
// 8 xrefs:
// > UILayer::editorPlaytest @ 0x5c7138
// > PlayLayer::showEndLayer @ 0x5c8e48
// > PlayLayer::showRetryLayer @ 0x5c8ec8
// > PlayLayer::pauseGame @ 0x5d2708
// > PlayLayer::resumeAndRestart @ 0x5d27f4
// > PlayLayer::resume @ 0x5d2990
// > PlayLayer::resetLevel @ 0x5e5258
// > ??> @ 0x9bc10
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void UILayer::toggleMenuVisibility(UILayer *a1, bool a2)
{
_BOOL4 v3; // w20
cocos2d::CCNode *v4; // x0
__int64 v5; // x1
v3 = a2;
UILayer::resetUINodeState(a1);
v4 = a1->m_pauseBtn->getNormalImage(a1->m_pauseBtn);
if ( v3 )
v5 = 75;
else
v5 = 0;
((void (__fastcall *)(cocos2d::CCNode *, __int64))v4->__vftable[1].~CCNode_0)(v4, v5);
UILayer::updateUINodeVisibility(a1, v3 && a1->m_inPlatformer);
}