//
// GameLevelManager::makeTimeStamp from 0x140221c30 to 0x140221d34 (260 bytes)
//
// 23 xrefs:
// > MessageThreadsPage::onRefresh @ 0x1400d82f2
// > ThreadViewPopup::onRefresh @ 0x1400db721
// > ThreadViewPopup::onLoadEarlier @ 0x1400db899
// > ThreadSearchPopup::onSearch @ 0x1400fc4a9
// > FRequestProfilePage::onUpdate @ 0x140210f78
// > FriendsProfilePage::onUpdate @ 0x140216f2d
// > GameLevelManager::storeSearchResult @ 0x1402215ba
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x1402333d1
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x14023362a
// > GameLevelManager::storeCommentsResult @ 0x14023e041
// > GameLevelManager::uploadComment @ 0x14023e57e
// > GameLevelManager::uploadFriendRequest @ 0x140254d29
// > GJAccountManager::onBackupAccountCompleted @ 0x140307e4a
// > GJAccountManager::onSyncAccountCompleted @ 0x140308a96
// > InfoLayer::onRefreshComments @ 0x1403d03e5
// > LevelLeaderboard::loadScores @ 0x140429ed8
// > LevelLeaderboard::onUpdate @ 0x14042a4c9
// > MessagesProfilePage::onUpdate @ 0x140476619
// > NotificationsPage::onUpdate @ 0x1404786c8
// > ProfilePage::onUpdate @ 0x140551d37
// > TopArtistsLayer::init @ 0x14066e6cf
// > TopArtistsLayer::loadPage @ 0x14066eea0
// > ??> @ 0x14091bbfc
//
// 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:28:25 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall GameLevelManager::makeTimeStamp(__int64 a1, _BYTE *a2)
{
size_t v3; // r8
__int64 v4; // rbx
struct cocos2d::CCString *v5; // rax
void *v6; // rcx
struct __timeb64 Time; // [rsp+30h] [rbp-48h] BYREF
void *Block[2]; // [rsp+40h] [rbp-38h] BYREF
__int128 v9; // [rsp+50h] [rbp-28h]
*(_OWORD *)Block = 0;
v9 = 0;
v3 = -1;
do
++v3;
while ( a2[v3] );
sub_14003D230(Block, a2, v3);
ftime64(&Time);
v4 = *(_QWORD *)(a1 + 1056);
v5 = cocos2d::CCString::createWithFormat("%f", (double)Time.millitm / 1000.0 + (double)SLODWORD(Time.time));
cocos2d::CCDictionary::setObject(v4, v5, Block);
if ( *((_QWORD *)&v9 + 1) > 0xFu )
{
v6 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v9 + 1) + 1LL) >= 0x1000 )
{
v6 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v6);
}
}