//
// sub_1404855F0 from 0x1404855f0 to 0x14048572c (316 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::encodeDataTo @ 0x14048ae1a
// > MusicDownloadManager::encodeDataTo @ 0x14048ae48
// > ??> @ 0x140928bb0
//
// 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:46 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall sub_1404855F0(_QWORD *Src, __int64 **a2)
{
__int64 *v4; // rbx
size_t v5; // r8
__int64 **v6; // rdx
__int64 *i; // rax
__int64 *j; // rdx
char Buffer[32]; // [rsp+30h] [rbp-38h] BYREF
*(_OWORD *)Src = 0;
Src[2] = 0;
Src[3] = 15;
*(_BYTE *)Src = 0;
v4 = (__int64 *)**a2;
while ( v4 != *a2 )
{
sub_1401A8CE0(Buffer, "%i:%i", *((_DWORD *)v4 + 7), *((_DWORD *)v4 + 8));
if ( Src[2] )
sub_140044D80(Src, byte_14070ECF8, 1u);
v5 = -1;
do
++v5;
while ( Buffer[v5] );
sub_140044D80(Src, Buffer, v5);
v6 = (__int64 **)v4[2];
if ( *((_BYTE *)v6 + 25) )
{
for ( i = (__int64 *)v4[1]; !*((_BYTE *)i + 25); i = (__int64 *)i[1] )
{
if ( v4 != (__int64 *)i[2] )
break;
v4 = i;
}
v4 = i;
}
else
{
v4 = (__int64 *)v4[2];
for ( j = *v6; !*((_BYTE *)j + 25); j = (__int64 *)*j )
v4 = j;
}
}
return Src;
}