//
// MD5::Encode from 0x457b2c to 0x457b5e (50 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::generateCustomContentURL @ 0x458906
// > MusicDownloadManager::generateCustomContentURL @ 0x458936
//
// 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 MD5::Encode(int this, unsigned __int8 *a2, unsigned int *a3, unsigned int a4)
{
unsigned __int8 *i; // r3
unsigned __int8 *v5; // r5
int v6; // t1
for ( i = a2; ; i += 4 )
{
this += 4;
if ( i - a2 >= (unsigned int)a3 )
break;
v5 = i;
*(_WORD *)(this - 4) = *(_DWORD *)i;
v6 = *(_DWORD *)i;
*(_BYTE *)(this - 2) = BYTE2(v6);
*(_BYTE *)(this - 1) = v5[3];
}
return this;
}