//
// SetupSongTriggerPopup::onClose from 0x1002d4300 to 0x1002d4379 (121 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009080a8
//
// 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 __fastcall SetupSongTriggerPopup::onClose(SetupSongTriggerPopup *a1, cocos2d::CCObject *a2)
{
FMODAudioEngine *v2; // rax
FMODAudioEngine *v3; // rax
SongSelectNode *m_selectNode; // rax
v2 = FMODAudioEngine::sharedEngine();
if ( FMODAudioEngine::isMusicPlaying_1(v2, 0) )
{
v3 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v3, 1);
}
GameManager::sharedState()->m_levelEditorLayer->m_unk3751 = 1;
m_selectNode = a1->m_selectNode;
if ( m_selectNode->m_songChanged )
SetupTriggerPopup::updateValue(a1, 392, (float)m_selectNode->m_selectedSongID);
SetupTriggerPopup::onClose(a1, a2);
}