//
// ASN1_item_d2i_fp from 0xa754c8 to 0xa7554c (132 bytes)
//
// 8 xrefs:
// > d2i_PKCS12_fp @ 0xa3b128
// > d2i_X509_fp @ 0xa5cf34
// > d2i_X509_CRL_fp @ 0xa5cf94
// > d2i_PKCS7_fp @ 0xa5cff4
// > d2i_X509_REQ_fp @ 0xa5d054
// > d2i_RSAPrivateKey_fp @ 0xa5d0b4
// > d2i_RSAPublicKey_fp @ 0xa5d0e4
// > ??> @ 0x7f47c
//
// 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:43 +0000
//
int __fastcall ASN1_item_d2i_fp(int a1, int a2, int *a3)
{
void *v6; // r0
_DWORD *v7; // r0
_DWORD *v8; // r5
int v9; // r4
v6 = BIO_s_file();
v7 = BIO_new((int)v6);
v8 = v7;
if ( v7 )
{
BIO_ctrl(v7, 106, 0, a2);
v9 = ASN1_item_d2i_bio(a1, (int)v8, a3);
BIO_free(v8);
return v9;
}
else
{
ERR_put_error(13, 206, 7, (int)"crypto/asn1/a_d2i_fp.c", 83);
return 0;
}
}