//
// sub_1001E7A54 from 0x1001e7a54 to 0x1001e7aac (88 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::encodeDataTo @ 0x1001d9cc4
// > MusicDownloadManager::encodeDataTo @ 0x1001d9d34
// > MusicDownloadManager::encodeDataTo @ 0x1001d9da4
//
// 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 11:00:34 +0000
//
__int64 *__fastcall sub_1001E7A54(__int64 *result, __int64 *a2, __int64 *a3, unsigned __int64 a4)
{
__int64 *v6; // x19
_DWORD *v7; // x8
if ( a4 )
{
v6 = result;
result = (__int64 *)sub_100018404(result, a4);
v7 = (_DWORD *)v6[1];
while ( a2 != a3 )
{
*v7++ = *((_DWORD *)a2 + 4);
a2 = (__int64 *)*a2;
}
v6[1] = (__int64)v7;
}
return result;
}