//
// GameLevelManager::makeTimeStamp from 0x1005383d0 to 0x1005384dd (269 bytes)
//
// 18 xrefs:
// > GJAccountManager::onBackupAccountCompleted @ 0x1000d0689
// > GJAccountManager::onSyncAccountCompleted @ 0x1000d09a4
// > MessagesProfilePage::onUpdate @ 0x10022e8c2
// > TopArtistsLayer::init @ 0x100310e12
// > TopArtistsLayer::loadPage @ 0x100311b1c
// > LevelLeaderboard::onUpdate @ 0x1003db485
// > LevelLeaderboard::loadScores @ 0x1003db6be
// > GameLevelManager::storeSearchResult @ 0x100538159
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x100545598
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x100545637
// > GameLevelManager::storeCommentsResult @ 0x10054e2b0
// > GameLevelManager::uploadUserMessage @ 0x10054ea6f
// > GameLevelManager::uploadComment @ 0x100551adf
// > GameLevelManager::uploadFriendRequest @ 0x100554199
// > FriendsProfilePage::onUpdate @ 0x100658462
// > FRequestProfilePage::onUpdate @ 0x100790d72
// > InfoLayer::onRefreshComments @ 0x1007b1e12
// > ProfilePage::onUpdate @ 0x1007b9798
//
// 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
//
void __fastcall GameLevelManager::makeTimeStamp(GameLevelManager *a1, const char *a2)
{
cocos2d::CCDictionary *m_timerDict; // rbx
double v3; // xmm0_8
cocos2d::CCObject *v4; // r15
size_t v5; // rax
size_t v6; // r12
char *v7; // r13
cocos2d::CCDictionary *v8; // r15
size_t v9; // rbx
char v10; // [rsp+0h] [rbp-50h]
cocos2d::CCObject *v11; // [rsp+8h] [rbp-48h]
timeb __dst; // [rsp+10h] [rbp-40h] BYREF
void *__p; // [rsp+20h] [rbp-30h]
m_timerDict = a1->m_timerDict;
ftime(&__dst);
v3 = (double)(__dst.millitm + 1000 * (__dst.time & 0xFFFFF)) / 1000.0;
v4 = (cocos2d::CCObject *)sub_1007AB580("%f", v10);
v5 = strlen(a2);
if ( v5 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(v3);
v6 = v5;
if ( v5 >= 0x17 )
{
v11 = v4;
v8 = m_timerDict;
v9 = 26;
if ( (v5 | 7) != 0x17 )
v9 = (v5 | 7) + 1;
v7 = (char *)operator new(v9);
__p = v7;
__dst.time = v9 + 1;
m_timerDict = v8;
v4 = v11;
*(_QWORD *)&__dst.millitm = v6;
goto LABEL_8;
}
LOBYTE(__dst.time) = 2 * v5;
v7 = (char *)&__dst.time + 1;
if ( v5 )
LABEL_8:
memcpy(v7, a2, v6);
v7[v6] = 0;
cocos2d::CCDictionary::setObject_1((__int64)m_timerDict, v4, (char *)&__dst);
if ( (__dst.time & 1) != 0 )
operator delete(__p);
}