//
// MusicDownloadManager::downloadSFXFailed from 0x95d094 to 0x95d104 (112 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::onDownloadSFXCompleted @ 0x96b6fc
// > MusicDownloadManager::onDownloadSFXCompleted @ 0x96b7b0
// > ??> @ 0x953e0
//
// 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::downloadSFXFailed(__int64 a1, unsigned int a2, unsigned int a3)
{
unsigned int v6; // w19
__int64 v7; // x0
__int64 result; // x0
bool v9; // cf
unsigned int v10; // w1
v6 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));
v9 = v6 >= (unsigned int)result;
v10 = v6++;
if ( v9 )
break;
v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 336), v10);
(*(void (__fastcall **)(_QWORD, _QWORD, _QWORD))(**(_QWORD **)(v7 + 320) + 56LL))(*(_QWORD *)(v7 + 320), a2, a3);
}
return result;
}