//
// SFXBrowser::onClearSearch from 0x100169a24 to 0x100169a7c (88 bytes)
//
// 1 xrefs:
// > SFXBrowser::init @ 0x1001693fc
//
// 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::onClearSearch(SFXBrowser *a1, cocos2d::CCObject *a2)
{
SFXSearchResult *m_searchResult; // x8
SFXSearchResult *v4; // x0
m_searchResult = a1->m_searchResult;
if ( m_searchResult )
{
std::string::assign((std::string *)&m_searchResult->m_searchQuery, "");
v4 = a1->m_searchResult;
v4->m_startIndex = 0;
((void (__fastcall *)(SFXSearchResult *, _QWORD))v4->updateObjects)(v4, (unsigned int)a1->m_sortType);
SFXBrowser::setupList(a1, a1->m_searchResult);
}
}