//
// CustomSongWidget::updateSongObject from 0x74568c to 0x745730 (164 bytes)
//
// 7 xrefs:
// > CustomSongWidget::init @ 0x7461e8
// > CustomSongWidget::loadSongInfoFinished @ 0x749554
// > CustomSongLayer::dropDownLayerWillClose @ 0x83b0a4
// > CustomSongLayer::musicBrowserClosed @ 0x83b118
// > CustomSongLayer::onSearch @ 0x83d070
// > SongSelectNode::onSongMode @ 0x83ed50
// > ??> @ 0x4da78
//
// 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 CustomSongWidget::updateSongObject(CustomSongWidget *a1, SongInfoObject *a2)
{
cocos2d::extension::CCScale9Sprite *m_bgSpr; // x0
SongInfoObject *m_songInfoObject; // x0
a1->m_errorLabel->setVisible(a1->m_errorLabel, 0);
m_bgSpr = a1->m_bgSpr;
if ( m_bgSpr )
m_bgSpr->setVisible(m_bgSpr, 0);
m_songInfoObject = a1->m_songInfoObject;
if ( a2 != m_songInfoObject )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
m_songInfoObject = a1->m_songInfoObject;
}
if ( m_songInfoObject )
cocos2d::CCObject::release(m_songInfoObject);
a1->m_songInfoObject = a2;
m_songInfoObject = a2;
}
if ( m_songInfoObject )
a1->m_customSongID = m_songInfoObject->m_songID;
else
a1->m_customSongID = 0;
CustomSongWidget::updateSongInfo(a1);
}