//
// GameLevelManager::makeTimeStamp from 0x6f27e8 to 0x6f2924 (316 bytes)
//
// 19 xrefs:
// > GameLevelManager::storeSearchResult @ 0x6f2978
// > GameLevelManager::storeCommentsResult @ 0x6f8bd8
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x707d14
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x707f70
// > GameLevelManager::uploadUserMessage @ 0x722c8c
// > GameLevelManager::uploadComment @ 0x7242d8
// > GameLevelManager::uploadFriendRequest @ 0x7260dc
// > InfoLayer::onRefreshComments @ 0x7e36b4
// > GJAccountManager::onBackupAccountCompleted @ 0x8472ec
// > GJAccountManager::onSyncAccountCompleted @ 0x848870
// > MessagesProfilePage::onUpdate @ 0x8f1f9c
// > FRequestProfilePage::onUpdate @ 0x8f44b4
// > FriendsProfilePage::onUpdate @ 0x8f6a34
// > ProfilePage::onUpdate @ 0x8fdc3c
// > LevelLeaderboard::onUpdate @ 0x93224c
// > LevelLeaderboard::loadScores @ 0x9324b8
// > TopArtistsLayer::init @ 0x966344
// > TopArtistsLayer::loadPage @ 0x966bec
// > ??> @ 0x88638
//
// 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 GameLevelManager::makeTimeStamp(GameLevelManager *a1, const char *a2)
{
cocos2d::CCDictionary *m_timerDict; // x22
cocos2d::CCObject *v4; // x21
char *v5; // x0
unsigned int *v6; // x2
int v7; // w1
char *v8[2]; // [xsp+58h] [xbp+58h] BYREF
m_timerDict = a1->m_timerDict;
clock_gettime(0, (struct timespec *)v8);
v4 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%f",
v8[0],
(double)(__int64)v8[0] + (double)(__int64)v8[1] / 1000000000.0);
sub_D153B8((int)v8, (char *)a2);
cocos2d::CCDictionary::setObject((int)m_timerDict, v4);
v5 = v8[0] - 24;
if ( (__int64 *)v8[0] - 3 != &qword_124B6B0 )
{
if ( &pthread_create )
{
v6 = (unsigned int *)(v8[0] - 8);
do
v7 = __ldaxr(v6);
while ( __stlxr(v7 - 1, v6) );
}
else
{
v7 = *((_DWORD *)v8[0] - 2);
*((_DWORD *)v8[0] - 2) = v7 - 1;
}
if ( v7 <= 0 )
operator delete(v5);
}
}