//
// X509at_get_attr_by_NID from 0x83dec4 to 0x83def8 (52 bytes)
//
// 9 xrefs:
// > EVP_PKEY_get_attr_by_NID @ 0x803fa4
// > PKCS7_get_signed_attribute @ 0x827e8c
// > PKCS7_get_attribute @ 0x8286cc
// > PKCS7_digest_from_attributes @ 0x8286f8
// > PKCS12_get_attr_gen @ 0x8bb6c0
// > X509_REQ_get_attr_by_NID @ 0x8c3580
// > CMS_signed_get_attr_by_NID @ 0x8cf0e0
// > CMS_unsigned_get_attr_by_NID @ 0x8cf1a0
// > ??> @ 0x6387c
//
// 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 X509at_get_attr_by_NID(_DWORD *a1, unsigned int a2, int a3)
{
char **v5; // r1
v5 = OBJ_nid2obj(a2);
if ( v5 )
return X509at_get_attr_by_OBJ(a1, (int)v5, a3);
else
return -2;
}