//
// GameToolbox::intToString from 0x10004838c to 0x100048450 (196 bytes)
//
// 78 xrefs:
// > SetupAreaMoveTriggerPopup::updateEnterTargetIDState @ 0x100036138
// > CCCounterLabel::updateString @ 0x10003accc
// > GameToolbox::timestampToHumanReadable @ 0x100048728
// > GameToolbox::timestampToHumanReadable @ 0x100048770
// > GameToolbox::timestampToHumanReadable @ 0x1000487b8
// > GameToolbox::timestampToHumanReadable @ 0x100048800
// > GameToolbox::timestampToHumanReadable @ 0x100048838
// > GameToolbox::pointsToString @ 0x100048a6c
// > GameToolbox::pointsToString @ 0x100048a80
// > CustomizeObjectLayer::updateKerningLabel @ 0x10004fd1c
// > SetupAdvFollowPopup::init @ 0x100060764
// > FindBPMLayer::registerTouch @ 0x10007e39c
// > GameLevelManager::createNewLevelList @ 0x100092e7c
// > GameLevelManager::writeSpecialFilters @ 0x10009d394
// > GameLevelManager::writeSpecialFilters @ 0x10009d440
// > GameLevelManager::uploadLevelList @ 0x10009e260
// > GameLevelManager::uploadLevelList @ 0x10009e524
// > GameLevelManager::deleteServerLevelList @ 0x10009e9a4
// > GameLevelManager::updateUserScore @ 0x1000a2068
// > GameLevelManager::updateUserScore @ 0x1000a20b4
// > GameLevelManager::updateUserScore @ 0x1000a2100
// > GameLevelManager::updateUserScore @ 0x1000a2210
// > GameLevelManager::updateUserScore @ 0x1000a225c
// > GameLevelManager::updateUserScore @ 0x1000a22a8
// > GJLevelList::getListLevelsArray @ 0x1000b12e0
// > GJLevelList::getListLevelsArray @ 0x1000b1320
// > GJLevelList::getListLevelsArray @ 0x1000b139c
// > GJLevelList::addLevelToList @ 0x1000b14e8
// > GJLevelList::removeLevelFromList @ 0x1000b1708
// > GJLevelList::showListInfo @ 0x1000b1bc0
// > CustomSongWidget::updateMultiAssetInfo @ 0x1000fda48
// > CustomSongWidget::updateMultiAssetInfo @ 0x1000fda9c
// > CustomSongWidget::updateMultiAssetInfo @ 0x1000fdb68
// > CustomSongWidget::updateMultiAssetInfo @ 0x1000fdbbc
// > OptionsCell::loadFromObject @ 0x1001026ec
// > LevelListCell::loadFromList @ 0x100103b54
// > CommentCell::loadFromComment @ 0x100106c2c
// > LevelCell::loadCustomLevelCell @ 0x10010cac0
// > CommentCell::onGoToLevel @ 0x100110b30
// > PlayLayer::updateProgressbar @ 0x1001185e8
// > PlayLayer::updateTimeLabel @ 0x10011e434
// > MusicDownloadManager::pathForSong @ 0x100156164
// > MusicDownloadManager::downloadCustomSong @ 0x100156654
// > MusicDownloadManager::pathForSFX @ 0x100156e20
// > MusicDownloadManager::generateCustomContentURL @ 0x10015763c
// > MusicDownloadManager::generateCustomContentURL @ 0x100157670
// > MusicDownloadManager::downloadSFX @ 0x100159954
// > LevelSettingsLayer::init @ 0x10017aba8
// > LevelSettingsLayer::init @ 0x10017adf4
// > GJRateLevelLayer::setupRateInfo @ 0x1001b1cb8
// > AudioAssetsBrowser::onInfo @ 0x1001d1bb0
// > AudioAssetsBrowser::onInfo @ 0x1001d1c04
// > AudioAssetsBrowser::onInfo @ 0x1001d1ca0
// > AudioAssetsBrowser::onInfo @ 0x1001d1cf4
// > GJBaseGameLayer::updateTimerLabels @ 0x1001fc510
// > GJBaseGameLayer::updateSpecialLabels @ 0x100200f68
// > GJBaseGameLayer::updatePlatformerTime @ 0x10020126c
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x1002312b0
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x100231390
// > LevelListLayer::init @ 0x1002432bc
// > LevelListLayer::onRefreshLevelList @ 0x100244b7c
// > LevelListLayer::updateStatsArt @ 0x100245f10
// > UploadListPopup::listUploadFailed @ 0x100249b18
// > GameStatsManager::incrementActivePath @ 0x10032fbd8
// > GameStatsManager::trySelectActivePath @ 0x10032fda8
// > GameStatsManager::trySelectActivePath @ 0x10032fe0c
// > GameStatsManager::tryFixPathBug @ 0x10032ffe4
// > GameStatsManager::tryFixPathBug @ 0x1003300e8
// > GameStatsManager::getStatFromKey @ 0x1003302b0
// > InfoLayer::onCopyLevelID @ 0x100352944
// > LevelEditorLayer::updateObjectLabel @ 0x10035df98
// > GJPathSprite::addRankLabel @ 0x1003bb718
// > EditorUI::updateObjectInfoLabel @ 0x1003e815c
// > EditorUI::setIDPopupClosed @ 0x1003e9fa0
// > SelectEventLayer::addToggle @ 0x100408dd8
// > sub_10040D2E8 @ 0x10040d358
// > LevelBrowserLayer::onMyOnlineLevels @ 0x100416248
// > LevelBrowserLayer::onMyOnlineLevels @ 0x1004162b8
//
// 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 __usercall GameToolbox::intToString(__int64 a1@, _QWORD *a2@)
{
__int64 v3; // x21
int v4; // [xsp+Ch] [xbp-244h] BYREF
__int128 v5; // [xsp+10h] [xbp-240h] BYREF
void *__p; // [xsp+20h] [xbp-230h]
_BYTE v7[512]; // [xsp+28h] [xbp-228h] BYREF
v5 = xmmword_1006350E0;
__p = v7;
v4 = a1;
sub_100009A40((int)&v5, a1, (int)&v4);
v3 = v5;
if ( *((_QWORD *)&v5 + 1) < (unsigned __int64)(v5 + 1) )
sub_100009ED4((__int64)&v5, v5 + 1);
*((_BYTE *)__p + v3) = 0;
sub_100009900(a2, (char *)__p);
if ( __p != v7 )
{
if ( __p )
operator delete[](__p);
}
}