//
// GJMGLayer::toggleVisible02 from 0x7eca1c to 0x7eca54 (56 bytes)
//
// 2 xrefs:
// > PlayLayer::toggleMGVisibility @ 0x5c9190
// > ??> @ 0x98880
//
// 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 GJMGLayer::toggleVisible02(GJMGLayer *a1, bool a2)
{
GJMGLayer_vtbl *v2; // x4
bool m_showGround1; // w3
if ( a1->m_showGround2 != a2 )
{
v2 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
m_showGround1 = a1->m_showGround1;
a1->m_showGround2 = a2;
v2->setVisible(a1, a2 && m_showGround1);
}
}