//
// CustomSongLayer::onClose from 0x83aa88 to 0x83ab04 (124 bytes)
//
// 4 xrefs:
// > CustomSongLayer::keyBackClicked @ 0x83ab08
// > ??> @ 0x74670
// > CustomSongLayer::init @ 0x83c398
// > ??> @ 0x122be00
//
// 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 CustomSongLayer::onClose(CustomSongLayer *a1, cocos2d::CCObject *a2)
{
CustomSongLayerDelegate *m_delegate; // x0
FMODAudioEngine *v4; // x0
m_delegate = a1->m_delegate;
if ( m_delegate )
m_delegate->customSongLayerClosed(m_delegate);
a1->m_songIDInput->onClickTrackNode(a1->m_songIDInput, 0);
v4 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v4, 1);
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}