//
// X509_ALGOR_set_md from 0xfeec4c to 0xfeec9c (80 bytes)
//
// 7 xrefs:
// > sub_1050A8C @ 0x1050ae0
// > sub_1050B68 @ 0x1050c54
// > sub_1051350 @ 0x10517f0
// > CMS_add1_signer @ 0x10a0c4c
// > CMS_add1_signer @ 0x10a0f90
// > cms_DigestedData_create @ 0x10f8f48
// > ??> @ 0xc4ca8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:15:44 +0000
//
__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);
}