//
// ASN1_i2d_fp from 0xe094f4 to 0xe09594 (160 bytes)
//
// 10 xrefs:
// > i2d_RSA_PUBKEY_fp @ 0xdf0118
// > i2d_DSAPrivateKey_fp @ 0xdf01c8
// > i2d_DSA_PUBKEY_fp @ 0xdf01f8
// > i2d_EC_PUBKEY_fp @ 0xdf0288
// > i2d_ECPrivateKey_fp @ 0xdf02b8
// > i2d_PKCS8_fp @ 0xdf0428
// > i2d_PKCS8_PRIV_KEY_INFO_fp @ 0xdf0488
// > i2d_PrivateKey_fp @ 0xdf04f0
// > i2d_PUBKEY_fp @ 0xdf0520
// > ??> @ 0x5c2b0
//
// 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_i2d_fp(__int64 (__fastcall *a1)(__int64, void **), __int64 a2, __int64 a3)
{
void *v5; // x0
__int64 v6; // x0
_QWORD *v7; // x19
unsigned int v8; // w20
v5 = BIO_s_file();
v6 = BIO_new((__int64)v5);
v7 = (_QWORD *)v6;
if ( v6 )
{
BIO_ctrl(v6, 0x6Au, 0, a2);
v8 = ASN1_i2d_bio(a1, (__int64)v7, a3);
BIO_free(v7);
return v8;
}
else
{
ERR_put_error(13, 117, 7, (__int64)"crypto/asn1/a_i2d_fp.c", 24);
return 0;
}
}