//
// BIO_push from 0xff51bc to 0xff521c (96 bytes)
//
// 22 xrefs:
// > sub_FADD3C @ 0xfadf88
// > BIO_new_ssl_connect @ 0xfae2e4
// > BIO_new_buffer_ssl_connect @ 0xfae344
// > SSL_set0_wbio @ 0xfbda2c
// > ssl_init_wbio_buffer @ 0xfc0558
// > BIO_dup_chain @ 0xff53ac
// > sub_104A794 @ 0x104a7f0
// > PKCS7_dataInit @ 0x104abf8
// > PKCS7_dataInit @ 0x104ac10
// > PKCS7_dataDecode @ 0x104b138
// > PKCS7_dataDecode @ 0x104b16c
// > PKCS7_dataDecode @ 0x104b388
// > CMS_dataInit @ 0x109dd40
// > cms_SignedData_init_bio @ 0x10a02e0
// > SMIME_read_ASN1 @ 0x10ef3a0
// > SMIME_read_ASN1 @ 0x10ef508
// > SMIME_crlf_copy @ 0x10ef88c
// > PEM_write_bio_ASN1_stream @ 0x10efb9c
// > SMIME_write_ASN1 @ 0x10f0014
// > SMIME_write_ASN1 @ 0x10f0284
// > BIO_new_NDEF @ 0x10f0830
// > ??> @ 0xc8698
//
// 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:15:47 +0000
//
__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;
}