//
// ASN1_item_unpack from 0x8668f8 to 0x86695c (100 bytes)
//
// 7 xrefs:
// > OCSP_response_get1_basic @ 0x81dcc4
// > PKCS12_SAFEBAG_get1_cert @ 0x825d7c
// > PKCS12_SAFEBAG_get1_crl @ 0x825dc8
// > ASN1_TYPE_unpack_sequence @ 0x864870
// > PKCS12_unpack_p7data @ 0x8bb2b0
// > PKCS12_unpack_authsafes @ 0x8bb550
// > ??> @ 0x6483c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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;
}