//
// CustomSongLayer::dropDownLayerWillClose from 0x100144c4c to 0x100144cac (96 bytes)
//
// 2 xrefs:
// > sub_100144CAC @ 0x100144cb0
// > ??> @ 0x100794e38
//
// 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 CustomSongLayer::dropDownLayerWillClose(CustomSongLayer *a1, GJDropDownLayer *a2)
{
CustomSongWidget *m_songWidget; // x20
int v4; // w0
SongInfoObject *v5; // x1
if ( LOBYTE(a2[1].m_uAutoReleaseCount) == 1 )
{
((void (__fastcall *)(CustomSongDelegate *, _QWORD))a1->m_songDelegate->songIDChanged)(
a1->m_songDelegate,
a2[1].m_uReference);
m_songWidget = a1->m_songWidget;
v4 = ((__int64 (__fastcall *)(CustomSongDelegate *))a1->m_songDelegate->getActiveSongID)(a1->m_songDelegate);
v5 = SongInfoObject::create_1(v4);
CustomSongWidget::updateSongObject(m_songWidget, v5);
}
}