//
// CustomSongLayer::dropDownLayerWillClose from 0x1002162a0 to 0x1002162f4 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008de058
//
// 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; // rbx
int v3; // eax
SongInfoObject *v4; // rax
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;
v3 = ((__int64 (__fastcall *)(CustomSongDelegate *))a1->m_songDelegate->getActiveSongID)(a1->m_songDelegate);
v4 = SongInfoObject::create_1(v3);
CustomSongWidget::updateSongObject(m_songWidget, v4);
}
}