//
// ASN1_d2i_fp from 0x860420 to 0x8604ac (140 bytes)
//
// 10 xrefs:
// > d2i_RSA_PUBKEY_fp @ 0x84850c
// > d2i_DSAPrivateKey_fp @ 0x84860c
// > d2i_DSA_PUBKEY_fp @ 0x848650
// > d2i_EC_PUBKEY_fp @ 0x84871c
// > d2i_ECPrivateKey_fp @ 0x848760
// > d2i_PKCS8_fp @ 0x848978
// > d2i_PKCS8_PRIV_KEY_INFO_fp @ 0x848a00
// > d2i_PrivateKey_fp @ 0x848a9c
// > d2i_PUBKEY_fp @ 0x848ae0
// > ??> @ 0x67e6c
//
// 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_d2i_fp(int a1, int (__fastcall *a2)(int, int *), int a3, int a4)
{
void *v8; // r0
_DWORD *v9; // r0
_DWORD *v10; // r5
int v11; // r4
v8 = BIO_s_file();
v9 = BIO_new((int)v8);
v10 = v9;
if ( v9 )
{
BIO_ctrl(v9, 106, 0, a3);
v11 = ASN1_d2i_bio(a1, a2, (int)v10, a4);
BIO_free(v10);
return v11;
}
else
{
ERR_put_error(13, 109, 7, (int)"crypto/asn1/a_d2i_fp.c", 28);
return 0;
}
}