//
// EditorSoundConfigInfoLayer::startSFXDownload from 0x7887a8 to 0x7887e8 (64 bytes)
//
// 1 xrefs:
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x7889be
//
// 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:59:34 +0000
//
char **__fastcall EditorSoundConfigInfoLayer::startSFXDownload(EditorSoundConfigInfoLayer *this)
{
int v2; // r0
int v3; // r3
int v4; // r3
cocos2d::CCArray **v5; // r0
MusicDownloadManager *v6; // r0
MusicDownloadManager *v7; // r0
v2 = MusicDownloadManager::sharedState(this);
v3 = *(unsigned __int8 *)(v2 + 288);
if ( (v3 & 1) != 0 )
v4 = *(_DWORD *)(v2 + 292);
else
v4 = v3 >> 1;
if ( v4 )
return EditorSoundConfigInfoLayer::downloadMissingSFX(this);
*((_BYTE *)this + 766) = 1;
v5 = (cocos2d::CCArray **)MusicDownloadManager::sharedState((MusicDownloadManager *)v2);
v6 = (MusicDownloadManager *)MusicDownloadManager::addMusicDownloadDelegate(
v5,
(EditorSoundConfigInfoLayer *)((char *)this + 744));
v7 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v6);
return (char **)MusicDownloadManager::getCustomContentURL(v7);
}