//
// MusicDownloadManager::ProcessHttpGetRequest from 0x56de88 to 0x56df0a (130 bytes)
//
// 9 xrefs:
// > MusicDownloadManager::downloadCustomSong @ 0x570166
// > MusicDownloadManager::tryUpdateMusicLibrary @ 0x570456
// > MusicDownloadManager::downloadMusicLibrary @ 0x570576
// > MusicDownloadManager::downloadSFX @ 0x570746
// > MusicDownloadManager::tryUpdateSFXLibrary @ 0x570872
// > MusicDownloadManager::downloadSFXLibrary @ 0x570992
// > MusicDownloadManager::downloadNewsFeed @ 0x570b2a
// > MusicDownloadManager::downloadNewsImage @ 0x570d0c
// > MusicDownloadManager::tryUpdateNewsFeed @ 0x574654
//
// 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:35 +0000
//
int *__fastcall MusicDownloadManager::ProcessHttpGetRequest(
cocos2d::CCObject *a1,
int a2,
int a3,
int a4,
int a5,
int a6,
int a7)
{
int *v10; // r4
char *v11; // r1
char *v12; // r1
int *v13; // r0
cocos2d::extension::CCHttpClient *Instance; // r0
v10 = (int *)operator new(0x8Cu);
cocos2d::extension::CCHttpRequest::CCHttpRequest((cocos2d::extension::CCHttpRequest *)v10);
v10[34] = a6;
v10[33] = a7;
if ( (*(_BYTE *)a2 & 1) != 0 )
v11 = *(char **)(a2 + 8);
else
v11 = (char *)(a2 + 1);
std::string::assign(v10 + 14, v11);
v10[13] = 0;
v10[23] = (int)a1;
v10[24] = a4;
v10[25] = a5;
if ( a1 )
cocos2d::CCObject::retain(a1);
if ( (*(_BYTE *)a3 & 1) != 0 )
v12 = *(char **)(a3 + 8);
else
v12 = (char *)(a3 + 1);
v13 = std::string::assign(v10 + 20, v12);
Instance = (cocos2d::extension::CCHttpClient *)cocos2d::extension::CCHttpClient::getInstance((cocos2d::extension::CCHttpClient *)v13);
cocos2d::extension::CCHttpClient::send(Instance, (cocos2d::extension::CCHttpRequest *)v10);
cocos2d::CCObject::release((cocos2d::CCObject *)v10);
return v10;
}