//
// GameLevelManager::makeTimeStamp from 0x140149c90 to 0x140149d84 (244 bytes)
//
// 19 xrefs:
// > FRequestProfilePage::onUpdate @ 0x14013e6f6
// > FriendsProfilePage::onUpdate @ 0x140140b1a
// > GameLevelManager::storeSearchResult @ 0x1401496a7
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x1401533bc
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x1401534c0
// > GameLevelManager::uploadUserMessage @ 0x14015afab
// > GameLevelManager::storeCommentsResult @ 0x14015d7de
// > GameLevelManager::uploadComment @ 0x14015dca5
// > GameLevelManager::uploadFriendRequest @ 0x1401607b6
// > GJAccountManager::onBackupAccountCompleted @ 0x140202210
// > GJAccountManager::onSyncAccountCompleted @ 0x140202eae
// > InfoLayer::onRefreshComments @ 0x1402bcd9a
// > LevelLeaderboard::loadScores @ 0x1403024d8
// > LevelLeaderboard::onUpdate @ 0x1403028d3
// > MessagesProfilePage::onUpdate @ 0x1403372b6
// > ProfilePage::onUpdate @ 0x1403bf8c1
// > TopArtistsLayer::init @ 0x1404cb2ef
// > TopArtistsLayer::loadPage @ 0x1404cba7b
// > ??> @ 0x1406ca6ec
//
// 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 GameLevelManager::makeTimeStamp(GameLevelManager *a1, const char *a2)
{
size_t v3; // r8
struct cocos2d::CCString *v4; // rax
void *v5; // rcx
struct __timeb64 Time; // [rsp+20h] [rbp-48h] BYREF
void *Block[2]; // [rsp+30h] [rbp-38h] BYREF
__int128 v8; // [rsp+40h] [rbp-28h]
*(_OWORD *)Block = 0;
v8 = 0;
v3 = -1;
do
++v3;
while ( a2[v3] );
sub_14003A930(Block, a2, v3);
ftime64(&Time);
v4 = cocos2d::CCString::createWithFormat("%f", (double)(Time.millitm + 1000 * (Time.time & 0xFFFFF)) / 1000.0);
cocos2d::CCDictionary::setObject(a1->m_timerDict, v4, Block);
if ( *((_QWORD *)&v8 + 1) > 0xFu )
{
v5 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v8 + 1) + 1LL) >= 0x1000 )
{
v5 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v5);
}
}