//
// GameToolbox::msToTimeString from 0x140069660 to 0x140069789 (297 bytes)
//
// 3 xrefs:
// > GJLocalLevelScoreCell::loadFromScore @ 0x1400b9d11
// > GJLevelScoreCell::loadFromScore @ 0x1400ba69a
// > ??> @ 0x1406c5e80
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void **__fastcall GameToolbox::msToTimeString(void **a1, int a2)
{
int v3; // r8d
int v4; // r9d
int v5; // r11d
int v6; // r10d
int v7; // edx
cocos2d::CCString *v8; // rax
char *CString; // rax
size_t v10; // r8
cocos2d::CCString *v11; // rax
v3 = a2 / 1000;
v4 = a2 % 1000;
v5 = a2 / 1000 % 60;
v6 = a2 / 1000 / 60 % 60;
v7 = a2 / 1000 / 3600;
*(_OWORD *)a1 = 0;
a1[2] = nullptr;
a1[3] = (void *)15;
*(_BYTE *)a1 = 0;
if ( v3 / 3600 )
{
v11 = cocos2d::CCString::createWithFormat("%i:%02d:%02d.%03d", v7, v6, v5, v4);
CString = (char *)cocos2d::CCString::getCString(v11);
v10 = -1;
do
++v10;
while ( CString[v10] );
}
else
{
v8 = cocos2d::CCString::createWithFormat("%i:%02d.%03d", v6, v5, v4);
CString = (char *)cocos2d::CCString::getCString(v8);
v10 = -1;
do
++v10;
while ( CString[v10] );
}
sub_14003CCE0(a1, CString, v10);
return a1;
}