//
// SFXBrowser::sortSelectClosed from 0x10016a5d0 to 0x10016a62c (92 bytes)
//
// 2 xrefs:
// > sub_10016A62C @ 0x10016a630
// > ??> @ 0x10079dbf0
//
// 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 SFXBrowser::sortSelectClosed(SFXBrowser *a1, SelectSFXSortLayer *a2)
{
SFXSearchResult *m_searchResult; // x0
AudioSortType m_sortType; // w1
SFXSearchResult *v5; // x1
m_searchResult = a1->m_searchResult;
if ( m_searchResult )
{
m_sortType = a2->m_sortType;
if ( a1->m_sortType != m_sortType )
{
a1->m_sortType = m_sortType;
((void (__fastcall *)(SFXSearchResult *))m_searchResult->updateObjects)(m_searchResult);
v5 = a1->m_searchResult;
v5->m_startIndex = 0;
SFXBrowser::setupList(a1, v5);
}
}
}