//
// EditorSFXManager::downloadAllMissing from 0x77d9d0 to 0x77da62 (146 bytes)
//
// 1 xrefs:
// > EditorSoundsSettingsPopup::onDownloadAll @ 0x78bc8a
//
// 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:25 +0000
//
char **__fastcall EditorSFXManager::downloadAllMissing(EditorSFXManager *this)
{
MusicDownloadManager *v1; // r0
char *v2; // r8
unsigned int *v3; // r6
const char *v4; // r9
unsigned int v5; // t1
MusicDownloadManager *v6; // r0
MusicDownloadManager *v7; // r0
int v8; // r3
int v9; // r0
int v11; // r0
char *v12[3]; // [sp+4h] [bp+0h] BYREF
_BYTE v13[4]; // [sp+10h] [bp+Ch] BYREF
int v14; // [sp+14h] [bp+10h]
v1 = EditorSFXManager::collectAllSFXIDs((EditorSFXManager *)v12, (int)this);
v2 = v12[1];
v3 = (unsigned int *)v12[0];
while ( v3 != (unsigned int *)v2 )
{
v5 = *v3++;
v4 = (const char *)v5;
v6 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v1);
v7 = MusicDownloadManager::pathForSFX((MusicDownloadManager *)v13, v6, v5);
if ( (v13[0] & 1) != 0 )
v8 = v14;
else
v8 = (int)v13[0] >> 1;
if ( !v8
|| (v9 = cocos2d::CCFileUtils::sharedFileUtils(v7),
(v7 = (MusicDownloadManager *)(*(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 80))(v9, v13)) == nullptr) )
{
v11 = MusicDownloadManager::sharedState(v7);
MusicDownloadManager::downloadSFX(v11, v4);
}
v1 = (MusicDownloadManager *)std::string::~string((int)v13);
}
return std::__vector_base::~__vector_base(v12);
}