//
// TopArtistsLayer::updateLevelsLabel from 0xaaca00 to 0xaaca74 (116 bytes)
//
// 2 xrefs:
// > TopArtistsLayer::setupPageInfo @ 0xaad898
// > ??> @ 0x783e8
//
// This function is hookable on this platform (idp: arm, 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 13:00:54 +0000
//
__int64 __fastcall TopArtistsLayer::updateLevelsLabel(TopArtistsLayer *this)
{
int v2; // w3
unsigned int v3; // w4
__int64 v4; // x2
cocos2d::CCString *v5; // x0
__int64 CString; // x0
v2 = *((_DWORD *)this + 183);
v3 = *((_DWORD *)this + 182);
LODWORD(v4) = v2 + *((_DWORD *)this + 184);
if ( (int)v4 > (int)v3 )
v4 = v3;
else
v4 = (unsigned int)v4;
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i to %i of %i",
(const char *)(unsigned int)(v2 + 1),
v4,
v3);
CString = cocos2d::CCString::getCString(v5);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 90) + 928LL))(*((_QWORD *)this + 90), CString);
return cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 90), 100.0, 0.5, 0.0);
}