//
// ASN1_item_unpack from 0x108cbfc to 0x108cc70 (116 bytes)
//
// 7 xrefs:
// > OCSP_response_get1_basic @ 0x1041b94
// > PKCS12_SAFEBAG_get1_cert @ 0x104994c
// > PKCS12_SAFEBAG_get1_crl @ 0x10499a8
// > ASN1_TYPE_unpack_sequence @ 0x108ae28
// > PKCS12_unpack_p7data @ 0x10e37ac
// > PKCS12_unpack_authsafes @ 0x10e3a64
// > ??> @ 0xa5d00
//
// 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:16 +0000
//
__int64 __fastcall ASN1_item_unpack(int *a1, __int64 a2)
{
__int64 v2; // x2
__int64 result; // x0
char *v4; // [xsp+28h] [xbp+28h] BYREF
v2 = *a1;
v4 = *((char **)a1 + 1);
result = ASN1_item_d2i(nullptr, &v4, v2, a2);
if ( !result )
{
ERR_put_error(13, 199, 110, (__int64)"crypto/asn1/asn_pack.c", 60);
return 0;
}
return result;
}