//
// ASN1_item_i2d_fp from 0x8615d8 to 0x861660 (136 bytes)
//
// 8 xrefs:
// > i2d_PKCS12_fp @ 0x8264f8
// > i2d_X509_fp @ 0x84834c
// > i2d_X509_CRL_fp @ 0x8483ac
// > i2d_PKCS7_fp @ 0x84840c
// > i2d_X509_REQ_fp @ 0x84846c
// > i2d_RSAPrivateKey_fp @ 0x8484cc
// > i2d_RSAPublicKey_fp @ 0x848528
// > ??> @ 0x659cc
//
// 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_item_i2d_fp(unsigned __int8 *a1, int a2, size_t *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_item_i2d_bio(a1, (int)v8, a3);
BIO_free(v8);
return v9;
}
else
{
ERR_put_error(13, 193, 7, (int)"crypto/asn1/a_i2d_fp.c", 74);
return 0;
}
}