//
// SFXBrowser::onPage from 0xa5f1f4 to 0xa5f2b0 (188 bytes)
//
// 4 xrefs:
// > ??> @ 0xadc70
// > sub_A5DEA4 @ 0xa5e518
// > sub_A5DEA4 @ 0xa5e5ec
// > ??> @ 0x122e010
//
// 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::onPage(SFXBrowser *a1, cocos2d::CCObject *a2)
{
SFXSearchResult *m_searchResult; // x2
unsigned int v5; // w0
int m_startIndex; // w21
signed int v7; // w19
int v8; // w0
signed int v9; // w2
SFXSearchResult *v10; // x3
m_searchResult = a1->m_searchResult;
if ( m_searchResult )
{
v5 = cocos2d::CCArray::count(m_searchResult->m_filterObjects);
m_startIndex = a1->m_searchResult->m_startIndex;
v7 = vcvtps_s32_f32((float)(v5 / a1->m_cellAmount));
v8 = a2->getTag(a2);
v9 = m_startIndex + 1;
if ( v8 != 1 )
v9 = m_startIndex - 1;
if ( v9 > v7 || v9 < 0 )
{
if ( v9 == -1 )
SFXBrowser::onExitFolder(a1, a2);
}
else
{
v10 = a1->m_searchResult;
v10->m_startIndex = v9;
SFXBrowser::setupList(a1, v10);
}
}
}