//
// CCCounterLabel::updateString from 0x68fe24 to 0x68ff1c (248 bytes)
//
// 4 xrefs:
// > CCCounterLabel::updateCounter @ 0x68ff6c
// > CCCounterLabel::updateCounter @ 0x68ffa0
// > CCCounterLabel::fastUpdateCounter @ 0x68ffb4
// > ??> @ 0x8f518
//
// 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:50:35 +0000
//
__int64 __fastcall CCCounterLabel::updateString(CCCounterLabel *this)
{
void (__fastcall *v2)(CCCounterLabel *, char *); // x22
char *v3; // x1
cocos2d::CCString *v5; // x0
void (__fastcall *v6)(CCCounterLabel *, __int64); // x19
__int64 CString; // x0
__int64 v8[2]; // [xsp+30h] [xbp+30h] BYREF
void *v9; // [xsp+40h] [xbp+40h]
if ( *((_DWORD *)this + 135) == 1 )
{
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%.2f",
(const char *)*((unsigned int *)this + 131),
(float)((float)*((int *)this + 131) / 100.0));
v6 = *(void (__fastcall **)(CCCounterLabel *, __int64))(*(_QWORD *)this + 928LL);
CString = cocos2d::CCString::getCString(v5);
v6(this, CString);
}
else
{
v2 = *(void (__fastcall **)(CCCounterLabel *, char *))(*(_QWORD *)this + 928LL);
GameToolbox::intToString(v8, (GameToolbox *)*((unsigned int *)this + 131), *(_QWORD *)this);
v3 = (char *)v8 + 1;
if ( (v8[0] & 1) != 0 )
v3 = (char *)v9;
v2(this, v3);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
}
return _stack_chk_guard;
}