//
// GameLevelManager::makeTimeStamp from 0x800460 to 0x8005b4 (340 bytes)
//
// 24 xrefs:
// > GameLevelManager::storeSearchResult @ 0x809a98
// > GameLevelManager::storeCommentsResult @ 0x809c50
// > GameLevelManager::uploadUserMessage @ 0x83f6b4
// > GameLevelManager::uploadComment @ 0x83fc14
// > GameLevelManager::uploadFriendRequest @ 0x840a84
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x859874
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x859ac8
// > InfoLayer::onRefreshComments @ 0x90ad1c
// > GJAccountManager::onBackupAccountCompleted @ 0x98896c
// > GJAccountManager::onSyncAccountCompleted @ 0x989d6c
// > MessagesProfilePage::onUpdate @ 0xa49bac
// > FRequestProfilePage::onUpdate @ 0xa4c514
// > FriendsProfilePage::onUpdate @ 0xa4fa70
// > ProfilePage::onUpdate @ 0xa54990
// > LevelLeaderboard::onUpdate @ 0xa82000
// > LevelLeaderboard::loadScores @ 0xa82210
// > TopArtistsLayer::init @ 0xaad0bc
// > TopArtistsLayer::loadPage @ 0xaad564
// > NotificationsPage::onUpdate @ 0xc5f8f0
// > ThreadViewPopup::onLoadEarlier @ 0xc659e0
// > ThreadViewPopup::onRefresh @ 0xc68ba0
// > MessageThreadsPage::onRefresh @ 0xc78a44
// > ThreadViewPopup::startSearch @ 0xc78b58
// > ??> @ 0xb4dd8
//
// 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 12:54:43 +0000
//
__int64 __fastcall GameLevelManager::makeTimeStamp(GameLevelManager *this, const char *a2)
{
__int64 v3; // x23
cocos2d::CCObject *v4; // x25
size_t v5; // x0
size_t v6; // x19
unsigned __int64 v7; // x0
__int64 v8; // x24
char *v9; // x0
char *v10; // x3
char *v12; // [xsp+50h] [xbp+50h] BYREF
__int64 v13; // [xsp+58h] [xbp+58h]
__int64 v14; // [xsp+60h] [xbp+60h] BYREF
size_t v15; // [xsp+68h] [xbp+68h]
void *v16; // [xsp+70h] [xbp+70h]
v3 = *((_QWORD *)this + 121);
clock_gettime(0, (struct timespec *)&v12);
v4 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%f",
v12,
(double)(__int64)v12 + (double)v13 / 1000000000.0);
v14 = 0;
v15 = 0;
v16 = nullptr;
v5 = strlen(a2);
v6 = v5;
if ( v5 > 0xFFFFFFFFFFFFFFEFLL )
sub_62C79C();
if ( v5 > 0x16 )
{
v7 = (v5 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v8 = v7 | 1;
v9 = (char *)operator new(v7);
v14 = v8;
v10 = v9;
v16 = v9;
v15 = v6;
LABEL_4:
v10 = (char *)memcpy(v10, a2, v6);
goto LABEL_5;
}
LOBYTE(v14) = 2 * v5;
v10 = (char *)&v14 + 1;
if ( v5 )
goto LABEL_4;
LABEL_5:
v10[v6] = 0;
cocos2d::CCDictionary::setObject(v3, v4);
if ( (v14 & 1) != 0 )
operator delete(v16);
return _stack_chk_guard;
}