//
// MusicDownloadManager::downloadSFXFinished from 0x95d02c to 0x95d094 (104 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::onDownloadSFXCompleted @ 0x96b784
// > ??> @ 0xd28c8
//
// 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::downloadSFXFinished(cocos2d::CCArray **this, unsigned int a2)
{
unsigned int v4; // w19
__int64 v5; // x0
__int64 result; // x0
bool v7; // cf
unsigned int v8; // w1
v4 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 42));
v7 = v4 >= (unsigned int)result;
v8 = v4++;
if ( v7 )
break;
v5 = cocos2d::CCArray::objectAtIndex(*(this + 42), v8);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v5 + 320) + 48LL))(*(_QWORD *)(v5 + 320), a2);
}
return result;
}