//
// MusicDownloadManager::joinIDString from 0x964d58 to 0x964e70 (280 bytes)
//
// 5 xrefs:
// > MusicDownloadManager::encodeDataTo @ 0x96ec04
// > MusicDownloadManager::encodeDataTo @ 0x96ec68
// > MusicDownloadManager::encodeDataTo @ 0x96eccc
// > MusicDownloadManager::encodeDataTo @ 0x96ee14
// > ??> @ 0xadc98
//
// 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 12:57:35 +0000
//
_QWORD *__usercall MusicDownloadManager::joinIDString@(__int64 *a1@, _QWORD *a2@)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x22
__int64 v7; // x19
__int64 v8; // x1
size_t v9; // x0
char s[16]; // [xsp+58h] [xbp+58h] BYREF
__int64 v12; // [xsp+68h] [xbp+68h]
a2[1] = 0;
v4 = _stack_chk_guard;
a2[2] = 0;
*a2 = 0;
v12 = v4;
v5 = *a1;
v6 = (a1[1] - *a1) >> 2;
if ( v6 )
{
v7 = 0;
while ( 1 )
{
sprintf(s, "%i", *(_DWORD *)(v5 + 4 * v7));
v8 = *(_BYTE *)a2 >> 1;
if ( (*(_BYTE *)a2 & 1) != 0 )
v8 = a2[1];
if ( v8 )
std::string::append((__int64)a2, &byte_1169BE0, 1u);
v9 = strlen(s);
std::string::append((__int64)a2, s, v9);
if ( ++v7 == v6 )
break;
v5 = *a1;
}
}
return a2;
}