//
// MusicDownloadManager::linkRowString from 0x140499360 to 0x140499457 (247 bytes)
//
// 3 xrefs:
// > SongInfoObject::createWithCoder @ 0x140495e55
// > SongInfoObject::addSongLink @ 0x140496a72
// > ??> @ 0x1409290cc
//
// This function is hookable on this platform (idp: pc, 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:32:53 +0000
//
// Hidden C++ exception states: #wind=2
_QWORD *__fastcall MusicDownloadManager::linkRowString(_QWORD *a1, _DWORD *a2)
{
__int64 v4; // rdi
__int64 v5; // rax
cocos2d::CCString *v6; // rax
const char *CString; // rax
size_t v8; // r8
_BYTE v10[32]; // [rsp+40h] [rbp-58h] BYREF
_BYTE Src[32]; // [rsp+60h] [rbp-38h] BYREF
v4 = MusicDownloadManager::urlEncode(Src);
v5 = MusicDownloadManager::urlEncode(v10);
if ( *(_QWORD *)(v4 + 24) > 0xFu )
v4 = *(_QWORD *)v4;
if ( *(_QWORD *)(v5 + 24) > 0xFu )
v5 = *(_QWORD *)v5;
v6 = cocos2d::CCString::createWithFormat("%i,%i,%s,%s", *a2, a2[1], (const char *)v5, (const char *)v4);
CString = cocos2d::CCString::getCString(v6);
*(_OWORD *)a1 = 0;
a1[2] = 0;
a1[3] = 0;
v8 = -1;
do
++v8;
while ( CString[v8] );
sub_14003D230(a1, CString, v8);
sub_14003D310((__int64)v10);
sub_14003D310((__int64)Src);
return a1;
}