//
// GJMGLayer::toggleVisible01 from 0x7ec9dc to 0x7eca1c (64 bytes)
//
// 1 xrefs:
// > ??> @ 0xb5890
//
// 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::toggleVisible01(GJMGLayer *a1, bool a2)
{
_BOOL4 v2; // w2
GJMGLayer_vtbl *v3; // x3
_BOOL8 m_showGround2; // x1
void (__fastcall *setVisible)(cocos2d::CCNode *__hidden, bool); // x3
v2 = a2;
if ( a1->m_showGround1 != a2 )
{
v3 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
m_showGround2 = 0;
a1->m_showGround1 = v2;
setVisible = v3->setVisible;
if ( v2 )
m_showGround2 = a1->m_showGround2;
setVisible(a1, m_showGround2);
}
}