//
// EditorSoundConfigInfoLayer::missingSFXIDs from 0x78846c to 0x788568 (252 bytes)
//
// 2 xrefs:
// > EditorSoundConfigInfoLayer::onDownloadSFX @ 0x788586
// > EditorSoundConfigInfoLayer::downloadMissingSFX @ 0x7886de
//
// 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
//
EditorSoundConfigInfoLayer *__fastcall EditorSoundConfigInfoLayer::missingSFXIDs(
EditorSoundConfigInfoLayer *this,
int a2)
{
int v3; // r1
char *v4; // r0
unsigned int i; // r6
int v6; // r9
unsigned int j; // r7
char *v8; // r2
MusicDownloadManager *v9; // r0
unsigned int v10; // r2
int *v11; // r3
int v13; // [sp+0h] [bp-20h] BYREF
char **v14[3]; // [sp+4h] [bp-1Ch] BYREF
int v15[3]; // [sp+10h] [bp-10h] BYREF
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
v3 = *(_DWORD *)(a2 + 748);
if ( v3 && *(_BYTE *)(v3 + 384) )
{
std::string::basic_string(v15, v3 + 372);
EditorSFXManager::summarizeBlob((int)v14, (unsigned __int8 *)v15);
v4 = (char *)std::string::~string((int)v15);
for ( i = 0; i < ((char *)v14[1] - (char *)v14[0]) >> 4; ++i )
{
v6 = 4 * i;
for ( j = 0; ; ++j )
{
v8 = v14[0][v6 + 1];
if ( j >= (v14[0][v6 + 2] - v8) >> 2 )
break;
v13 = *(_DWORD *)&v8[4 * j];
if ( v13 > 0 )
{
v9 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v4);
v4 = (char *)MusicDownloadManager::isSFXDownloaded(v9, v13, v10);
if ( !v4 )
{
v11 = *((int **)this + 1);
while ( v4 != (char *)(((int)v11 - *(_DWORD *)this) >> 2) )
{
if ( *(_DWORD *)(*(_DWORD *)this + 4 * (_DWORD)v4) == v13 )
goto LABEL_17;
++v4;
}
if ( v11 == *((int **)this + 2) )
{
std::vector::__push_back_slow_path((int)this, &v13);
}
else
{
if ( v11 )
*v11 = v13;
*((_DWORD *)this + 1) += 4;
}
}
}
LABEL_17:
;
}
}
std::__vector_base>>::~__vector_base(v14);
}
return this;
}