//
// GJRateLevelListLayer::updateStarSumLabel from 0x5658dc to 0x56591e (66 bytes)
//
// 2 xrefs:
// > GJRateLevelListLayer::valueDidChange @ 0x565938
// > GJRateLevelListLayer::init @ 0x56768c
//
// 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:52:28 +0000
//
GJRateLevelListLayer *__fastcall GJRateLevelListLayer::updateStarSumLabel(GJRateLevelListLayer *this, int a2)
{
GJRateLevelListLayer *v2; // r4
const char *v3; // r0
int *v4; // r4
int v5; // r3
int (__fastcall *v6)(int *, int); // r5
cocos2d::CCString *v7; // r0
int CString; // r1
v2 = this;
if ( *((_DWORD *)this + 197) )
{
v3 = (const char *)GJRateLevelListLayer::starSumForBottom(this, a2);
v4 = *((int **)v2 + 197);
v5 = *v4;
if ( (int)v3 >= 0 )
{
v6 = *(int (__fastcall **)(int *, int))(v5 + 464);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%d", v3);
CString = cocos2d::CCString::getCString(v7);
return (GJRateLevelListLayer *)v6(v4, CString);
}
else
{
return (GJRateLevelListLayer *)(*(int (__fastcall **)(int *, const char *))(v5 + 464))(v4, "NA");
}
}
return this;
}