//
// MusicDownloadManager::syncCustomSFXPlacements from 0x56bf3e to 0x56bf8c (78 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::parseSFXLibrary @ 0x572096
// > MusicDownloadManager::decodeCustomSFX @ 0x576950
//
// 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:33 +0000
//
cocos2d::CCDictionary *__fastcall MusicDownloadManager::syncCustomSFXPlacements(cocos2d::CCDictionary *this)
{
MusicDownloadManager *v1; // r6
int v2; // r3
int v3; // r3
int v4; // r4
int v5; // r5
int v6; // r2
v1 = this;
v2 = *((_DWORD *)this + 133);
if ( v2 )
{
v3 = *(_DWORD *)(v2 + 52);
if ( v3 )
v4 = *(_DWORD *)(v3 + 272);
else
v4 = 0;
while ( v3 )
{
v5 = *(_DWORD *)(v3 + 260);
if ( !*(_BYTE *)(v5 + 68) )
{
this = MusicDownloadManager::getSFXObject(v1, *(_DWORD *)(v5 + 52));
if ( this )
{
*(_DWORD *)(v5 + 60) = *((_DWORD *)this + 15);
*(_DWORD *)(v5 + 64) = *((_DWORD *)this + 16);
}
}
if ( v4 )
v6 = *(_DWORD *)(v4 + 272);
else
v6 = 0;
v3 = v4;
v4 = v6;
}
}
return this;
}