//
// SFXBrowser::sortSelectClosed from 0xa5eee4 to 0xa5ef4c (104 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SFXBrowser::sortSelectClosed @ 0xa5ef50
// > ??> @ 0x89d60
// > ??> @ 0x11ec380
//
// 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 SFXBrowser::sortSelectClosed(SFXBrowser *a1, SelectSFXSortLayer *a2)
{
SFXSearchResult *m_searchResult; // x2
AudioSortType m_sortType; // w3
SFXSearchResult *v5; // x0
void (__fastcall *updateObjects)(SFXSearchResult *__hidden, AudioSortType); // x2
SFXSearchResult *v7; // x2
m_searchResult = a1->m_searchResult;
if ( m_searchResult )
{
m_sortType = a2->m_sortType;
if ( a1->m_sortType != m_sortType )
{
v5 = a1->m_searchResult;
updateObjects = m_searchResult->updateObjects;
a1->m_sortType = m_sortType;
updateObjects(v5, m_sortType);
v7 = a1->m_searchResult;
v7->m_startIndex = 0;
SFXBrowser::setupList(a1, v7);
}
}
}