//
// MusicDownloadManager::getNewsImageDownloadKey from 0x56c040 to 0x56c05e (30 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::onDownloadNewsImageCompleted @ 0x56ee62
// > MusicDownloadManager::downloadNewsImage @ 0x570c64
//
// 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
//
int __fastcall MusicDownloadManager::getNewsImageDownloadKey(int a1, unsigned __int8 *a2)
{
int v2; // r3
cocos2d::CCString *v3; // r0
v2 = *a2 << 31;
if ( (*a2 & 1) == 0 )
++a2;
if ( v2 < 0 )
a2 = *((unsigned __int8 **)a2 + 2);
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"news_%s", (const char *)a2);
return cocos2d::CCString::getCString(v3);
}