//
// MusicBrowser::onPage from 0x1003c19bc to 0x1003c1a5c (160 bytes)
//
// 1 xrefs:
// > MusicBrowser::init @ 0x1003c11a0
//
// 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 MusicBrowser::onPage(MusicBrowser *a1, cocos2d::CCObject *a2)
{
MusicSearchResult *m_searchResult; // x8
unsigned int v5; // w21
int m_startIndex; // w22
int v7; // w8
int v8; // w8
MusicSearchResult *v9; // x1
m_searchResult = a1->m_searchResult;
if ( m_searchResult )
{
v5 = sub_10024A36C((__int64)m_searchResult->m_filterObjects);
m_startIndex = a1->m_searchResult->m_startIndex;
if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1 )
v7 = 1;
else
v7 = -1;
v8 = v7 + m_startIndex;
if ( v8 >= 0 && v8 <= (int)(float)(v5 / 0xA) )
{
v9 = a1->m_searchResult;
v9->m_startIndex = v8;
MusicBrowser::setupList(a1, v9);
}
}
}