//
// sub_456D56 from 0x456d56 to 0x456d8a (52 bytes)
//
// 4 xrefs:
// > MusicDownloadManager::generateCustomContentURL @ 0x4589a2
// > MusicDownloadManager::generateCustomContentURL @ 0x4589d6
// > MusicDownloadManager::generateCustomContentURL @ 0x458a0a
// > MusicDownloadManager::generateCustomContentURL @ 0x458a38
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_456D56(int a1, _DWORD *a2, _DWORD *a3)
{
int i; // r2
int result; // r0
int v8; // r4
for ( i = 0; ; i = *(_DWORD *)(*a3 - 12) + v8 )
{
result = sub_774834(a1, a2, i);
v8 = result;
if ( result == -1 )
break;
sub_776454(a1, result, *(_DWORD *)(*a2 - 12), a3);
}
return result;
}