//
// ASN1_i2d_fp from 0x861484 to 0x86150c (136 bytes)
//
// 10 xrefs:
// > i2d_RSA_PUBKEY_fp @ 0x848540
// > i2d_DSAPrivateKey_fp @ 0x848628
// > i2d_DSA_PUBKEY_fp @ 0x84866c
// > i2d_EC_PUBKEY_fp @ 0x848738
// > i2d_ECPrivateKey_fp @ 0x84877c
// > i2d_PKCS8_fp @ 0x848994
// > i2d_PKCS8_PRIV_KEY_INFO_fp @ 0x848a1c
// > i2d_PrivateKey_fp @ 0x848a74
// > i2d_PUBKEY_fp @ 0x848ab8
// > ??> @ 0x67e9c
//
// 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_i2d_fp(int (__fastcall *a1)(int, void **), 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_i2d_bio(a1, (int)v8, a3);
BIO_free(v8);
return v9;
}
else
{
ERR_put_error(13, 117, 7, (int)"crypto/asn1/a_i2d_fp.c", 24);
return 0;
}
}