//
// SongSelectNode::updateWidgetVisibility from 0x4606fc to 0x460756 (90 bytes)
//
// 2 xrefs:
// > SongSelectNode::onSongMode @ 0x460828
// > SetupSongTriggerPopup::pageChanged @ 0x525038
//
// 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 SongSelectNode::updateWidgetVisibility(SongSelectNode *a1)
{
_BOOL4 m_isCustomSong; // r1
int m_selectedSongID; // r5
CustomSongWidget *m_songWidget; // r0
_BOOL4 v5; // r5
m_isCustomSong = a1->m_isCustomSong;
if ( a1->m_isCustomSong )
m_selectedSongID = a1->m_selectedSongID;
else
m_selectedSongID = a1->m_isCustomSong;
m_songWidget = a1->m_songWidget;
v5 = m_selectedSongID != 0;
if ( m_isCustomSong )
m_isCustomSong = v5;
m_songWidget->setVisible(m_songWidget, m_isCustomSong);
((void (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_selectButton->setVisible)(a1->m_selectButton);
((void (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_changeButton->setVisible)(a1->m_changeButton);
}