//
// BIO_push from 0x9e5b90 to 0x9e5be0 (80 bytes)
//
// 22 xrefs:
// > sub_99AAB4 @ 0x99b02c
// > BIO_new_ssl_connect @ 0x99b264
// > BIO_new_buffer_ssl_connect @ 0x99b2b4
// > SSL_set0_wbio @ 0x9ab374
// > ssl_init_wbio_buffer @ 0x9ae350
// > BIO_dup_chain @ 0x9e5dbc
// > sub_A3B774 @ 0xa3b7d4
// > PKCS7_dataInit @ 0xa3bd10
// > PKCS7_dataInit @ 0xa3bd30
// > PKCS7_dataDecode @ 0xa3c160
// > PKCS7_dataDecode @ 0xa3c1a0
// > PKCS7_dataDecode @ 0xa3c3e0
// > CMS_dataInit @ 0xa89d10
// > cms_SignedData_init_bio @ 0xa8c320
// > SMIME_read_ASN1 @ 0xada8a8
// > SMIME_read_ASN1 @ 0xadaa24
// > SMIME_crlf_copy @ 0xadae68
// > PEM_write_bio_ASN1_stream @ 0xadb148
// > SMIME_write_ASN1 @ 0xadb5e0
// > SMIME_write_ASN1 @ 0xadb810
// > BIO_new_NDEF @ 0xadbe90
// > ??> @ 0x7396c
//
// 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:07:23 +0000
//
_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;
}