//
// CustomSongLayer::onClose from 0x45df20 to 0x45df64 (68 bytes)
//
// 1 xrefs:
// > CustomSongLayer::keyBackClicked @ 0x45df66
//
// 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; // r0
FMODAudioEngine *v4; // r0
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(CustomSongLayerDelegate *, cocos2d::CCObject *))m_delegate->customSongLayerClosed)(
m_delegate,
a2);
a1->m_songIDInput->onClickTrackNode(a1->m_songIDInput, 0);
v4 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v4, (bool)&dword_0 + 1);
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}