//
// ASN1_item_i2d_fp from 0x108795c to 0x10879fc (160 bytes)
//
// 8 xrefs:
// > i2d_PKCS12_fp @ 0x104a164
// > i2d_X509_fp @ 0x106e2c0
// > i2d_X509_CRL_fp @ 0x106e310
// > i2d_PKCS7_fp @ 0x106e360
// > i2d_X509_REQ_fp @ 0x106e3b0
// > i2d_RSAPrivateKey_fp @ 0x106e400
// > i2d_RSAPublicKey_fp @ 0x106e444
// > ??> @ 0x1008a0
//
// 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_item_i2d_fp(__int64 a1, __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_item_i2d_bio(a1, (__int64)v7, a3);
BIO_free(v7);
return v8;
}
else
{
ERR_put_error(13, 193, 7, (__int64)"crypto/asn1/a_i2d_fp.c", 74);
return 0;
}
}