//
// PKCS12_SAFEBAG_get1_cert from 0x1049904 to 0x1049960 (92 bytes)
//
// 3 xrefs:
// > sub_1048408 @ 0x1048504
// > PKCS12_parse @ 0x10488d4
// > ??> @ 0x5e198
//
// 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:16:35 +0000
//
__int64 __fastcall PKCS12_SAFEBAG_get1_cert(__int64 a1)
{
if ( (unsigned int)PKCS12_SAFEBAG_get_nid((__int64 *)a1) == 152
&& (unsigned int)OBJ_obj2nid(**(_QWORD **)(a1 + 8)) == 158 )
{
return ASN1_item_unpack(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL), &X509_it);
}
else
{
return 0;
}
}