//
// GameToolbox::msToTimeString from 0x6a105c to 0x6a11bc (352 bytes)
//
// 4 xrefs:
// > GJLocalLevelScoreCell::loadFromScore @ 0x749190
// > GJLevelScoreCell::loadFromScore @ 0x749878
// > LevelStatsInfoPopup::buildStatsText @ 0xcf8748
// > ??> @ 0x97af8
//
// 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:42 +0000
//
__int64 *__usercall GameToolbox::msToTimeString@(GameToolbox *this@, int a2@, __int64 *a3@)
{
unsigned int v4; // w7
unsigned int v5; // w2
unsigned int v6; // w3
unsigned int v7; // w4
cocos2d::CCString *v8; // x0
char *CString; // x0
v4 = (int)this / 1000 / 3600;
v5 = (int)this / 1000 / 60 % 60;
*a3 = 0;
a3[1] = 0;
a3[2] = 0;
v6 = (int)this / 1000 % 60;
v7 = (int)this % 1000;
if ( v4 | a2 | v5 )
{
if ( v4 || a2 == 2 )
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i:%02d:%02d.%03d",
(const char *)v4);
else
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i:%02d.%03d",
(const char *)v5,
v6,
v7);
}
else
{
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i.%03d", (const char *)v6, v7);
}
CString = (char *)cocos2d::CCString::getCString(v8);
std::string::assign(a3, CString);
return a3;
}