//
// MusicDownloadManager::ProcessHttpGetRequest from 0x10015380c to 0x100153918 (268 bytes)
//
// 6 xrefs:
// > MusicDownloadManager::downloadCustomSong @ 0x10015674c
// > MusicDownloadManager::tryUpdateMusicLibrary @ 0x100157b2c
// > MusicDownloadManager::downloadMusicLibrary @ 0x100157de0
// > MusicDownloadManager::downloadSFX @ 0x100159a4c
// > MusicDownloadManager::tryUpdateSFXLibrary @ 0x100159e78
// > MusicDownloadManager::downloadSFXLibrary @ 0x10015a12c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
char *__fastcall MusicDownloadManager::ProcessHttpGetRequest(
cocos2d::CCObject *a1,
const std::string::value_type *a2,
const std::string::value_type *a3,
__int64 a4,
__int64 a5,
int a6,
int a7)
{
char *v14; // x19
cocos2d::extension::CCHttpClient *Instance; // x0
v14 = (char *)operator new(0xD8u);
cocos2d::CCObject::CCObject((__int64)v14);
*(_QWORD *)v14 = off_100781258;
*((_OWORD *)v14 + 4) = 0u;
*((_QWORD *)v14 + 22) = 0;
*((_QWORD *)v14 + 23) = 0;
*((_QWORD *)v14 + 21) = 0;
*((_QWORD *)v14 + 16) = 0;
*((_OWORD *)v14 + 5) = 0u;
*((_OWORD *)v14 + 6) = 0u;
*((_OWORD *)v14 + 7) = 0u;
*((_DWORD *)v14 + 14) = 5;
*((_DWORD *)v14 + 48) = 0;
v14[196] = 0;
*(_OWORD *)(v14 + 151) = 0u;
v14[167] = 0;
*(_OWORD *)(v14 + 135) = 0u;
*((_DWORD *)v14 + 51) = a7;
*((_DWORD *)v14 + 52) = a6;
*((_DWORD *)v14 + 50) = 0;
if ( a2[23] < 0 )
a2 = *(const std::string::value_type **)a2;
std::string::assign((std::string *)(v14 + 64), a2);
*((_DWORD *)v14 + 14) = 0;
*((_QWORD *)v14 + 17) = a1;
*((_QWORD *)v14 + 18) = a4;
*((_QWORD *)v14 + 19) = a5;
if ( a1 )
cocos2d::CCObject::retain(a1);
if ( a3[23] < 0 )
a3 = *(const std::string::value_type **)a3;
std::string::assign((std::string *)(v14 + 112), a3);
Instance = cocos2d::extension::CCHttpClient::getInstance();
cocos2d::extension::CCHttpClient::send(Instance, (cocos2d::extension::CCHttpRequest *)v14);
cocos2d::CCObject::release((cocos2d::CCObject *)v14);
return v14;
}