//
// X509_ALGOR_set_md from 0xd708ec to 0xd7093c (80 bytes)
//
// 7 xrefs:
// > sub_DD272C @ 0xdd2780
// > sub_DD2808 @ 0xdd28f4
// > sub_DD2FF0 @ 0xdd3490
// > CMS_add1_signer @ 0xe2294c
// > CMS_add1_signer @ 0xe22c90
// > cms_DigestedData_create @ 0xe7af48
// > ??> @ 0x94f20
//
// 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
//
__int64 __fastcall X509_ALGOR_set_md(__int64 *a1, __int64 a2)
{
int v3; // w2
__int64 v4; // x0
__int64 v5; // x0
unsigned int v7; // [xsp+28h] [xbp+28h]
if ( (*(_QWORD *)(a2 + 16) & 8LL) != 0 )
v3 = -1;
else
v3 = 5;
v7 = v3;
v4 = EVP_MD_type(a2);
v5 = OBJ_nid2obj(v4);
return X509_ALGOR_set0(a1, v5, v7, 0);
}