//
// BIO_push from 0xd76e5c to 0xd76ebc (96 bytes)
//
// 22 xrefs:
// > sub_D2F9E8 @ 0xd2fc34
// > BIO_new_ssl_connect @ 0xd2ff90
// > BIO_new_buffer_ssl_connect @ 0xd2fff0
// > SSL_set0_wbio @ 0xd3f6d8
// > ssl_init_wbio_buffer @ 0xd42204
// > BIO_dup_chain @ 0xd7704c
// > sub_DCC434 @ 0xdcc490
// > PKCS7_dataInit @ 0xdcc898
// > PKCS7_dataInit @ 0xdcc8b0
// > PKCS7_dataDecode @ 0xdccdd8
// > PKCS7_dataDecode @ 0xdcce0c
// > PKCS7_dataDecode @ 0xdcd028
// > CMS_dataInit @ 0xe1fa40
// > cms_SignedData_init_bio @ 0xe21fe0
// > SMIME_read_ASN1 @ 0xe713a0
// > SMIME_read_ASN1 @ 0xe71508
// > SMIME_crlf_copy @ 0xe7188c
// > PEM_write_bio_ASN1_stream @ 0xe71b9c
// > SMIME_write_ASN1 @ 0xe72014
// > SMIME_write_ASN1 @ 0xe72284
// > BIO_new_NDEF @ 0xe72830
// > ??> @ 0x97cc8
//
// 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
//
__int64 __fastcall BIO_push(__int64 a1, __int64 a2)
{
__int64 i; // x3
if ( !a1 )
return a2;
for ( i = a1; *(_QWORD *)(i + 56); i = *(_QWORD *)(i + 56) )
;
*(_QWORD *)(i + 56) = a2;
if ( a2 )
*(_QWORD *)(a2 + 64) = i;
BIO_ctrl(a1, 6u, 0, i);
return a1;
}