//
// BIO_push from 0x7d0f90 to 0x7d0fe0 (80 bytes)
//
// 22 xrefs:
// > sub_785EB0 @ 0x786428
// > BIO_new_ssl_connect @ 0x786660
// > BIO_new_buffer_ssl_connect @ 0x7866b0
// > SSL_set0_wbio @ 0x796770
// > ssl_init_wbio_buffer @ 0x79974c
// > BIO_dup_chain @ 0x7d11bc
// > sub_826B74 @ 0x826bd4
// > PKCS7_dataInit @ 0x827110
// > PKCS7_dataInit @ 0x827130
// > PKCS7_dataDecode @ 0x827560
// > PKCS7_dataDecode @ 0x8275a0
// > PKCS7_dataDecode @ 0x8277e0
// > CMS_dataInit @ 0x875110
// > cms_SignedData_init_bio @ 0x877720
// > SMIME_read_ASN1 @ 0x8c58a8
// > SMIME_read_ASN1 @ 0x8c5a24
// > SMIME_crlf_copy @ 0x8c5e68
// > PEM_write_bio_ASN1_stream @ 0x8c6148
// > SMIME_write_ASN1 @ 0x8c65e0
// > SMIME_write_ASN1 @ 0x8c6810
// > BIO_new_NDEF @ 0x8c6e90
// > ??> @ 0x59eec
//
// 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
//
_DWORD *__fastcall BIO_push(_DWORD *a1, int a2)
{
int i; // r3
if ( !a1 )
return (_DWORD *)a2;
for ( i = (int)a1; *(_DWORD *)(i + 36); i = *(_DWORD *)(i + 36) )
;
*(_DWORD *)(i + 36) = a2;
if ( a2 )
*(_DWORD *)(a2 + 40) = i;
BIO_ctrl(a1, 6, 0, i);
return a1;
}