//
// cocos2d::CCSprite::setVisible from 0x5e7876 to 0x5e78b4 (62 bytes)
//
// 2 xrefs:
// > CCSpritePart::setVisible @ 0x2e6f6c
// > GameObject::setVisible @ 0x3530a4
//
// 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 cocos2d::CCSprite::setVisible(cocos2d::CCSprite *a1, bool a2)
{
cocos2d::CCSprite_vtbl *v3; // r3
cocos2d::CCNode::setVisible(a1, a2);
if ( a1->m_pobBatchNode && !a1->m_bRecursiveDirty )
{
v3 = a1->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_bRecursiveDirty = 1;
v3->setDirty(a1, 1);
if ( a1->m_bHasChildren )
a1->setDirtyRecursively(a1, 1);
}
}