//
// GameToolbox::intToString from 0x6a78a0 to 0x6a7a18 (376 bytes)
//
// 110 xrefs:
// > CCCounterLabel::updateString @ 0x68fe68
// > GameToolbox::timestampToHumanReadable @ 0x6a7aa0
// > GameToolbox::timestampToHumanReadable @ 0x6a7ad4
// > GameToolbox::timestampToHumanReadable @ 0x6a7b7c
// > GameToolbox::timestampToHumanReadable @ 0x6a7bb0
// > GameToolbox::timestampToHumanReadable @ 0x6a7bf0
// > GameToolbox::gameVersionToString @ 0x6a7d08
// > GameToolbox::gameVersionToString @ 0x6a7d6c
// > GameToolbox::gameVersionToString @ 0x6a7dc8
// > GameToolbox::pointsToString @ 0x6a7f10
// > GameToolbox::pointsToString @ 0x6a8170
// > FindBPMLayer::registerTouch @ 0x6e81f0
// > PlayLayer::updateTimeLabel @ 0x6ffd24
// > PlayLayer::updateProgressbar @ 0x7002b8
// > CommentCell::onGoToLevel @ 0x735d54
// > CommentCell::onGoToLevel @ 0x735dd4
// > LevelListCell::loadFromList @ 0x740ff4
// > LevelCell::loadCustomLevelCell @ 0x745ab4
// > OptionsCell::loadFromObject @ 0x748948
// > CommentCell::loadFromComment @ 0x74c570
// > LevelEditorLayer::updateObjectLabel @ 0x7991ec
// > EditorUI::setIDPopupClosed @ 0x7cbc18
// > EditorUI::updateObjectInfoLabel @ 0x7cdd78
// > LevelBrowserLayer::onMyOnlineLevels @ 0x7fb3e8
// > LevelBrowserLayer::onMyOnlineLevels @ 0x7fb4a4
// > GJLevelList::showListInfo @ 0x81db4c
// > GameLevelManager::uploadDeathData @ 0x81e798
// > GameLevelManager::uploadDeathData @ 0x81e850
// > GameLevelManager::uploadDeathData @ 0x81e890
// > GameLevelManager::uploadDeathData @ 0x81e9c0
// > GameLevelManager::uploadDeathData @ 0x81ea04
// > GameLevelManager::writeSpecialFilters @ 0x82c870
// > GameLevelManager::writeSpecialFilters @ 0x82c9d4
// > GameLevelManager::getDeathData @ 0x8361a0
// > GameLevelManager::getDeathData @ 0x836238
// > GameLevelManager::getDeathData @ 0x8362b8
// > GameLevelManager::createNewLevelList @ 0x846168
// > GameLevelManager::uploadLevelList @ 0x846408
// > GameLevelManager::uploadLevelList @ 0x846710
// > GameLevelManager::deleteServerLevelList @ 0x846d58
// > GJLevelList::getListLevelsArray @ 0x850b5c
// > GJLevelList::getListLevelsArray @ 0x850c48
// > GJLevelList::getListLevelsArray @ 0x850cbc
// > GameLevelManager::updateUserScore @ 0x852990
// > GameLevelManager::updateUserScore @ 0x8529d4
// > GameLevelManager::updateUserScore @ 0x852a18
// > GameLevelManager::updateUserScore @ 0x852af0
// > GameLevelManager::updateUserScore @ 0x852b34
// > GameLevelManager::updateUserScore @ 0x852b78
// > GJGameLevel::encodeWithCoder @ 0x856d80
// > GJGameLevel::encodeWithCoder @ 0x856dbc
// > GJLevelList::addLevelToList @ 0x8577b0
// > GJLevelList::removeLevelFromList @ 0x857924
// > CustomSongWidget::updateMultiAssetInfo @ 0x86c6d4
// > CustomSongWidget::updateMultiAssetInfo @ 0x86c768
// > CustomSongWidget::updateMultiAssetInfo @ 0x86ca5c
// > CustomSongWidget::updateMultiAssetInfo @ 0x86cab8
// > LabelGameObject::updateLabel @ 0x87a9ec
// > GameStatsManager::getStatFromKey @ 0x8d92fc
// > GameStatsManager::tryFixPathBug @ 0x8dfe14
// > GameStatsManager::tryFixPathBug @ 0x8dffe0
// > GameStatsManager::trySelectActivePath @ 0x8e8240
// > GameStatsManager::trySelectActivePath @ 0x8e82cc
// > GameStatsManager::incrementActivePath @ 0x8e83a4
// > SongInfoLayer::onCopySongID @ 0x90329c
// > InfoLayer::onCopyLevelID @ 0x9073c4
// > GJRateLevelLayer::setupRateInfo @ 0x95493c
// > GJRateLevelListLayer::init @ 0x955b60
// > MusicSearchResult::getFilesMatchingSearch @ 0x967744
// > MusicDownloadManager::generateCustomContentURL @ 0x9679e8
// > MusicDownloadManager::generateCustomContentURL @ 0x967a50
// > MusicDownloadManager::downloadCustomSong @ 0x968304
// > MusicDownloadManager::downloadSFX @ 0x968f60
// > MusicDownloadManager::pathForSFX @ 0x96b5c4
// > MusicDownloadManager::pathForSong @ 0x96ce0c
// > CustomizeObjectLayer::updateKerningLabel @ 0x984d38
// > GJBaseGameLayer::updatePlatformerTime @ 0x9dcf74
// > GJBaseGameLayer::updateSpecialLabels @ 0x9dd298
// > GJBaseGameLayer::updateTimerLabels @ 0x9ed1e8
// > SetupCollisionTriggerPopup::updateSpecialNodes @ 0xa9bd28
// > SetupCollisionTriggerPopup::updateSpecialNodes @ 0xa9bda4
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0xa9c81c
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0xa9c92c
// > SetupAreaMoveTriggerPopup::updateEnterTargetIDState @ 0xb430f4
// > SetupAdvFollowPopup::init @ 0xb495e8
// > LevelSettingsLayer::init @ 0xb66390
// > LevelSettingsLayer::init @ 0xb66614
// > getItemVarName @ 0xb7b0a4
// > SelectEventLayer::addToggle @ 0xb7f630
// > GJPathSprite::addRankLabel @ 0xba4534
// > LevelListLayer::updateStatsArt @ 0xbabd00
// > LevelListLayer::init @ 0xbafa64
// > LevelListLayer::onRefreshLevelList @ 0xbb0914
// > UploadListPopup::listUploadFailed @ 0xbb0c38
// > AudioAssetsBrowser::onInfo @ 0xbc2058
// > AudioAssetsBrowser::onInfo @ 0xbc20f0
// > AudioAssetsBrowser::onInfo @ 0xbc2298
// > AudioAssetsBrowser::onInfo @ 0xbc22f4
// > AccountReviewPopup::jumpTo @ 0xc406e4
// > AccountReviewPopup::jumpTo @ 0xc40788
// > AccountReviewPopup::onJumpRow @ 0xc4ebb0
// > DeathStatsPopup::init @ 0xca7bdc
// > DeathTrackerPopup::dtScrollKey @ 0xcaecf8
// > sub_CAEFF4 @ 0xcaf078
// > sub_CAEFF4 @ 0xcaf0b8
// > sub_CAEFF4 @ 0xcaf1ac
// > sub_CAEFF4 @ 0xcaf1ec
// > sub_CAEFF4 @ 0xcaf28c
// > GJEditorSoundConfig::showSoundInfo @ 0xcdb490
// > ??> @ 0xa5700
//
// 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:50:46 +0000
//
unsigned __int64 *__usercall GameToolbox::intToString@(
unsigned __int64 *__return_ptr a1@,
GameToolbox *this@)
{
size_t v3; // x21
const char *v4; // x24
size_t v5; // x0
size_t v6; // x21
unsigned __int64 v7; // x23
char *v8; // x3
size_t v10; // [xsp+48h] [xbp+48h] BYREF
unsigned __int64 v11; // [xsp+50h] [xbp+50h]
char *v12; // [xsp+58h] [xbp+58h]
_BYTE v13[504]; // [xsp+60h] [xbp+60h] BYREF
v10 = 0;
v12 = v13;
v11 = 500;
fmt::BasicWriter::FormatInt,char>>(&v10, (unsigned int)this);
v3 = v10;
if ( v10 + 1 > v11 )
fmt::internal::Array::grow(&v10, v10 + 1);
v12[v3] = 0;
*a1 = 0;
v4 = v12;
a1[1] = 0;
a1[2] = 0;
v5 = strlen(v4);
v6 = v5;
if ( v5 > 0xFFFFFFFFFFFFFFEFLL )
sub_62B4D4();
if ( v5 <= 0x16 )
{
*(_BYTE *)a1 = 2 * v5;
v8 = (char *)a1 + 1;
if ( !v5 )
goto LABEL_7;
}
else
{
v7 = (v5 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v8 = (char *)operator new(v7);
a1[2] = (unsigned __int64)v8;
a1[1] = v6;
*a1 = v7 | 1;
}
v8 = (char *)memcpy(v8, v4, v6);
LABEL_7:
v8[v6] = 0;
if ( v12 != v13 && v12 )
operator delete[](v12);
return a1;
}