//
// MD5::Encode from 0x56b90c to 0x56b93e (50 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::generateCustomContentURL @ 0x56fdb0
// > MusicDownloadManager::generateCustomContentURL @ 0x56fde0
//
// 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:33 +0000
//
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;
}