//
// MusicDownloadManager::joinIDString from 0x56e8b0 to 0x56e938 (136 bytes)
//
// 4 xrefs:
// > MusicDownloadManager::encodeDataTo @ 0x575bf0
// > MusicDownloadManager::encodeDataTo @ 0x575c1c
// > MusicDownloadManager::encodeDataTo @ 0x575c48
// > MusicDownloadManager::encodeDataTo @ 0x575d00
//
// 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:35 +0000
//
_DWORD *__fastcall MusicDownloadManager::joinIDString(_DWORD *a1, _DWORD *a2)
{
int v2; // r5
int v4; // r3
int v6; // r7
int v7; // r3
int v8; // r3
char v10[16]; // [sp+4h] [bp-18h] BYREF
int v11; // [sp+14h] [bp-8h]
v2 = 0;
a1[1] = 0;
a1[2] = 0;
v4 = _stack_chk_guard;
*a1 = 0;
v11 = v4;
v6 = (a2[1] - *a2) >> 2;
while ( v2 != v6 )
{
sub_993BD0(v10, "%i", *(_DWORD *)(*a2 + 4 * v2));
v7 = *(unsigned __int8 *)a1;
if ( (v7 & 1) != 0 )
v8 = a1[1];
else
v8 = v7 >> 1;
if ( v8 )
std::string::append(a1, ",");
std::string::append(a1, v10);
++v2;
}
return a1;
}