//
// GJMGLayer::toggleVisible02 from 0x1005ec460 to 0x1005ec48e (46 bytes)
//
// 1 xrefs:
// > PlayLayer::toggleMGVisibility @ 0x1000b9d45
//
// 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 __fastcall GJMGLayer::toggleVisible02(GJMGLayer *a1, bool a2)
{
if ( a1->m_showGround2 != a2 )
{
a1->m_showGround2 = a2;
((void (__fastcall *)(GJMGLayer *, bool))a1->setVisible)(a1, a1->m_showGround1 && a2);
}
}