//
// LevelBrowserLayer::updatePageLabel from 0x100482850 to 0x10048296f (287 bytes)
//
// 3 xrefs:
// > LevelBrowserLayer::init @ 0x100480e41
// > LevelBrowserLayer::setupPageInfo @ 0x100486ee2
// > LevelBrowserLayer::updateLevelsLabel @ 0x100487055
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:30:41 +0000
//
__int64 __fastcall LevelBrowserLayer::updatePageLabel(__int64 a1)
{
__int64 result; // rax
__int64 v2; // r15
__int64 v4; // rax
__int64 CString; // rax
__int64 v6; // r15
__int64 v7; // rax
__int64 v8; // rax
__int64 v9; // rdi
char v10; // [rsp-8h] [rbp-20h]
v2 = *(_QWORD *)(a1 + 680);
if ( v2 )
{
v4 = sub_10088E820("%i", result);
CString = cocos2d::CCString::getCString(v4);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 928LL))(v2, CString);
result = cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 680), 32.0, 0.80000001, 0.0);
v6 = *(_QWORD *)(a1 + 696);
if ( v6 )
{
v7 = sub_10088E820("%i", v10);
v8 = cocos2d::CCString::getCString(v7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 928LL))(v6, v8);
result = cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 696), 24.0, 0.55000001, 0.0);
}
v9 = *(_QWORD *)(a1 + 632);
if ( v9 )
return (*(__int64 (__fastcall **)(__int64, bool))(*(_QWORD *)v9 + 344LL))(v9, *(_DWORD *)(a1 + 744) > 0);
}
return result;
}