//
// CCCounterLabel::updateString from 0x140046f60 to 0x140047012 (178 bytes)
//
// 3 xrefs:
// > CCCounterLabel::updateCounter @ 0x140046f42
// > GJShopLayer::init @ 0x1403b1097
// > ??> @ 0x14090fa1c
//
// This function is hookable on this platform (idp: pc, 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 11:25:31 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall CCCounterLabel::updateString(__int64 a1)
{
__int64 v2; // rdx
cocos2d::CCString *v3; // rax
__int64 v4; // rdi
void (__fastcall **v5)(__int64, const char *); // rbx
const char *CString; // rax
_QWORD *v7; // rax
_QWORD *v8; // rdx
_BYTE v9[32]; // [rsp+20h] [rbp-38h] BYREF
v2 = *(unsigned int *)(a1 + 544);
if ( *(_DWORD *)(a1 + 560) == 1 )
{
v3 = cocos2d::CCString::createWithFormat("%.2f", (float)((float)(int)v2 / 100.0));
v4 = a1 + 360;
v5 = *(void (__fastcall ***)(__int64, const char *))(a1 + 360);
CString = cocos2d::CCString::getCString(v3);
(*v5)(v4, CString);
}
else
{
v7 = (_QWORD *)GameToolbox::intToString(v9, v2);
v8 = v7;
if ( v7[3] > 0xFu )
v8 = (_QWORD *)*v7;
(**(void (__fastcall ***)(__int64, _QWORD *))(a1 + 360))(a1 + 360, v8);
sub_14003D310((__int64)v9);
}
}