//
// SFXBrowser::updatePageLabel from 0x100440680 to 0x1004407a6 (294 bytes)
//
// 1 xrefs:
// > SFXBrowser::setupList @ 0x1004402c6
//
// 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::updatePageLabel(SFXBrowser *a1)
{
int v1; // eax
int v2; // r14d
cocos2d::CCString *v3; // rax
const char *CString; // rax
int v5; // r14d
std::string::pointer data; // rsi
std::string v7; // [rsp+0h] [rbp-30h] BYREF
v1 = sub_100720070(a1->m_searchResult->m_filterObjects);
if ( v1 <= 0 )
{
memset(&v7, 0, sizeof(v7));
v5 = 0;
std::string::assign(&v7, "No matches");
}
else
{
v2 = (v1 - 1) / a1->m_cellAmount;
memset(&v7, 0, sizeof(v7));
v3 = (cocos2d::CCString *)sub_1007AB580("%i to %i of %i", 0);
CString = cocos2d::CCString::getCString(v3);
std::string::assign(&v7, CString);
v5 = (int)(float)v2;
}
if ( (*(_BYTE *)&v7.__r_.__value_.__s.0 & 1) != 0 )
data = v7.__r_.__value_.__l.__data_;
else
data = v7.__r_.__value_.__s.__data_;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string::pointer))a1->m_pageLabel->setString)(
a1->m_pageLabel,
data);
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_prevButton->setVisible)(
a1->m_prevButton,
a1->m_searchResult->m_startIndex > 0);
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_nextButton->setVisible)(
a1->m_nextButton,
a1->m_searchResult->m_startIndex < v5);
if ( (*(_BYTE *)&v7.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v7.__r_.__value_.__l.__data_);
}