//
// ASN1_d2i_fp from 0xe083f8 to 0xe08498 (160 bytes)
//
// 10 xrefs:
// > d2i_RSA_PUBKEY_fp @ 0xdf00f0
// > d2i_DSAPrivateKey_fp @ 0xdf01b4
// > d2i_DSA_PUBKEY_fp @ 0xdf01e4
// > d2i_EC_PUBKEY_fp @ 0xdf0274
// > d2i_ECPrivateKey_fp @ 0xdf02a4
// > d2i_PKCS8_fp @ 0xdf0414
// > d2i_PKCS8_PRIV_KEY_INFO_fp @ 0xdf0474
// > d2i_PrivateKey_fp @ 0xdf050c
// > d2i_PUBKEY_fp @ 0xdf053c
// > ??> @ 0xc88b0
//
// 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_d2i_fp(
__int64 a1,
__int64 (__fastcall *a2)(__int64, unsigned __int64 *),
__int64 a3,
__int64 a4)
{
void *v8; // x0
__int64 v9; // x0
_QWORD *v10; // x19
__int64 v11; // x20
v8 = BIO_s_file();
v9 = BIO_new((__int64)v8);
v10 = (_QWORD *)v9;
if ( v9 )
{
BIO_ctrl(v9, 0x6Au, 0, a3);
v11 = ASN1_d2i_bio(a1, a2, (__int64)v10, a4);
BIO_free(v10);
return v11;
}
else
{
ERR_put_error(13, 109, 7, (__int64)"crypto/asn1/a_d2i_fp.c", 28);
return 0;
}
}