//
// EditorSoundConfigInfoLayer::startSFXDownload from 0xcd3538 to 0xcd3598 (96 bytes)
//
// 2 xrefs:
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0xcd3aa8
// > ??> @ 0x65ae8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:06:28 +0000
//
__int64 __fastcall EditorSoundConfigInfoLayer::startSFXDownload(EditorSoundConfigInfoLayer *this)
{
__int64 v2; // x2
__int64 v3; // x1
cocos2d::CCArray **v5; // x0
MusicDownloadDelegate *v6; // x0
MusicDownloadManager *v7; // x0
v2 = MusicDownloadManager::sharedState(this) + 368;
v3 = *(_BYTE *)v2 >> 1;
if ( (*(_BYTE *)v2 & 1) != 0 )
v3 = *(_QWORD *)(v2 + 8);
if ( v3 )
return EditorSoundConfigInfoLayer::downloadMissingSFX(this);
*((_BYTE *)this + 1122) = (unsigned __int8)&dword_0 + 1;
v5 = (cocos2d::CCArray **)MusicDownloadManager::sharedState((MusicDownloadManager *)((char *)&dword_0 + 1));
v6 = MusicDownloadManager::addMusicDownloadDelegate(v5, (EditorSoundConfigInfoLayer *)((char *)this + 1080));
v7 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v6);
return MusicDownloadManager::getCustomContentURL(v7);
}