//
// ASN1_i2d_fp from 0xa76084 to 0xa7610c (136 bytes)
//
// 10 xrefs:
// > i2d_RSA_PUBKEY_fp @ 0xa5d140
// > i2d_DSAPrivateKey_fp @ 0xa5d228
// > i2d_DSA_PUBKEY_fp @ 0xa5d26c
// > i2d_EC_PUBKEY_fp @ 0xa5d338
// > i2d_ECPrivateKey_fp @ 0xa5d37c
// > i2d_PKCS8_fp @ 0xa5d594
// > i2d_PKCS8_PRIV_KEY_INFO_fp @ 0xa5d61c
// > i2d_PrivateKey_fp @ 0xa5d674
// > i2d_PUBKEY_fp @ 0xa5d6b8
// > ??> @ 0x8191c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:44 +0000
//
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;
}
}