//
// ASN1_item_d2i_fp from 0xe08868 to 0xe088fc (148 bytes)
//
// 8 xrefs:
// > d2i_PKCS12_fp @ 0xdcbe2c
// > d2i_X509_fp @ 0xdeff6c
// > d2i_X509_CRL_fp @ 0xdeffbc
// > d2i_PKCS7_fp @ 0xdf000c
// > d2i_X509_REQ_fp @ 0xdf005c
// > d2i_RSAPrivateKey_fp @ 0xdf00ac
// > d2i_RSAPublicKey_fp @ 0xdf00d4
// > ??> @ 0x607f8
//
// 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
//
__int64 __fastcall ASN1_item_d2i_fp(__int64 a1, __int64 a2, __int64 *a3)
{
void *v5; // x0
__int64 v6; // x0
_QWORD *v7; // x19
__int64 v8; // x20
v5 = BIO_s_file();
v6 = BIO_new((__int64)v5);
v7 = (_QWORD *)v6;
if ( v6 )
{
BIO_ctrl(v6, 0x6Au, 0, a2);
v8 = ASN1_item_d2i_bio(a1, (__int64)v7, a3);
BIO_free(v7);
return v8;
}
else
{
ERR_put_error(13, 206, 7, (__int64)"crypto/asn1/a_d2i_fp.c", 83);
return 0;
}
}