//
// GJUINode::toggleModeB from 0x5c78c8 to 0x5c7938 (112 bytes)
//
// 5 xrefs:
// > GJUINode::init @ 0x5c7b5c
// > GJUINode::loadFromConfig @ 0x5c7d28
// > UIOptionsLayer::valueDidChange @ 0x8d8434
// > UIOptionsLayer::valueDidChange @ 0x8d844c
// > ??> @ 0x4bc30
//
// 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 GJUINode::toggleModeB(GJUINode *a1, bool a2)
{
cocos2d::CCSprite *m_firstSprite; // x3
if ( a1->m_secondSprite )
{
m_firstSprite = a1->m_firstSprite;
a1->m_modeB = a2;
m_firstSprite->setVisible(m_firstSprite, !a2);
a1->m_secondSprite->setVisible(a1->m_secondSprite, !a1->m_modeB);
GJUINode::updateButtonFrames(a1);
}
}