//
// sub_56E994 from 0x56e994 to 0x56ea1a (134 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::encodeDataTo @ 0x575d1c
// > MusicDownloadManager::encodeDataTo @ 0x575d38
//
// 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 sub_56E994(_DWORD *a1, _DWORD **a2)
{
_DWORD *i; // r6
_DWORD *v4; // r7
int v5; // r3
int v6; // r3
char v8[32]; // [sp+4h] [bp-24h] BYREF
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
v4 = a2 + 1;
for ( i = *a2; i != v4; i = std::__tree_next *>(i) )
{
sub_993BD0(v8, "%i:%i", i[4], i[5]);
v5 = *(unsigned __int8 *)a1;
if ( (v5 & 1) != 0 )
v6 = a1[1];
else
v6 = v5 >> 1;
if ( v6 )
std::string::append(a1, ",");
std::string::append(a1, v8);
}
return a1;
}