//
// CustomSongLayer::musicBrowserClosed from 0x1001c3760 to 0x1001c37c0 (96 bytes)
//
// 2 xrefs:
// > sub_1001C37C0 @ 0x1001c37c4
// > ??> @ 0x1008e9fa8
//
// 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::musicBrowserClosed(__int64 result, __int64 a2)
{
__int64 v2; // x19
__int64 v3; // x20
__int64 v4; // x0
__int64 v5; // x0
if ( *(_BYTE *)(a2 + 873) == 1 )
{
v2 = result;
(***(void (__fastcall ****)(_QWORD, _QWORD))(result + 680))(*(_QWORD *)(result + 680), *(unsigned int *)(a2 + 864));
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;
}