//
// GJGroundLayer::toggleVisible01 from 0x434260 to 0x43427c (28 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::updateCameraBGArt @ 0x477780
// > GJBaseGameLayer::updateCameraBGArt @ 0x4777b0
//
// 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 GJGroundLayer::toggleVisible01(GJGroundLayer *a1, bool a2)
{
GJGroundLayer_vtbl *v2; // r3
void (__fastcall *setVisible)(cocos2d::CCNode *__hidden, bool); // r3
if ( a1->m_showGround1 != a2 )
{
v2 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_showGround1 = a2;
setVisible = v2->setVisible;
if ( a2 )
*(_DWORD *)&a2 = a1->m_showGround2;
setVisible(a1, a2);
}
}