//
// LevelBrowserLayer::updatePageLabel from 0x4a491c to 0x4a49b4 (152 bytes)
//
// 2 xrefs:
// > LevelBrowserLayer::updateLevelsLabel @ 0x4a4a12
// > LevelBrowserLayer::init @ 0x4a71a6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:49:53 +0000
//
_DWORD *__fastcall LevelBrowserLayer::updatePageLabel(_DWORD *this)
{
_DWORD *v1; // r4
int v2; // r5
int v3; // r1
void (__fastcall *v4)(int, int); // r6
cocos2d::CCString *v5; // r0
int CString; // r0
int v7; // r5
int v8; // r1
void (__fastcall *v9)(int, int); // r6
cocos2d::CCString *v10; // r0
int v11; // r0
v1 = this;
v2 = *(this + 127);
if ( v2 )
{
v3 = *(this + 125);
if ( v3 )
v3 = *(_DWORD *)(v3 + 304);
v4 = *(void (__fastcall **)(int, int))(*(_DWORD *)v2 + 464);
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)(v3 + 1));
CString = cocos2d::CCString::getCString(v5);
v4(v2, CString);
cocos2d::CCLabelBMFont::limitLabelWidth((cocos2d::CCLabelBMFont *)v1[127], 32.0, 0.8, 0.0);
v7 = v1[129];
if ( v7 )
{
v8 = v1[125];
if ( v8 )
v8 = *(_DWORD *)(v8 + 332);
v9 = *(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 464);
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v8);
v11 = cocos2d::CCString::getCString(v10);
v9(v7, v11);
cocos2d::CCLabelBMFont::limitLabelWidth((cocos2d::CCLabelBMFont *)v1[129], 24.0, 0.55, 0.0);
}
this = (_DWORD *)v1[121];
if ( this )
return (_DWORD *)(*(int (__fastcall **)(_DWORD *, bool))(*this + 172))(this, v1[136] > 0);
}
return this;
}