//
// ASN1_item_unpack from 0xa7b4f8 to 0xa7b55c (100 bytes)
//
// 7 xrefs:
// > OCSP_response_get1_basic @ 0xa328c4
// > PKCS12_SAFEBAG_get1_cert @ 0xa3a97c
// > PKCS12_SAFEBAG_get1_crl @ 0xa3a9c8
// > ASN1_TYPE_unpack_sequence @ 0xa79470
// > PKCS12_unpack_p7data @ 0xad02b0
// > PKCS12_unpack_authsafes @ 0xad0550
// > ??> @ 0x7e2bc
//
// 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:46 +0000
//
int __fastcall ASN1_item_unpack(int *a1, int a2)
{
int v2; // r2
int result; // r0
unsigned __int8 *v4; // [sp+Ch] [bp-4h] BYREF
v2 = *a1;
v4 = (unsigned __int8 *)a1[2];
result = ASN1_item_d2i(nullptr, &v4, v2, a2);
if ( !result )
{
ERR_put_error(13, 199, 110, (int)"crypto/asn1/asn_pack.c", 60);
return 0;
}
return result;
}