//
// SFXBrowser::sortSelectClosed from 0x584310 to 0x584344 (52 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SFXBrowser::sortSelectClosed @ 0x584348
//
// 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; // r0
AudioSortType m_sortType; // r1
SFXSearchResult_vtbl *v5; // r3
SFXSearchResult *v6; // r1
m_searchResult = a1->m_searchResult;
if ( m_searchResult )
{
m_sortType = a2->m_sortType;
if ( a1->m_sortType != m_sortType )
{
v5 = m_searchResult->MusicSearchResult::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_sortType = m_sortType;
((void (__fastcall *)(SFXSearchResult *))v5->updateObjects)(m_searchResult);
v6 = a1->m_searchResult;
v6->m_startIndex = 0;
SFXBrowser::setupList(a1, v6);
}
}
}