//
// AchievementsLayer::setupPageInfo from 0x100422530 to 0x1004225cc (156 bytes)
//
// 1 xrefs:
// > AchievementsLayer::loadPage @ 0x100422390
//
// 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 AchievementsLayer::setupPageInfo(AchievementsLayer *a1, int a2, int a3, int a4)
{
int v8; // w8
int v9; // w19
int v10; // w20
cocos2d::CCString *v11; // x0
const char *CString; // x1
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_prevPageButton->setVisible)(a1->m_prevPageButton, a3 != 0);
v8 = a4 + a3;
v9 = a3 + 1;
if ( v8 >= a2 )
v10 = a2;
else
v10 = v8;
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_nextPageButton->setVisible)(a1->m_nextPageButton, v8 < a2);
v11 = (cocos2d::CCString *)sub_100268F4C("%i to %i of %i", v9, v10, a2);
CString = cocos2d::CCString::getCString(v11);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_pageLabel->setString)(a1->m_pageLabel, CString);
}