//
// MusicDownloadManager::isCustomSFXInScope from 0x56d220 to 0x56d2a4 (132 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::rebuildCustomSFXMappings @ 0x57a560
//
// 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:34 +0000
//
int __fastcall MusicDownloadManager::isCustomSFXInScope(MusicDownloadManager *a1, int a2, _DWORD *a3, int a4)
{
int v8; // r7
int i; // r4
int v10; // [sp+4h] [bp-Ch] BYREF
_DWORD v11[2]; // [sp+8h] [bp-8h] BYREF
v10 = a2;
v11[0] = a3;
v11[1] = a4;
if ( !a3[2] )
return 0;
v10 = -1;
if ( !std::__tree::__count_unique(a3, &v10) )
{
v11[0] = 1;
if ( !std::__tree::__count_unique(a3, v11) )
{
v8 = 101;
for ( i = MusicDownloadManager::getCustomSFXObject(a1, *(_DWORD *)(a2 + 56));
i;
i = MusicDownloadManager::getCustomSFXObject(a1, *(_DWORD *)(i + 56)) )
{
if ( !--v8 )
break;
if ( std::__tree::__count_unique(a3, (_DWORD *)(i + 72)) )
return 1;
}
return 0;
}
}
return 1;
}