//
// X509_ALGOR_set_md from 0x9df500 to 0x9df53c (60 bytes)
//
// 7 xrefs:
// > sub_A40CA8 @ 0xa40cf8
// > sub_A40D84 @ 0xa40e8c
// > sub_A415FC @ 0xa41a1c
// > CMS_add1_signer @ 0xa8cc5c
// > CMS_add1_signer @ 0xa8d008
// > cms_DigestedData_create @ 0xae42ac
// > ??> @ 0x78c2c
//
// 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 12:07:20 +0000
//
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);
}