//
// sub_804B8C from 0x804b8c to 0x804bd0 (68 bytes)
//
// 6 xrefs:
// > EVP_CIPHER_do_all @ 0x804db0
// > EVP_CIPHER_do_all @ 0x804dc0
// > ??> @ 0x804dd4
// > EVP_CIPHER_do_all_sorted @ 0x804df8
// > EVP_CIPHER_do_all_sorted @ 0x804e08
// > ??> @ 0x804e1c
//
// 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_804B8C(_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);
}