//
// GameToolbox::msToTimeString from 0x10004f32c to 0x10004f464 (312 bytes)
//
// 3 xrefs:
// > GJLevelScoreCell::loadFromScore @ 0x10012e664
// > GJLocalLevelScoreCell::loadFromScore @ 0x10012ead0
// > sub_1004F296C @ 0x1004f2b00
//
// 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 10:57:42 +0000
//
std::string *__usercall GameToolbox::msToTimeString@(int a1@, int a2@, std::string *a3@)
{
__int64 v4; // x0
const std::string::value_type *CString; // x0
a3->__r_.__value_.__r.__words[0] = 0;
a3->__r_.__value_.__l.__size_ = 0;
a3->__r_.__value_.__r.__words[2] = 0;
if ( (unsigned int)(a1 + 3599999) > 0x6DDCFE || (a1 / 60000 % 60) | a2 )
{
if ( (unsigned int)(a1 + 3599999) > 0x6DDCFE || a2 == 2 )
v4 = sub_1003065B0("%i:%02d:%02d.%03d", a1 / 3600000, a1 / 60000 % 60, a1 / 1000 % 60, a1 % 1000);
else
v4 = sub_1003065B0("%i:%02d.%03d", a1 / 60000 % 60, a1 / 1000 % 60, a1 % 1000);
}
else
{
v4 = sub_1003065B0("%i.%03d", a1 / 1000 % 60, a1 % 1000);
}
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v4);
return std::string::assign(a3, CString);
}