//
// LevelBrowserLayer::updateLevelsLabel from 0x3bb3d0 to 0x3bb41c (76 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::setupPageInfo @ 0x3bb576
//
// 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 LevelBrowserLayer::updateLevelsLabel(LevelBrowserLayer *a1)
{
int m_pageStartIdx; // r1
int m_itemCount; // r2
const char *v3; // r1
cocos2d::CCString *v5; // r0
const unsigned __int8 *CString; // r0
m_pageStartIdx = a1->m_pageStartIdx;
m_itemCount = a1->m_pageEndIdx + m_pageStartIdx;
v3 = (const char *)(m_pageStartIdx + 1);
if ( m_itemCount >= a1->m_itemCount )
m_itemCount = a1->m_itemCount;
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i to %i of %i", v3, m_itemCount);
CString = (const unsigned __int8 *)cocos2d::CCString::getCString(v5);
a1->m_countText->setString(a1->m_countText, CString);
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_countText, 100.0, 0.6, 0.0);
LevelBrowserLayer::updatePageLabel(a1);
}