//
// PKCS12_SAFEBAG_get1_cert from 0xa3a940 to 0xa3a988 (72 bytes)
//
// 3 xrefs:
// > sub_A39418 @ 0xa39514
// > PKCS12_parse @ 0xa3997c
// > ??> @ 0x7f1ec
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:10 +0000
//
int __fastcall PKCS12_SAFEBAG_get1_cert(int a1)
{
if ( PKCS12_SAFEBAG_get_nid((int *)a1) == (char *)&dword_98
&& OBJ_obj2nid(**(_DWORD **)(a1 + 4)) == (_BYTE *)&off_9C + 2 )
{
return ASN1_item_unpack(*(_DWORD *)(*(_DWORD *)(a1 + 4) + 4), &X509_it);
}
else
{
return 0;
}
}