//
// X509at_get_attr from 0x83def8 to 0x83df3c (68 bytes)
//
// 11 xrefs:
// > EVP_PKEY_get_attr @ 0x803fb4
// > PKCS7_get_signed_attribute @ 0x827e98
// > PKCS7_get_attribute @ 0x8286d8
// > PKCS7_digest_from_attributes @ 0x828704
// > X509at_get0_data_by_OBJ @ 0x83e638
// > X509at_get0_data_by_OBJ @ 0x83e678
// > PKCS12_get_attr_gen @ 0x8bb6cc
// > X509_REQ_get_attr @ 0x8c3590
// > CMS_signed_get_attr @ 0x8cf0f0
// > CMS_unsigned_get_attr @ 0x8cf1b0
// > ??> @ 0x638bc
//
// 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(_DWORD *a1, unsigned int a2)
{
if ( !a1 || ((int)a2 >= OPENSSL_sk_num((int)a1)) | (a2 >> 31) )
return 0;
else
return OPENSSL_sk_value(a1, a2);
}