//
// MusicDownloadManager::linkRowString from 0x56d64c to 0x56d6fe (178 bytes)
//
// 2 xrefs:
// > SongInfoObject::addSongLink @ 0x57332e
// > SongInfoObject::addArtistLink @ 0x5733f2
//
// 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:34 +0000
//
MusicDownloadManager *__fastcall MusicDownloadManager::linkRowString(
MusicDownloadManager *this,
const GJLinkObject *a2)
{
const char *v2; // r10
int v4; // r9
char *v6; // r11
char *v7; // r3
cocos2d::CCString *v8; // r0
const char *CString; // r0
const char *v10; // r4
size_t v11; // r0
int v13[3]; // [sp+Ch] [bp+0h] BYREF
int v14[3]; // [sp+18h] [bp+Ch] BYREF
v2 = *(const char **)a2;
v4 = *((_DWORD *)a2 + 1);
MusicDownloadManager::urlEncode(v13, (unsigned __int8 *)a2 + 8);
if ( (v13[0] & 1) != 0 )
v6 = (char *)v13[2];
else
v6 = (char *)v13 + 1;
MusicDownloadManager::urlEncode(v14, (unsigned __int8 *)a2 + 20);
if ( (v14[0] & 1) != 0 )
v7 = (char *)v14[2];
else
v7 = (char *)v14 + 1;
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i,%i,%s,%s", v2, v4, v6, v7);
CString = (const char *)cocos2d::CCString::getCString(v8);
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v10 = CString;
*((_DWORD *)this + 2) = 0;
v11 = strlen(CString);
std::string::__init((int *)this, v10, v11);
std::string::~string((int)v14);
std::string::~string((int)v13);
return this;
}