//
// SFXSearchResult::getSelectedPage from 0x459464 to 0x4594c0 (92 bytes)
//
// 2 xrefs:
// > SFXBrowser::setupSFXBrowser @ 0x583658
// > SFXBrowser::onExitFolder @ 0x5844ca
//
// 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
//
int SFXSearchResult::getSelectedPage(SFXSearchResult *a1, int a2, int a3)
{
cocos2d::CCArray *m_filterObjects; // r4
signed int i; // r5
m_filterObjects = a1->m_filterObjects;
if ( !m_filterObjects || a3 <= 0 )
return 0;
for ( i = 0; (unsigned int)i < cocos2d::CCArray::count(m_filterObjects); ++i )
{
if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(m_filterObjects, i) + 52) == a2 )
return (int)floorf((float)(i / a3));
}
i = 0;
return (int)floorf((float)(i / a3));
}