//
// CustomSongLayer::dropDownLayerWillClose from 0x83b03c to 0x83b0a8 (108 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CustomSongLayer::dropDownLayerWillClose @ 0x83b0ac
// > ??> @ 0x81300
// > ??> @ 0x118a8a8
//
// 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::dropDownLayerWillClose(CustomSongLayer *a1, GJDropDownLayer *a2)
{
CustomSongDelegate *m_songDelegate; // x1
CustomSongWidget *m_songWidget; // x19
SongInfoObject *v5; // x0
SongInfoObject *v6; // x0
if ( LOBYTE(a2[1].m_uAutoReleaseCount) )
{
a1->m_songDelegate->songIDChanged(a1->m_songDelegate, a2[1].m_uReference);
m_songDelegate = a1->m_songDelegate;
m_songWidget = a1->m_songWidget;
v5 = (SongInfoObject *)((__int64 (__fastcall *)(CustomSongDelegate *))m_songDelegate->getActiveSongID)(m_songDelegate);
v6 = (SongInfoObject *)SongInfoObject::create(v5);
CustomSongWidget::updateSongObject(m_songWidget, v6);
}
}