//
// MusicBrowser::sortSelectClosed from 0xb85604 to 0xb85664 (96 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'MusicBrowser::sortSelectClosed @ 0xb85668
// > ??> @ 0xd6a20
// > ??> @ 0x14d4b90
//
// 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 13:02:30 +0000
//
__int64 __fastcall MusicBrowser::sortSelectClosed(__int64 this, SelectSFXSortLayer *a2)
{
_DWORD *v2; // x2
MusicSearchResult **v3; // x19
v2 = *(_DWORD **)(this + 712);
if ( v2 )
{
if ( v2[32] != *((_DWORD *)a2 + 165) )
{
v3 = (MusicSearchResult **)this;
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)v2 + 80LL))(*(_QWORD *)(this + 712));
*((_DWORD *)v3[89] + 24) = 0;
return MusicBrowser::setupList((MusicBrowser *)v3, v3[89]);
}
}
return this;
}