//
// MusicDownloadManager::ProcessHttpGetRequest from 0x1001d2294 to 0x1001d23a0 (268 bytes)
//
// 9 xrefs:
// > MusicDownloadManager::downloadCustomSong @ 0x1001d51d4
// > MusicDownloadManager::tryUpdateNewsFeed @ 0x1001dad90
// > MusicDownloadManager::tryUpdateMusicLibrary @ 0x1001db7b0
// > MusicDownloadManager::downloadMusicLibrary @ 0x1001dba64
// > MusicDownloadManager::downloadSFX @ 0x1001de7a4
// > sub_1001DEAD8 @ 0x1001debd0
// > sub_1001DED8C @ 0x1001dee84
// > sub_1001E01AC @ 0x1001e0274
// > sub_1001E159C @ 0x1001e1734
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:00:23 +0000
//
char *__fastcall MusicDownloadManager::ProcessHttpGetRequest(
__int64 a1,
const std::string::value_type *a2,
const std::string::value_type *a3,
__int64 a4,
__int64 a5,
int a6,
int a7)
{
char *v14; // x19
std::string *v15; // x0
__int64 Instance; // x0
v14 = (char *)operator new(0xD8u);
cocos2d::CCObject::CCObject((__int64)v14);
*(_QWORD *)v14 = off_1008CEAF0;
*((_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;
v15 = std::string::assign((std::string *)(v14 + 112), a3);
Instance = cocos2d::extension::CCHttpClient::getInstance(v15);
cocos2d::extension::CCHttpClient::send(Instance, v14);
cocos2d::CCObject::release(v14);
return v14;
}