//
// sub_4DC0D8 from 0x4dc0d8 to 0x4dc118 (64 bytes)
//
// 241 xrefs:
// > sub_4E3160 @ 0x4e32c8
// > sub_8267DC @ 0x8268e0
// > optionsStrCompare @ 0x827154
// > songNameCompare @ 0x82731c
// > sub_827328 @ 0x8275ac
// > sub_827328 @ 0x8275c8
// > sfxNameCompareDesc @ 0x827794
// > sfxNameCompare @ 0x827958
// > MusicDownloadManager::ProcessHttpRequest @ 0x828d68
// > MusicDownloadManager::ProcessHttpRequest @ 0x828d90
// > MusicDownloadManager::ProcessHttpGetRequest @ 0x828f9c
// > MusicDownloadManager::ProcessHttpGetRequest @ 0x828fc4
// > MusicDownloadManager::handleItDelayed @ 0x8291b8
// > MusicDownloadManager::handleItDelayed @ 0x8291d4
// > MusicDownloadManager::responseToDict @ 0x829594
// > MusicDownloadManager::responseToDict @ 0x8295b0
// > MusicDownloadManager::responseToDict @ 0x8295e4
// > MusicDownloadManager::clearSong @ 0x829740
// > MusicDownloadManager::addDLToActive @ 0x8298b8
// > MusicDownloadManager::getDLObject @ 0x8299e0
// > MusicDownloadManager::removeDLFromActive @ 0x829aec
// > MusicDownloadManager::showTOS @ 0x829d9c
// > MusicDownloadManager::dataLoaded @ 0x82a3cc
// > MusicDownloadManager::dataLoaded @ 0x82a3f4
// > MusicDownloadManager::dataLoaded @ 0x82a410
// > MusicDownloadManager::getCustomContentURL @ 0x82a628
// > MusicDownloadManager::getCustomContentURL @ 0x82a654
// > MusicDownloadManager::getCustomContentURL @ 0x82a67c
// > MusicDownloadManager::getSongInfoObject @ 0x82a824
// > MusicDownloadManager::getAllMusicTags @ 0x82aa8c
// > MusicDownloadManager::getAllMusicArtists @ 0x82ac20
// > MusicDownloadManager::generateCustomContentURL @ 0x82b8c8
// > MusicDownloadManager::generateCustomContentURL @ 0x82b8f8
// > MusicDownloadManager::generateCustomContentURL @ 0x82b914
// > MusicDownloadManager::generateCustomContentURL @ 0x82b934
// > MusicDownloadManager::generateCustomContentURL @ 0x82b95c
// > MusicDownloadManager::generateCustomContentURL @ 0x82b978
// > MusicDownloadManager::generateCustomContentURL @ 0x82b9a8
// > MusicDownloadManager::generateCustomContentURL @ 0x82b9c4
// > MusicDownloadManager::generateCustomContentURL @ 0x82b9e0
// > MusicDownloadManager::generateCustomContentURL @ 0x82ba24
// > MusicDownloadManager::generateCustomContentURL @ 0x82ba74
// > MusicDownloadManager::generateCustomContentURL @ 0x82ba90
// > MusicDownloadManager::downloadCustomSong @ 0x82be44
// > MusicDownloadManager::downloadCustomSong @ 0x82be60
// > MusicDownloadManager::downloadCustomSong @ 0x82be7c
// > MusicDownloadManager::downloadCustomSong @ 0x82be98
// > MusicDownloadManager::downloadCustomSong @ 0x82beb4
// > MusicDownloadManager::downloadCustomSong @ 0x82befc
// > MusicDownloadManager::tryUpdateMusicLibrary @ 0x82c218
// > MusicDownloadManager::tryUpdateMusicLibrary @ 0x82c240
// > MusicDownloadManager::tryUpdateMusicLibrary @ 0x82c25c
// > MusicDownloadManager::tryUpdateMusicLibrary @ 0x82c288
// > MusicDownloadManager::tryUpdateMusicLibrary @ 0x82c2b0
// > MusicDownloadManager::downloadMusicLibrary @ 0x82c5c0
// > MusicDownloadManager::downloadMusicLibrary @ 0x82c5e8
// > MusicDownloadManager::downloadMusicLibrary @ 0x82c604
// > MusicDownloadManager::downloadMusicLibrary @ 0x82c630
// > MusicDownloadManager::downloadMusicLibrary @ 0x82c658
// > MusicDownloadManager::downloadSFX @ 0x82c9f0
// > MusicDownloadManager::downloadSFX @ 0x82ca0c
// > MusicDownloadManager::downloadSFX @ 0x82ca28
// > MusicDownloadManager::downloadSFX @ 0x82ca44
// > MusicDownloadManager::downloadSFX @ 0x82ca60
// > MusicDownloadManager::downloadSFX @ 0x82caa8
// > MusicDownloadManager::tryUpdateSFXLibrary @ 0x82cdc4
// > MusicDownloadManager::tryUpdateSFXLibrary @ 0x82cdec
// > MusicDownloadManager::tryUpdateSFXLibrary @ 0x82ce08
// > MusicDownloadManager::tryUpdateSFXLibrary @ 0x82ce34
// > MusicDownloadManager::tryUpdateSFXLibrary @ 0x82ce5c
// > MusicDownloadManager::downloadSFXLibrary @ 0x82d16c
// > MusicDownloadManager::downloadSFXLibrary @ 0x82d194
// > MusicDownloadManager::downloadSFXLibrary @ 0x82d1b0
// > MusicDownloadManager::downloadSFXLibrary @ 0x82d1dc
// > MusicDownloadManager::downloadSFXLibrary @ 0x82d204
// > MusicDownloadManager::getSongInfo @ 0x82d5f8
// > MusicDownloadManager::getSongInfo @ 0x82d614
// > MusicDownloadManager::getSongInfo @ 0x82d630
// > MusicDownloadManager::getSongInfo @ 0x82d64c
// > MusicDownloadManager::onTryUpdateMusicLibraryCompleted @ 0x82dc08
// > MusicDownloadManager::onTryUpdateSFXLibraryCompleted @ 0x82dd38
// > SFXInfoObject::create @ 0x82e164
// > SFXInfoObject::getLowerCaseName @ 0x82e288
// > SFXFolderObject::init @ 0x82e3c0
// > SFXFolderObject::create @ 0x82e53c
// > MusicSearchResult::getFilesMatchingSearch @ 0x82e99c
// > MusicSearchResult::getFilesMatchingSearch @ 0x82e9b8
// > MusicArtistObject::create @ 0x82ec8c
// > MusicArtistObject::create @ 0x82eca8
// > MusicArtistObject::create @ 0x82ecd4
// > MusicDownloadManager::pathForSFXFolder @ 0x82f0f8
// > MusicDownloadManager::pathForSFXFolder @ 0x82f114
// > MusicDownloadManager::pathForSFXFolder @ 0x82f140
// > MusicDownloadManager::pathForSFX @ 0x82f270
// > MusicDownloadManager::pathForSFX @ 0x82f28c
// > MusicDownloadManager::onDownloadSFXCompleted @ 0x82f464
// > MusicDownloadManager::deleteSFX @ 0x82f53c
// > MusicDownloadManager::isSFXDownloaded @ 0x82f6c0
// > MusicDownloadManager::isSFXDownloaded @ 0x82f6ec
// > MusicDownloadManager::pathForSongFolder @ 0x82f904
// > MusicDownloadManager::pathForSongFolder @ 0x82f920
// > MusicDownloadManager::pathForSongFolder @ 0x82f94c
// > MusicDownloadManager::pathForSong @ 0x82fa8c
// > MusicDownloadManager::pathForSong @ 0x82faa8
// > MusicDownloadManager::deleteSong @ 0x82fb88
// > MusicDownloadManager::isSongDownloaded @ 0x82fd0c
// > MusicDownloadManager::isSongDownloaded @ 0x82fd38
// > MusicDownloadManager::onDownloadSongCompleted @ 0x83008c
// > sub_830154 @ 0x830388
// > MusicDownloadManager::createArtistsInfo @ 0x830790
// > MusicDownloadManager::createArtistsInfo @ 0x8307d4
// > MusicDownloadManager::createArtistsInfo @ 0x8307f0
// > MusicDownloadManager::createArtistsInfo @ 0x83080c
// > MusicDownloadManager::parseSFXLibrary @ 0x831378
// > MusicDownloadManager::parseSFXLibrary @ 0x831394
// > MusicDownloadManager::parseSFXLibrary @ 0x8313f8
// > MusicDownloadManager::parseSFXLibrary @ 0x831414
// > MusicDownloadManager::parseSFXLibrary @ 0x83143c
// > MusicDownloadManager::parseSFXLibrary @ 0x831490
// > MusicDownloadManager::parseSFXLibrary @ 0x8314b4
// > MusicDownloadManager::parseSFXLibrary @ 0x8314e0
// > MusicDownloadManager::onDownloadSFXLibraryCompleted @ 0x8316b4
// > MusicDownloadManager::sharedState @ 0x831b3c
// > MusicDownloadManager::downloadSong @ 0x831f24
// > MusicDownloadManager::downloadSong @ 0x831f50
// > MusicDownloadManager::downloadSong @ 0x831f8c
// > MusicDownloadManager::downloadSong @ 0x831fb4
// > MusicDownloadManager::downloadSong @ 0x831fe0
// > MusicDownloadManager::getSFXFolderPathForID @ 0x832188
// > SFXSearchResult::updateObjects @ 0x832a88
// > SFXSearchResult::updateObjects @ 0x832aa4
// > SFXSearchResult::updateObjects @ 0x832b00
// > MusicSearchResult::updateObjects @ 0x832f20
// > SongInfoObject::getArtistNames @ 0x833a44
// > SongInfoObject::getArtistNames @ 0x833a70
// > SongInfoObject::getArtistNames @ 0x833a9c
// > SongInfoObject::getTagsString @ 0x83410c
// > SongInfoObject::getTagsString @ 0x834128
// > SongInfoObject::updateArtists @ 0x8343e4
// > SongInfoObject::init @ 0x8345ec
// > SongInfoObject::create @ 0x834b14
// > SongInfoObject::create @ 0x834b34
// > SongInfoObject::create @ 0x834b54
// > SongInfoObject::create @ 0x834b74
// > SongInfoObject::create @ 0x834be4
// > SongInfoObject::create @ 0x834c10
// > SongInfoObject::create @ 0x834c2c
// > SongInfoObject::create @ 0x834c68
// > SongInfoObject::create @ 0x834c84
// > SongInfoObject::create @ 0x834ca0
// > SongInfoObject::create @ 0x834cbc
// > SongInfoObject::create @ 0x834cd8
// > SongInfoObject::create @ 0x834cf4
// > SongInfoObject::create @ 0x834d10
// > SongInfoObject::create @ 0x834d2c
// > SongInfoObject::create @ 0x835178
// > SongInfoObject::create @ 0x8351a4
// > SongInfoObject::create @ 0x8351c0
// > SongInfoObject::create @ 0x8351dc
// > SongInfoObject::create @ 0x8351f8
// > SongInfoObject::create @ 0x835214
// > SongInfoObject::create @ 0x835230
// > SongInfoObject::create @ 0x836234
// > SongInfoObject::create @ 0x83625c
// > SongInfoObject::create @ 0x836278
// > SongInfoObject::create @ 0x8362a8
// > SongInfoObject::create @ 0x8362c4
// > SongInfoObject::create @ 0x8362e0
// > SongInfoObject::create @ 0x8362fc
// > SongInfoObject::create @ 0x836318
// > SongInfoObject::create @ 0x836334
// > SongInfoObject::create @ 0x836350
// > SongInfoObject::create @ 0x836378
// > SongInfoObject::create @ 0x8363ac
// > SongInfoObject::create @ 0x8363d8
// > SongInfoObject::create @ 0x8363fc
// > SongInfoObject::create @ 0x83644c
// > SongInfoObject::create @ 0x836468
// > SongInfoObject::create @ 0x83648c
// > SongInfoObject::create @ 0x8364a8
// > SongInfoObject::create @ 0x836500
// > SongInfoObject::create @ 0x836524
// > SongInfoObject::create @ 0x836550
// > SongInfoObject::create @ 0x83656c
// > SongInfoObject::create @ 0x8365a0
// > SongInfoObject::create @ 0x836618
// > MusicDownloadManager::addSongObjectFromString @ 0x836918
// > MusicDownloadManager::addSongObjectFromString @ 0x836968
// > MusicDownloadManager::onGetSongInfoCompleted @ 0x836c7c
// > MusicDownloadManager::handleIt @ 0x836ef0
// > MusicDownloadManager::handleIt @ 0x836f0c
// > MusicDownloadManager::onProcessHttpRequestCompleted @ 0x837108
// > MusicDownloadManager::onProcessHttpRequestCompleted @ 0x837134
// > MusicDownloadManager::onProcessHttpRequestCompleted @ 0x837150
// > MusicDownloadManager::handleItND @ 0x8372d4
// > MusicDownloadManager::handleItND @ 0x8372f0
// > MusicDownloadManager::createSongsInfo @ 0x837704
// > MusicDownloadManager::createSongsInfo @ 0x83772c
// > MusicDownloadManager::createSongsInfo @ 0x837764
// > SongInfoObject::createWithCoder @ 0x837f74
// > SongInfoObject::createWithCoder @ 0x837f90
// > SongInfoObject::createWithCoder @ 0x837fac
// > SongInfoObject::createWithCoder @ 0x837fc8
// > SongInfoObject::createWithCoder @ 0x837fe4
// > SongInfoObject::createWithCoder @ 0x838000
// > SongInfoObject::createWithCoder @ 0x83801c
// > SongInfoObject::createWithCoder @ 0x838038
// > SongInfoObject::createWithCoder @ 0x8380ac
// > SongInfoObject::createWithCoder @ 0x8380c8
// > SongInfoObject::createWithCoder @ 0x8380e4
// > SongInfoObject::createWithCoder @ 0x838100
// > SongInfoObject::createWithCoder @ 0x83811c
// > SongInfoObject::createWithCoder @ 0x838138
// > SongInfoObject::createWithCoder @ 0x838154
// > MusicDownloadManager::parseMusicLibrary @ 0x839c2c
// > MusicDownloadManager::parseMusicLibrary @ 0x839c48
// > MusicDownloadManager::parseMusicLibrary @ 0x839c64
// > MusicDownloadManager::parseMusicLibrary @ 0x839c80
// > MusicDownloadManager::parseMusicLibrary @ 0x839c9c
// > MusicDownloadManager::parseMusicLibrary @ 0x839cb8
// > MusicDownloadManager::parseMusicLibrary @ 0x839cd4
// > MusicDownloadManager::parseMusicLibrary @ 0x839cf0
// > MusicDownloadManager::parseMusicLibrary @ 0x839d0c
// > MusicDownloadManager::parseMusicLibrary @ 0x839d28
// > MusicDownloadManager::parseMusicLibrary @ 0x839d44
// > MusicDownloadManager::parseMusicLibrary @ 0x839d60
// > MusicDownloadManager::parseMusicLibrary @ 0x839d7c
// > MusicDownloadManager::parseMusicLibrary @ 0x839df8
// > MusicDownloadManager::parseMusicLibrary @ 0x839e18
// > MusicDownloadManager::parseMusicLibrary @ 0x839e40
// > MusicDownloadManager::parseMusicLibrary @ 0x839ea0
// > MusicDownloadManager::parseMusicLibrary @ 0x839f34
// > MusicDownloadManager::parseMusicLibrary @ 0x839f68
// > MusicDownloadManager::parseMusicLibrary @ 0x839f8c
// > MusicDownloadManager::parseMusicLibrary @ 0x839fb0
// > MusicDownloadManager::parseMusicLibrary @ 0x839fd4
// > MusicDownloadManager::parseMusicLibrary @ 0x83a014
// > MusicDownloadManager::parseMusicLibrary @ 0x83a038
// > MusicDownloadManager::parseMusicLibrary @ 0x83a05c
// > MusicDownloadManager::parseMusicLibrary @ 0x83a080
// > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x83a288
//
// 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 __fastcall sub_4DC0D8(void *p)
{
unsigned int *v1; // x3
int v2; // w2
if ( &pthread_create )
{
v1 = (unsigned int *)((char *)p + 16);
do
v2 = __ldaxr(v1);
while ( __stlxr(v2 - 1, v1) );
}
else
{
v2 = *((_DWORD *)p + 4);
*((_DWORD *)p + 4) = v2 - 1;
}
if ( v2 <= 0 )
operator delete(p);
}