//
// GameLevelManager::makeTimeStamp from 0x10054a1a0 to 0x10054a2a2 (258 bytes)
//
// 23 xrefs:
// > GJAccountManager::onBackupAccountCompleted @ 0x10009ec59
// > GJAccountManager::onSyncAccountCompleted @ 0x10009ef74
// > sub_100212D50 @ 0x100212d92
// > TopArtistsLayer::init @ 0x1002fb932
// > TopArtistsLayer::loadPage @ 0x1002fc63c
// > LevelLeaderboard::onUpdate @ 0x1003c8465
// > LevelLeaderboard::loadScores @ 0x1003c869e
// > GameLevelManager::storeSearchResult @ 0x100549f29
// > sub_10055F180 @ 0x10056028a
// > sub_10055F180 @ 0x100560438
// > GameLevelManager::storeCommentsResult @ 0x100568ac0
// > GameLevelManager::uploadUserMessage @ 0x10056927f
// > GameLevelManager::uploadComment @ 0x10056c534
// > GameLevelManager::uploadFriendRequest @ 0x10057a299
// > FriendsProfilePage::onUpdate @ 0x100735ff2
// > sub_100870B70 @ 0x100870bf0
// > InfoLayer::onRefreshComments @ 0x1008954c2
// > ProfilePage::onUpdate @ 0x10089ee18
// > MessageThreadsPage::onRefresh @ 0x100929cd2
// > sub_10092F070 @ 0x10092f14c
// > sub_100930DF0 @ 0x100930e99
// > sub_1009314B0 @ 0x10093153e
// > NotificationsPage::onUpdate @ 0x10098bcca
//
// 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 12:32:00 +0000
//
void __fastcall GameLevelManager::makeTimeStamp(__int64 a1, const char *a2)
{
__int64 v2; // rbx
__int64 v3; // r15
size_t v4; // rax
size_t v5; // r12
char *v6; // r13
__int64 v7; // r15
size_t v8; // rbx
char v9; // [rsp+0h] [rbp-50h]
__int64 v10; // [rsp+8h] [rbp-48h]
timeb __dst; // [rsp+10h] [rbp-40h] BYREF
void *__p; // [rsp+20h] [rbp-30h]
v2 = *(_QWORD *)(a1 + 968);
ftime(&__dst);
v3 = sub_10088E820("%f", v9);
v4 = strlen(a2);
if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v5 = v4;
if ( v4 >= 0x17 )
{
v10 = v3;
v7 = v2;
v8 = 26;
if ( (v4 | 7) != 0x17 )
v8 = (v4 | 7) + 1;
v6 = (char *)operator new(v8);
__p = v6;
__dst.time = v8 + 1;
v2 = v7;
v3 = v10;
*(_QWORD *)&__dst.millitm = v5;
goto LABEL_8;
}
LOBYTE(__dst.time) = 2 * v4;
v6 = (char *)&__dst.time + 1;
if ( v4 )
LABEL_8:
memcpy(v6, a2, v5);
v6[v5] = 0;
cocos2d::CCDictionary::setObject(v2, v3, (char *)&__dst);
if ( (__dst.time & 1) != 0 )
operator delete(__p);
}