//
// MusicDownloadManager::newsImageFailed from 0x56cee8 to 0x56cf56 (110 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::onDownloadNewsImageCompleted @ 0x56eeaa
// > MusicDownloadManager::onDownloadNewsImageCompleted @ 0x56eefa
// > MusicDownloadManager::onDownloadNewsImageCompleted @ 0x56ef6a
//
// 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:34 +0000
//
unsigned int __fastcall MusicDownloadManager::newsImageFailed(int a1, int a2, int a3, int a4)
{
unsigned int i; // r6
unsigned int result; // r0
int v8; // r8
void (__fastcall *v9)(int, int *); // r10
int v10[4]; // [sp+0h] [bp-10h] BYREF
v10[0] = a1;
v10[1] = a2;
v10[2] = a3;
v10[3] = a4;
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 272));
if ( i >= result )
break;
v8 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 272), i) + 264);
v9 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v8 + 44);
std::string::basic_string(v10, a2);
v9(v8, v10);
std::string::~string((int)v10);
}
return result;
}