//
// PKCS12_get_attr_gen from 0xe65bac to 0xe65be0 (52 bytes)
//
// 4 xrefs:
// > PKCS12_get_attr @ 0xdcb46c
// > PKCS12_SAFEBAG_get0_attr @ 0xdcb474
// > PKCS8_get_attr @ 0xdcb490
// > ??> @ 0xa6fe0
//
// 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 PKCS12_get_attr_gen(unsigned int *a1, unsigned int a2)
{
int attr_by_NID; // w0
__int64 attr; // x0
attr_by_NID = X509at_get_attr_by_NID(a1, a2, -1);
attr = X509at_get_attr(a1, attr_by_NID);
return X509_ATTRIBUTE_get0_type(attr, 0);
}