//
// MusicDownloadManager::isRunningActionForSongID from 0x10058b230 to 0x10058b29c (108 bytes)
//
// 4 xrefs:
// > CustomSFXWidget::init @ 0x1005e38a1
// > CustomSFXWidget::updateSFXInfo @ 0x1005e43e0
// > CustomSongWidget::init @ 0x10061b9b2
// > CustomSongWidget::updateSongInfo @ 0x10061e3d3
//
// 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
//
bool __fastcall MusicDownloadManager::isRunningActionForSongID(MusicDownloadManager *a1, int a2)
{
cocos2d::CCString *v2; // rax
const char *CString; // rax
cocos2d::CCObject *DLObject; // rcx
bool result; // al
cocos2d::CCString *v6; // rax
const char *v7; // rax
char v8; // [rsp+0h] [rbp-10h]
char v9; // [rsp+0h] [rbp-10h]
v2 = (cocos2d::CCString *)sub_1007AB580("i_%i", v8);
CString = cocos2d::CCString::getCString(v2);
DLObject = MusicDownloadManager::getDLObject(a1, CString);
result = 1;
if ( !DLObject )
{
v6 = (cocos2d::CCString *)sub_1007AB580("d_%i", v9);
v7 = cocos2d::CCString::getCString(v6);
return MusicDownloadManager::getDLObject(a1, v7) != nullptr;
}
return result;
}