//
// MusicDownloadManager::ProcessHttpGetRequest from 0x10058a3f0 to 0x10058a53e (334 bytes)
//
// 6 xrefs:
// > MusicDownloadManager::downloadCustomSong @ 0x10058f409
// > MusicDownloadManager::tryUpdateMusicLibrary @ 0x100591891
// > MusicDownloadManager::downloadMusicLibrary @ 0x100591bcb
// > MusicDownloadManager::downloadSFX @ 0x100594dc0
// > MusicDownloadManager::tryUpdateSFXLibrary @ 0x10059533b
// > MusicDownloadManager::downloadSFXLibrary @ 0x100595664
//
// 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,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
int a6,
int a7)
{
char *v9; // rbx
const std::string::value_type *v10; // r12
const std::string::value_type *v11; // r14
cocos2d::extension::CCHttpClient *Instance; // rax
v9 = (char *)operator new(0xD8u);
cocos2d::CCObject::CCObject((__int64)v9);
*(_QWORD *)v9 = off_1008B9708;
*(_OWORD *)(v9 + 168) = 0;
*((_QWORD *)v9 + 23) = 0;
*((_OWORD *)v9 + 4) = 0;
*((_OWORD *)v9 + 5) = 0;
*((_OWORD *)v9 + 6) = 0;
*((_OWORD *)v9 + 7) = 0;
*((_QWORD *)v9 + 16) = 0;
*((_DWORD *)v9 + 14) = 5;
*((_DWORD *)v9 + 48) = 0;
v9[196] = 0;
*((_DWORD *)v9 + 50) = 0;
*(_OWORD *)(v9 + 136) = 0;
*(_OWORD *)(v9 + 152) = 0;
*((_DWORD *)v9 + 52) = a6;
*((_DWORD *)v9 + 51) = a7;
if ( (*(_BYTE *)a2 & 1) != 0 )
v10 = *(const std::string::value_type **)(a2 + 16);
else
v10 = (const std::string::value_type *)(a2 + 1);
std::string::assign((std::string *)(v9 + 64), v10);
*((_DWORD *)v9 + 14) = 0;
*((_QWORD *)v9 + 17) = a1;
*((_QWORD *)v9 + 18) = a4;
*((_QWORD *)v9 + 19) = a5;
if ( a1 )
cocos2d::CCObject::retain(a1);
if ( (*(_BYTE *)a3 & 1) != 0 )
v11 = *(const std::string::value_type **)(a3 + 16);
else
v11 = (const std::string::value_type *)(a3 + 1);
std::string::assign((std::string *)(v9 + 112), v11);
Instance = cocos2d::extension::CCHttpClient::getInstance();
cocos2d::extension::CCHttpClient::send(Instance, (cocos2d::extension::CCHttpRequest *)v9);
cocos2d::CCObject::release((cocos2d::CCObject *)v9);
return v9;
}