//
// MusicBrowser::onPage from 0x10060e990 to 0x10060ea20 (144 bytes)
//
// 2 xrefs:
// > MusicBrowser::init @ 0x10060e076
// > MusicBrowser::init @ 0x10060e15f
//
// 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; // rax
unsigned int v3; // r14d
int m_startIndex; // r12d
int v5; // eax
MusicSearchResult *v6; // rsi
m_searchResult = a1->m_searchResult;
if ( m_searchResult )
{
v3 = sub_100720070(m_searchResult->m_filterObjects);
m_startIndex = a1->m_searchResult->m_startIndex;
v5 = m_startIndex + 2 * (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1) - 1;
if ( v5 >= 0 && v5 <= (int)(float)(v3 / 0xA) )
{
v6 = a1->m_searchResult;
v6->m_startIndex = v5;
MusicBrowser::setupList(a1, v6);
}
}
}