//
// PEM_write_bio_ASN1_stream from 0xadb10c to 0xadb1d8 (204 bytes)
//
// 2 xrefs:
// > PEM_write_bio_CMS_stream @ 0xa8900c
// > ??> @ 0x83d4c
//
// 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:09:31 +0000
//
int __fastcall PEM_write_bio_ASN1_stream(int a1, size_t *a2, _DWORD *a3, int a4, const char *a5, unsigned __int8 *a6)
{
int v10; // r0
int v11; // r0
_DWORD *v12; // r0
_DWORD *v13; // r7
_DWORD *v14; // r6
int v15; // r4
v10 = BIO_printf(a1, "-----BEGIN %s-----\n", a5);
v11 = BIO_f_base64(v10);
v12 = BIO_new(v11);
v13 = v12;
if ( v12 )
{
v14 = BIO_push(v12, a1);
v15 = i2d_ASN1_bio_stream((int)v14, a2, a3, a4, a6);
BIO_ctrl(v14, 11, 0, 0);
BIO_pop(v14);
BIO_free(v13);
}
else
{
v15 = 0;
ERR_put_error(13, 210, 65, (int)"crypto/asn1/asn_mime.c", 105);
}
BIO_printf(a1, "-----END %s-----\n", a5);
return v15;
}