//
// SFXBrowser::onClearSearch from 0xa5efbc to 0xa5f024 (104 bytes)
//
// 3 xrefs:
// > ??> @ 0x85668
// > sub_A5DEA4 @ 0xa5ea94
// > ??> @ 0x122c808
//
// 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::onClearSearch(SFXBrowser *a1, cocos2d::CCObject *a2)
{
SFXSearchResult *m_searchResult; // x3
long double v4; // q0
__int64 m_sortType; // x1
SFXSearchResult *v6; // x0
SFXSearchResult_vtbl *v7; // x3
m_searchResult = a1->m_searchResult;
if ( m_searchResult )
{
*(__n128 *)&v4 = sub_D1798C(&m_searchResult->m_searchQuery, &byte_F288A0, 0);
m_sortType = (unsigned int)a1->m_sortType;
v6 = a1->m_searchResult;
v7 = v6->MusicSearchResult::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v6->m_startIndex = 0;
((void (__fastcall *)(SFXSearchResult *, __int64, long double))v7->updateObjects)(v6, m_sortType, v4);
SFXBrowser::setupList(a1, a1->m_searchResult);
}
}