//
// ASN1_d2i_fp from 0x10866f8 to 0x1086798 (160 bytes)
//
// 10 xrefs:
// > d2i_RSA_PUBKEY_fp @ 0x106e430
// > d2i_DSAPrivateKey_fp @ 0x106e4f4
// > d2i_DSA_PUBKEY_fp @ 0x106e524
// > d2i_EC_PUBKEY_fp @ 0x106e5b4
// > d2i_ECPrivateKey_fp @ 0x106e5e4
// > d2i_PKCS8_fp @ 0x106e754
// > d2i_PKCS8_PRIV_KEY_INFO_fp @ 0x106e7b4
// > d2i_PrivateKey_fp @ 0x106e84c
// > d2i_PUBKEY_fp @ 0x106e87c
// > ??> @ 0x104bf0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:13 +0000
//
__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;
}
}