//
// SFXBrowser::cellPerformedAction from 0x10016a7b8 to 0x10016a85c (164 bytes)
//
// 2 xrefs:
// > sub_10016A85C @ 0x10016a860
// > ??> @ 0x10079dc00
//
// 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
//
bool __fastcall SFXBrowser::cellPerformedAction(
SFXBrowser *a1,
TableViewCell *a2,
int a3,
CellAction a4,
cocos2d::CCNode *a5)
{
unsigned int v5; // w22
SFXFolderObject *v8; // x20
SFXSearchResult *v9; // x21
v5 = a3 - 23;
if ( (unsigned int)(a3 - 23) <= 1 && a4 == Click )
{
v8 = *(SFXFolderObject **)&a2[1].m_uID;
if ( v8->m_folder )
{
v9 = SFXSearchResult::create(a1->m_sfxID);
SFXSearchResult::setActiveFolder(v9, v8);
((void (__fastcall *)(SFXSearchResult *, _QWORD))v9->updateObjects)(v9, (unsigned int)a1->m_sortType);
v9->m_startIndex = 0;
SFXBrowser::setupList(a1, v9);
}
else
{
a1->m_sfxID = v8->m_sfxID;
a1->m_selectedCell = 1;
CustomListView::reloadAll((CustomListView *)a1->m_listLayer->m_list);
}
}
return v5 < 2;
}