//
// MusicDownloadManager::isSFXDownloaded from 0x572408 to 0x5724a2 (154 bytes)
//
// 4 xrefs:
// > CustomSongWidget::updateWithMultiAssets @ 0x4e5692
// > CustomSFXWidget::updateSFXInfo @ 0x6a670e
// > AudioAssetsBrowser::onInfo @ 0x6e1db6
// > EditorSoundConfigInfoLayer::missingSFXIDs @ 0x7884ea
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:38 +0000
//
const char *__fastcall MusicDownloadManager::isSFXDownloaded(
MusicDownloadManager *this,
unsigned int a2,
unsigned int a3)
{
const char *isResourceSFX; // r7
int v6; // r8
int (__fastcall *v7)(int, int *); // r9
size_t v8; // r0
char v10; // [sp+4h] [bp-1Ch] BYREF
char v11; // [sp+5h] [bp-1Bh] BYREF
char *v12; // [sp+Ch] [bp-14h]
int v13[3]; // [sp+10h] [bp-10h] BYREF
isResourceSFX = (const char *)MusicDownloadManager::isResourceSFX(this, a2, a3);
if ( !isResourceSFX )
{
v6 = cocos2d::CCFileUtils::sharedFileUtils(nullptr);
v7 = *(int (__fastcall **)(int, int *))(*(_DWORD *)v6 + 80);
MusicDownloadManager::pathForSFX((MusicDownloadManager *)&v10, this, a2);
if ( (v10 & 1) == 0 )
isResourceSFX = &v11;
v13[0] = 0;
if ( (v10 & 1) != 0 )
isResourceSFX = v12;
v13[1] = 0;
v13[2] = 0;
v8 = strlen(isResourceSFX);
std::string::__init(v13, isResourceSFX, v8);
isResourceSFX = (const char *)v7(v6, v13);
std::string::~string((int)v13);
std::string::~string((int)&v10);
}
return isResourceSFX;
}