//
// SongSelectNode::updateWidgetVisibility from 0x1400c7a90 to 0x1400c7b19 (137 bytes)
//
// 3 xrefs:
// > SongSelectNode::onSongMode @ 0x1400c7a80
// > SetupSongTriggerPopup::pageChanged @ 0x14045dd0a
// > ??> @ 0x1406c8220
//
// 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)
{
_BOOL8 v1; // rdx
int m_selectedSongID; // ebx
_BOOL8 v4; // rdx
_BOOL8 v5; // rdx
if ( !a1->m_isCustomSong )
{
m_selectedSongID = 0;
goto LABEL_5;
}
m_selectedSongID = a1->m_selectedSongID;
if ( !m_selectedSongID )
{
LABEL_5:
v1 = 0;
goto LABEL_6;
}
LOBYTE(v1) = 1;
LABEL_6:
a1->m_songWidget->setVisible(a1->m_songWidget, v1);
if ( !a1->m_isCustomSong || m_selectedSongID )
v4 = 0;
else
LOBYTE(v4) = 1;
a1->m_selectButton->setVisible(a1->m_selectButton, v4);
if ( a1->m_isCustomSong && m_selectedSongID )
LOBYTE(v5) = 1;
else
v5 = 0;
a1->m_changeButton->setVisible(a1->m_changeButton, v5);
}