//
// CustomSongLayer::dropDownLayerWillClose from 0x1001c36f8 to 0x1001c3758 (96 bytes)
//
// 2 xrefs:
// > sub_1001C3758 @ 0x1001c375c
// > ??> @ 0x1008e9fa0
//
// 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 11:00:16 +0000
//
__int64 __fastcall CustomSongLayer::dropDownLayerWillClose(__int64 result, __int64 a2)
{
__int64 v2; // x19
__int64 v3; // x20
__int64 v4; // x0
__int64 v5; // x0
if ( *(_BYTE *)(a2 + 632) == 1 )
{
v2 = result;
(***(void (__fastcall ****)(_QWORD, _QWORD))(result + 680))(*(_QWORD *)(result + 680), *(unsigned int *)(a2 + 628));
v3 = *(_QWORD *)(v2 + 696);
v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v2 + 680) + 8LL))(*(_QWORD *)(v2 + 680));
v5 = SongInfoObject::create_1(v4);
return CustomSongWidget::updateSongObject(v3, v5);
}
return result;
}