//
// CustomSongLayer::dropDownLayerWillClose from 0x97e744 to 0x97e7b0 (108 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CustomSongLayer::dropDownLayerWillClose @ 0x97e7b4
// > ??> @ 0xabe08
// > ??> @ 0x146f7a8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:57:50 +0000
//
__int64 __fastcall CustomSongLayer::dropDownLayerWillClose(__int64 this, GJDropDownLayer *a2)
{
__int64 v2; // x19
__int64 v3; // x1
CustomSongWidget *v4; // x19
SongInfoObject *v5; // x0
SongInfoObject *v6; // x0
if ( *((_BYTE *)a2 + 632) )
{
v2 = this;
(***(void (__fastcall ****)(_QWORD, _QWORD))(this + 680))(*(_QWORD *)(this + 680), *((unsigned int *)a2 + 157));
v3 = *(_QWORD *)(v2 + 680);
v4 = *(CustomSongWidget **)(v2 + 696);
v5 = (SongInfoObject *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 8LL))(v3);
v6 = (SongInfoObject *)SongInfoObject::create(v5);
return CustomSongWidget::updateSongObject(v4, v6);
}
return this;
}