//
// MusicDownloadManager::downloadSFXFailed from 0x56c174 to 0x56c1a8 (52 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::onDownloadSFXCompleted @ 0x571bb4
// > MusicDownloadManager::onDownloadSFXCompleted @ 0x571be8
//
// 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
//
unsigned int __fastcall MusicDownloadManager::downloadSFXFailed(int a1, int a2, int a3)
{
unsigned int i; // r4
unsigned int result; // r0
int v8; // r0
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 272));
if ( i >= result )
break;
v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 272), i);
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(v8 + 264) + 28))(*(_DWORD *)(v8 + 264), a2, a3);
}
return result;
}