//
// MusicDownloadManager::getAllSFXObjects from 0x100660f00 to 0x100660fb7 (183 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:34:56 +0000
//
__int64 __fastcall MusicDownloadManager::getAllSFXObjects(__int64 a1, char a2)
{
__int64 v2; // rbx
__int64 v3; // rax
__int64 v4; // r12
__int64 v5; // r15
__int64 v6; // rsi
__int64 v7; // r12
__int64 v8; // rsi
v2 = sub_1007FE900(a1);
v3 = *(_QWORD *)(a1 + 400);
if ( v3 )
{
v4 = *(_QWORD *)(v3 + 56);
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 288);
if ( a2 )
{
v6 = *(_QWORD *)(v4 + 264);
v7 = *(_QWORD *)(v4 + 288);
if ( *(_BYTE *)(v6 + 72) )
goto LABEL_6;
LABEL_5:
sub_1007FEBF0(v2, v6);
LABEL_6:
while ( v7 )
{
v6 = *(_QWORD *)(v7 + 264);
v7 = *(_QWORD *)(v7 + 288);
if ( !*(_BYTE *)(v6 + 72) )
goto LABEL_5;
}
}
else
{
sub_1007FEBF0(v2, *(_QWORD *)(v4 + 264));
while ( v5 )
{
v8 = *(_QWORD *)(v5 + 264);
v5 = *(_QWORD *)(v5 + 288);
sub_1007FEBF0(v2, v8);
}
}
}
}
return v2;
}