//
// X509_ALGOR_set_md from 0x7ca900 to 0x7ca93c (60 bytes)
//
// 7 xrefs:
// > sub_82C0A8 @ 0x82c0f8
// > sub_82C184 @ 0x82c28c
// > sub_82C9FC @ 0x82ce1c
// > CMS_add1_signer @ 0x87805c
// > CMS_add1_signer @ 0x878408
// > cms_DigestedData_create @ 0x8cf2ac
// > ??> @ 0x5f1ac
//
// 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 X509_ALGOR_set_md(_DWORD **a1, int a2)
{
int v3; // r4
int v4; // r0
_DWORD *v5; // r0
if ( (*(_DWORD *)(a2 + 12) & 8) != 0 )
v3 = -1;
else
v3 = 5;
v4 = EVP_MD_type(a2);
v5 = (_DWORD *)OBJ_nid2obj(v4);
return X509_ALGOR_set0(a1, v5, v3, 0);
}