//
// SFXBrowser::onPage from 0x10043f620 to 0x10043f6be (158 bytes)
//
// 2 xrefs:
// > SFXBrowser::init @ 0x10043ecda
// > SFXBrowser::init @ 0x10043edc3
//
// 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; // rax
unsigned int v3; // eax
int v4; // r14d
int m_startIndex; // r12d
int v6; // eax
SFXSearchResult *v7; // rsi
m_searchResult = a1->m_searchResult;
if ( m_searchResult )
{
v3 = sub_100720070(m_searchResult->m_filterObjects);
v4 = v3 / a1->m_cellAmount;
m_startIndex = a1->m_searchResult->m_startIndex;
v6 = m_startIndex
+ 2
* (((unsigned int (__fastcall *)(cocos2d::CCObject *, cocos2d::CCObject *, _QWORD))a2->getTag)(
a2,
a2,
v3 % a1->m_cellAmount) == 1)
- 1;
if ( v6 < 0 || v6 > (int)(float)v4 )
{
if ( v6 == -1 )
SFXBrowser::onExitFolder(a1, a2);
}
else
{
v7 = a1->m_searchResult;
v7->m_startIndex = v6;
SFXBrowser::setupList(a1, v7);
}
}
}