//
// PKCS12_get_attr_gen from 0x10e3bac to 0x10e3be0 (52 bytes)
//
// 4 xrefs:
// > PKCS12_get_attr @ 0x10497cc
// > PKCS12_SAFEBAG_get0_attr @ 0x10497d4
// > PKCS8_get_attr @ 0x10497f0
// > ??> @ 0xdb3d0
//
// 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:17:50 +0000
//
__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);
}