//
// SFXBrowser::updatePageLabel from 0x583020 to 0x583118 (248 bytes)
//
// 1 xrefs:
// > SFXBrowser::setupList @ 0x58353e
//
// 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 SFXBrowser::updatePageLabel(SFXBrowser *a1)
{
int v2; // r0
int v3; // r7
int v4; // r8
int m_cellAmount; // r2
int v6; // r1
int v7; // r2
const char *v8; // r1
cocos2d::CCString *v9; // r0
char *CString; // r1
_DWORD v11[2]; // [sp+0h] [bp-8h] BYREF
v11[0] = a1;
v2 = cocos2d::CCArray::count(a1->m_searchResult->m_filterObjects);
v3 = v2;
if ( v2 <= 0 )
v4 = 0;
else
v4 = (int)ceilf((float)((v2 - 1) / a1->m_cellAmount));
v11[0] = &unk_ACDDA8;
if ( v3 <= 0 )
{
CString = "No matches";
}
else
{
m_cellAmount = a1->m_cellAmount;
v6 = a1->m_searchResult->m_startIndex * m_cellAmount;
v7 = m_cellAmount + v6;
v8 = (const char *)(v6 + 1);
if ( v7 >= v3 )
v7 = v3;
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i to %i of %i",
v8,
v7,
v3,
v11[0],
v11[1]);
CString = (char *)cocos2d::CCString::getCString(v9);
}
sub_7753D4((int)v11, CString);
a1->m_pageLabel->setString(a1->m_pageLabel, (const unsigned __int8 *)v11[0]);
a1->m_prevButton->setVisible(a1->m_prevButton, a1->m_searchResult->m_startIndex > 0);
a1->m_nextButton->setVisible(a1->m_nextButton, a1->m_searchResult->m_startIndex < v4);
sub_774008(v11);
}