//
// MusicDownloadManager::sharedState from 0x45aea8 to 0x45b002 (346 bytes)
//
// 168 xrefs:
// > sub_3053BE @ 0x3053d2
// > GJSongBrowser::customSetup @ 0x307edc
// > GJSongBrowser::FLAlert_Clicked @ 0x30801c
// > GJSongBrowser::FLAlert_Clicked @ 0x30803e
// > GJSongBrowser::FLAlert_Clicked @ 0x30804c
// > GJSongBrowser::loadPage @ 0x3082c8
// > FindBPMLayer::recordingDidStop @ 0x3086f0
// > FindBPMLayer::playMusic @ 0x308722
// > FindBPMLayer::onClose @ 0x30877e
// > FindBPMLayer::init @ 0x309af4
// > PlayLayer::setupHasCompleted @ 0x31bd90
// > GameManager::getMenuMusicFile @ 0x320b08
// > GameManager::getMenuMusicFile @ 0x320b20
// > GameManager::getPracticeMusicFile @ 0x320b98
// > GameManager::getPracticeMusicFile @ 0x320bb0
// > GameManager::playSFXTrigger @ 0x320cc2
// > GameManager::firstLoad @ 0x32434c
// > GameManager::dataLoaded @ 0x328986
// > GameManager::encodeDataTo @ 0x329d1a
// > CustomSongCell::onDelete @ 0x32f48a
// > CustomSongCell::onDelete @ 0x32f4bc
// > LevelCell::loadCustomLevelCell @ 0x3324f4
// > LevelEditorLayer::init @ 0x376462
// > EditorUI::~EditorUI @ 0x39d9f0
// > EditorUI::init @ 0x3a28da
// > LevelInfoLayer::onPlay @ 0x3b22de
// > LevelBrowserLayer::FLAlert_Clicked @ 0x3bdba6
// > GJGameLevel::getAudioFileName @ 0x3c56ba
// > GameLevelManager::onGetOnlineLevelsCompleted @ 0x3c662a
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x3c7420
// > CustomSongWidget::onMore @ 0x3dd2bc
// > CustomSongWidget::onMore @ 0x3dd41a
// > CustomSongWidget::onCancelDownload @ 0x3dd5e4
// > CustomSongWidget::onPlayback @ 0x3dd632
// > CustomSongWidget::onPlayback @ 0x3dd6b2
// > CustomSongWidget::onPlayback @ 0x3dd6ee
// > CustomSongWidget::onGetSongInfo @ 0x3ddcb0
// > CustomSongWidget::updatePlaybackBtn @ 0x3ddcfa
// > CustomSongWidget::startDownload @ 0x3dde4a
// > CustomSongWidget::updateSongInfo @ 0x3de4ea
// > CustomSongWidget::updateSongInfo @ 0x3de6ae
// > CustomSongWidget::init @ 0x3df732
// > CustomSongWidget::init @ 0x3df744
// > CustomSongWidget::onSelect @ 0x3df9da
// > CustomSongWidget::updateDownloadProgress @ 0x3df9ec
// > CustomSongWidget::deleteSong @ 0x3dfa80
// > CustomSongWidget::deleteSong @ 0x3dfab2
// > CustomSongWidget::processNextMultiAsset @ 0x3dffc4
// > CustomSongWidget::processNextMultiAsset @ 0x3dffd2
// > CustomSongWidget::processNextMultiAsset @ 0x3dffe2
// > CustomSongWidget::onDownload @ 0x3e01e0
// > CustomSongWidget::onDownload @ 0x3e0212
// > CustomSongWidget::onDownload @ 0x3e0274
// > CustomSongWidget::onDownload @ 0x3e0288
// > CustomSongWidget::onDownload @ 0x3e02ae
// > CustomSongWidget::~CustomSongWidget @ 0x3e0414
// > CustomSongWidget::loadSongInfoFinished @ 0x3e06e2
// > CustomSongWidget::updateWithMultiAssets @ 0x3e09ba
// > CustomSongWidget::updateWithMultiAssets @ 0x3e09fe
// > MusicDownloadManager::downloadSong @ 0x45b066
// > MusicDownloadManager::getSFXFolderObjectForID @ 0x45b190
// > MusicDownloadManager::getSFXFolderObjectForID @ 0x45b1a8
// > MusicSearchResult::createTagFilterObjects @ 0x45b264
// > MusicSearchResult::createArtistFilterObjects @ 0x45b292
// > MusicSearchResult::applyTagFilters @ 0x45b2fe
// > MusicSearchResult::applyArtistFilters @ 0x45b37a
// > MusicSearchResult::updateFutureCount @ 0x45b41c
// > MusicSearchResult::updateFutureCount @ 0x45b440
// > MusicSearchResult::updateObjects @ 0x45b470
// > SongInfoObject::getArtistNames @ 0x45b6ec
// > SongInfoObject::getTagsString @ 0x45ba26
// > SongInfoObject::init @ 0x45bcaa
// > SongInfoObject::create @ 0x45bfae
// > SFXSearchResult::updateObjects @ 0x45d814
// > SFXSearchResult::updateObjects @ 0x45d87a
// > SongSelectNode::getSongFileName @ 0x45e3de
// > SongSelectNode::init @ 0x460e1e
// > SongSelectNode::onOpenCustomSong @ 0x460ff6
// > GJAccountManager::backupAccount @ 0x46559c
// > GJBaseGameLayer::activateSongTrigger @ 0x48453a
// > GJBaseGameLayer::processSFXObjects @ 0x4889a8
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x48b2ea
// > RewardUnlockLayer::playRewardEffect @ 0x4e919a
// > SetupSongTriggerPopup::~SetupSongTriggerPopup @ 0x524ce4
// > SetupSongTriggerPopup::onPlayback @ 0x524e10
// > SetupSongTriggerPopup::onPlayback @ 0x524e78
// > SetupSongTriggerPopup::updateSongTimeSlider @ 0x525132
// > SetupSongTriggerPopup::init @ 0x525760
// > CustomSFXWidget::~CustomSFXWidget @ 0x56db40
// > CustomSFXWidget::onCancelDownload @ 0x56dc10
// > CustomSFXWidget::onPlayback @ 0x56dc6a
// > CustomSFXWidget::startDownload @ 0x56defa
// > CustomSFXWidget::onDownload @ 0x56df36
// > CustomSFXWidget::updateSFXInfo @ 0x56e0e0
// > CustomSFXWidget::updateSFXInfo @ 0x56e1d2
// > CustomSFXWidget::deleteSFX @ 0x56e3a8
// > CustomSFXWidget::deleteSFX @ 0x56e3c4
// > CustomSFXWidget::init @ 0x56eedc
// > CustomSFXWidget::init @ 0x56eeee
// > CustomSFXWidget::updateDownloadProgress @ 0x56f06c
// > SetupSFXPopup::onClose @ 0x574f82
// > SetupSFXPopup::onClose @ 0x574f8e
// > SetupSFXPopup::createSFXWidget @ 0x57610e
// > SetupSFXPopup::createSFXWidget @ 0x576196
// > MusicBrowser::~MusicBrowser @ 0x581044
// > MusicBrowser::onUpdateLibrary @ 0x581566
// > MusicBrowser::onUpdateLibrary @ 0x58157a
// > MusicBrowser::onUpdateLibrary @ 0x58158c
// > MusicBrowser::setupList @ 0x58189e
// > MusicBrowser::setupList @ 0x5818aa
// > MusicBrowser::setupList @ 0x581916
// > MusicBrowser::setupList @ 0x581938
// > MusicBrowser::setupList @ 0x581948
// > MusicBrowser::setupList @ 0x581952
// > MusicBrowser::setupMusicBrowser @ 0x581c24
// > MusicBrowser::setupMusicBrowser @ 0x581c32
// > MusicBrowser::setupMusicBrowser @ 0x581c5e
// > MusicBrowser::trySetupMusicBrowser @ 0x581c78
// > MusicBrowser::trySetupMusicBrowser @ 0x581c8c
// > MusicBrowser::trySetupMusicBrowser @ 0x581c9a
// > MusicBrowser::trySetupMusicBrowser @ 0x581ca6
// > sub_581CB4 @ 0x58250a
// > sub_581CB4 @ 0x582516
// > sub_581CB4 @ 0x582520
// > SFXBrowser::~SFXBrowser @ 0x582d34
// > SFXBrowser::onCredits @ 0x582eb4
// > SFXBrowser::onUpdateLibrary @ 0x582fec
// > SFXBrowser::onUpdateLibrary @ 0x583000
// > SFXBrowser::onUpdateLibrary @ 0x583012
// > SFXBrowser::setupList @ 0x58315a
// > SFXBrowser::setupList @ 0x583166
// > SFXBrowser::setupList @ 0x5831d4
// > SFXBrowser::setupList @ 0x5831e0
// > SFXBrowser::setupList @ 0x5831e8
// > SFXBrowser::setupList @ 0x583366
// > SFXBrowser::setupSFXBrowser @ 0x583600
// > SFXBrowser::setupSFXBrowser @ 0x58360e
// > SFXBrowser::setupSFXBrowser @ 0x583620
// > SFXBrowser::setupSFXBrowser @ 0x583630
// > SFXBrowser::setupSFXBrowser @ 0x583672
// > SFXBrowser::trySetupSFXBrowser @ 0x58368c
// > SFXBrowser::trySetupSFXBrowser @ 0x5836a0
// > SFXBrowser::trySetupSFXBrowser @ 0x5836ae
// > SFXBrowser::trySetupSFXBrowser @ 0x5836ba
// > sub_5836C8 @ 0x58415c
// > sub_5836C8 @ 0x584168
// > sub_5836C8 @ 0x584172
// > SFXBrowser::onExitFolder @ 0x58448e
// > AudioAssetsBrowser::onInfo @ 0x59b2c6
// > AudioAssetsBrowser::onInfo @ 0x59b34e
// > AudioAssetsBrowser::~AudioAssetsBrowser @ 0x59b5e0
// > AudioAssetsBrowser::setupList @ 0x59b6a2
// > AudioAssetsBrowser::trySetupAudioBrowser @ 0x59b7a4
// > AudioAssetsBrowser::trySetupAudioBrowser @ 0x59b7ae
// > AudioAssetsBrowser::trySetupAudioBrowser @ 0x59b7bc
// > AudioAssetsBrowser::trySetupAudioBrowser @ 0x59b7ce
// > AudioAssetsBrowser::trySetupAudioBrowser @ 0x59b7dc
// > AudioAssetsBrowser::trySetupAudioBrowser @ 0x59b7e8
// > AudioAssetsBrowser::init @ 0x59bb9e
// > SecretLayer5::playWinSFX @ 0x59be6c
// > SecretLayer5::animateHead @ 0x59bed2
// > SecretLayer5::showFailAnimation @ 0x59cb30
// > SecretLayer5::showFailAnimation @ 0x59cb5e
// > SecretLayer5::showSuccessAnimation @ 0x59d0a6
// > SecretLayer5::showSuccessAnimation @ 0x59d0e0
// > SecretLayer5::showSuccessAnimation @ 0x59d18c
// > SecretLayer5::showSuccessAnimation @ 0x59d1d2
// > SecretLayer5::onSubmit @ 0x59eb52
//
// 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
//
MusicDownloadManager *MusicDownloadManager::sharedState()
{
int v0; // r4
unsigned int v1; // r0
void *v2; // r0
unsigned int v3; // r0
void *v4; // r0
if ( !dword_AC670C )
{
v0 = operator new(0x1A0u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v0);
*(_DWORD *)(v0 + 268) = 0;
*(_DWORD *)(v0 + 264) = &off_A66020;
*(_DWORD *)v0 = &off_A65E60;
*(_DWORD *)(v0 + 272) = 0;
*(_DWORD *)(v0 + 276) = 0;
*(_DWORD *)(v0 + 288) = &unk_ACDDA8;
*(_DWORD *)(v0 + 280) = 0;
*(_DWORD *)(v0 + 284) = 0;
*(_DWORD *)(v0 + 292) = 0;
*(_DWORD *)(v0 + 296) = 0;
*(_DWORD *)(v0 + 300) = 0;
*(_DWORD *)(v0 + 304) = 0;
*(_BYTE *)(v0 + 308) = 0;
*(_DWORD *)(v0 + 312) = 0;
*(_DWORD *)(v0 + 316) = 0;
memset((void *)(v0 + 324), 0, 0x10u);
*(_DWORD *)(v0 + 332) = v0 + 324;
*(_DWORD *)(v0 + 336) = v0 + 324;
*(_DWORD *)(v0 + 340) = 0;
*(_DWORD *)(v0 + 344) = 0;
*(_DWORD *)(v0 + 348) = 0;
*(_DWORD *)(v0 + 352) = 0;
*(_BYTE *)(v0 + 356) = 0;
*(_BYTE *)(v0 + 357) = 0;
*(_BYTE *)(v0 + 358) = 0;
*(_DWORD *)(v0 + 368) = 0;
*(_DWORD *)(v0 + 372) = 0;
*(_DWORD *)(v0 + 376) = 1065353216;
*(_DWORD *)(v0 + 380) = 0;
v1 = sub_773A14(v0 + 376, 10);
*(_DWORD *)(v0 + 364) = v1;
if ( v1 == 1 )
{
*(_DWORD *)(v0 + 384) = 0;
v2 = (void *)(v0 + 384);
}
else
{
v2 = sub_4573DE(v1);
}
*(_DWORD *)(v0 + 360) = v2;
*(_DWORD *)(v0 + 396) = 0;
*(_DWORD *)(v0 + 400) = 0;
*(_DWORD *)(v0 + 404) = 1065353216;
*(_DWORD *)(v0 + 408) = 0;
v3 = sub_773A14(v0 + 404, 10);
*(_DWORD *)(v0 + 392) = v3;
if ( v3 == 1 )
{
v4 = (void *)(v0 + 412);
*(_DWORD *)(v0 + 412) = 0;
}
else
{
v4 = sub_4573DE(v3);
}
*(_DWORD *)(v0 + 388) = v4;
dword_AC670C = v0;
(*(void (__fastcall **)(int))(*(_DWORD *)v0 + 40))(v0);
}
return (MusicDownloadManager *)dword_AC670C;
}