//
// sub_804BD0 from 0x804bd0 to 0x804c14 (68 bytes)
//
// 6 xrefs:
// > EVP_MD_do_all @ 0x804e40
// > EVP_MD_do_all @ 0x804e50
// > ??> @ 0x804e64
// > EVP_MD_do_all_sorted @ 0x804e88
// > EVP_MD_do_all_sorted @ 0x804e98
// > ??> @ 0x804eac
//
// 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_804BD0(_DWORD *a1, int *a2)
{
int v2; // r3
int (__fastcall *v3)(_DWORD, _DWORD, _DWORD, int); // lr
v2 = *a2;
v3 = (int (__fastcall *)(_DWORD, _DWORD, _DWORD, int))a2[1];
if ( a1[1] )
return v3(0, a1[2], a1[3], v2);
else
return v3(a1[3], a1[2], 0, v2);
}