//
// SongSelectNode::updateWidgetVisibility from 0x83eba8 to 0x83ec40 (152 bytes)
//
// 3 xrefs:
// > SongSelectNode::onSongMode @ 0x83ed64
// > SetupSongTriggerPopup::pageChanged @ 0x9a9a10
// > ??> @ 0x78e40
//
// 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; // w20
CustomSongWidget *m_songWidget; // x1
int m_selectedSongID; // w2
m_isCustomSong = a1->m_isCustomSong;
m_songWidget = a1->m_songWidget;
if ( a1->m_isCustomSong )
{
m_selectedSongID = a1->m_selectedSongID;
m_isCustomSong = m_selectedSongID != 0;
m_songWidget->setVisible(a1->m_songWidget, m_selectedSongID != 0);
}
else
{
m_songWidget->setVisible(a1->m_songWidget, a1->m_isCustomSong);
}
a1->m_selectButton->setVisible(a1->m_selectButton, !m_isCustomSong && a1->m_isCustomSong);
a1->m_changeButton->setVisible(a1->m_changeButton, m_isCustomSong && a1->m_isCustomSong);
}