//
// GJRateLevelListLayer::updateStarSumLabel from 0x9520cc to 0x95214c (128 bytes)
//
// 3 xrefs:
// > GJRateLevelListLayer::valueDidChange @ 0x95215c
// > GJRateLevelListLayer::init @ 0x955f00
// > ??> @ 0xd5b50
//
// 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 12:57:23 +0000
//
_QWORD *__fastcall GJRateLevelListLayer::updateStarSumLabel(_QWORD *this, int a2)
{
_QWORD *v2; // x19
unsigned int v3; // w0
__int64 v4; // x19
__int64 (__fastcall *v5)(__int64, __int64); // x20
cocos2d::CCString *v6; // x0
__int64 CString; // x0
if ( *(this + 140) )
{
v2 = this;
v3 = GJRateLevelListLayer::starSumForBottom((GJRateLevelListLayer *)this, a2);
if ( (v3 & 0x80000000) != 0 )
{
return (_QWORD *)(*(__int64 (__fastcall **)(_QWORD, const char *))(*(_QWORD *)v2[140] + 928LL))(v2[140], "NA");
}
else
{
v4 = v2[140];
v5 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 928LL);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%d", (const char *)v3);
CString = cocos2d::CCString::getCString(v6);
return (_QWORD *)v5(v4, CString);
}
}
return this;
}