//
// SFXBrowser::onPage from 0x1001696f4 to 0x1001697b8 (196 bytes)
//
// 1 xrefs:
// > SFXBrowser::init @ 0x100168ea0
//
// 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::onPage(SFXBrowser *a1, cocos2d::CCObject *a2)
{
SFXSearchResult *m_searchResult; // x8
unsigned int v5; // w21
unsigned int m_cellAmount; // w22
int m_startIndex; // w23
cocos2d::CCObject *v8; // x1
int v9; // w8
int v10; // w8
SFXSearchResult *v11; // x1
m_searchResult = a1->m_searchResult;
if ( m_searchResult )
{
v5 = sub_10024A36C(m_searchResult->m_filterObjects);
m_cellAmount = a1->m_cellAmount;
m_startIndex = a1->m_searchResult->m_startIndex;
if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1 )
v9 = 1;
else
v9 = -1;
v10 = v9 + m_startIndex;
if ( v10 < 0 || v10 > (int)(float)(v5 / m_cellAmount) )
{
if ( v10 == -1 )
SFXBrowser::onExitFolder(a1, v8);
}
else
{
v11 = a1->m_searchResult;
v11->m_startIndex = v10;
SFXBrowser::setupList(a1, v11);
}
}
}