//
// MusicDownloadManager::syncCustomSFXPlacements from 0x95cb78 to 0x95cbf4 (124 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::parseSFXLibrary @ 0x96be58
// > MusicDownloadManager::decodeCustomSFX @ 0x970f7c
// > ??> @ 0xee390
//
// This function is hookable on this platform (idp: arm, 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:57:29 +0000
//
__int64 __fastcall MusicDownloadManager::syncCustomSFXPlacements(__int64 this)
{
__int64 v1; // x1
__int64 v2; // x20
MusicDownloadManager *v3; // x21
__int64 i; // x19
__int64 v5; // x20
v1 = *(_QWORD *)(this + 824);
if ( v1 )
{
v2 = *(_QWORD *)(v1 + 56);
if ( v2 )
{
v3 = (MusicDownloadManager *)this;
for ( i = *(_QWORD *)(v2 + 288); ; i = *(_QWORD *)(i + 288) )
{
v5 = *(_QWORD *)(v2 + 264);
if ( *(_BYTE *)(v5 + 72) || (this = MusicDownloadManager::getSFXObject(v3, *(_DWORD *)(v5 + 56))) == 0 )
{
v2 = i;
if ( !i )
return this;
}
else
{
*(_DWORD *)(v5 + 64) = *(_DWORD *)(this + 64);
this = *(unsigned int *)(this + 68);
*(_DWORD *)(v5 + 68) = this;
v2 = i;
if ( !i )
return this;
}
}
}
}
return this;
}