//
// SetupSongTriggerPopup::onClose from 0x9a9a14 to 0x9a9a94 (128 bytes)
//
// 2 xrefs:
// > ??> @ 0x62e80
// > ??> @ 0x11c54d8
//
// 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 SetupSongTriggerPopup::onClose(SetupSongTriggerPopup *a1, cocos2d::CCObject *a2)
{
FMODAudioEngine *v4; // x0
GameManager *v5; // x0
SongSelectNode *m_selectNode; // x1
FMODAudioEngine *v7; // x0
v4 = FMODAudioEngine::sharedEngine();
if ( FMODAudioEngine::isMusicPlaying(v4, 0) )
{
v7 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v7, 1);
}
v5 = GameManager::sharedState();
m_selectNode = a1->m_selectNode;
v5->m_levelEditorLayer->m_unk3751 = 1;
if ( m_selectNode->m_songChanged )
SetupTriggerPopup::updateValue(a1, 392, (float)m_selectNode->m_selectedSongID);
SetupTriggerPopup::onClose(a1, a2);
}