//
// CCCounterLabel::updateString from 0x3c55cc to 0x3c5668 (156 bytes)
//
// 2 xrefs:
// > CCCounterLabel::updateCounter @ 0x3c56e2
// > CCCounterLabel::fastUpdateCounter @ 0x3c56f4
//
// 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:46:34 +0000
//
void __fastcall CCCounterLabel::updateString(CCCounterLabel *this, const char *a2)
{
cocos2d::CCString *v3; // r0
void (__fastcall *v4)(CCCounterLabel *, int); // r6
int CString; // r0
void (__fastcall *v6)(CCCounterLabel *, char *); // r7
char v7; // r6
char *v8; // r1
char v9; // [sp+0h] [bp-14h] BYREF
char v10; // [sp+1h] [bp-13h] BYREF
void *v11; // [sp+8h] [bp-Ch]
if ( *((_DWORD *)this + 101) == 1 )
{
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%.2f",
a2,
(float)((float)*((int *)this + 97) / 100.0));
v4 = *(void (__fastcall **)(CCCounterLabel *, int))(*(_DWORD *)this + 464);
CString = cocos2d::CCString::getCString(v3);
v4(this, CString);
}
else
{
v6 = *(void (__fastcall **)(CCCounterLabel *, char *))(*(_DWORD *)this + 464);
GameToolbox::intToString((GameToolbox *)&v9, *((_DWORD *)this + 97));
v7 = v9;
if ( (v9 & 1) != 0 )
v8 = (char *)v11;
else
v8 = &v10;
v6(this, v8);
if ( (v7 & 1) != 0 )
operator delete(v11);
}
}