//
// BIO_pop from 0xff521c to 0xff527c (96 bytes)
//
// 13 xrefs:
// > SSL_set0_wbio @ 0xfbda08
// > ssl_free_wbio_buffer @ 0xfc0580
// > SMIME_read_ASN1 @ 0x10ef3d8
// > SMIME_read_ASN1 @ 0x10ef540
// > SMIME_read_ASN1 @ 0x10ef650
// > SMIME_read_ASN1 @ 0x10ef790
// > SMIME_crlf_copy @ 0x10ef948
// > i2d_ASN1_bio_stream @ 0x10efad8
// > PEM_write_bio_ASN1_stream @ 0x10efbd4
// > SMIME_write_ASN1 @ 0x10eff0c
// > SMIME_write_ASN1 @ 0x10f004c
// > SMIME_write_ASN1 @ 0x10f02b8
// > ??> @ 0x6a588
//
// 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_pop(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x20
__int64 v3; // x0
__int64 v4; // x1
v1 = result;
if ( result )
{
v2 = *(_QWORD *)(result + 56);
BIO_ctrl(result, 7u, 0, result);
v3 = *(_QWORD *)(v1 + 64);
if ( v3 )
*(_QWORD *)(v3 + 56) = *(_QWORD *)(v1 + 56);
v4 = *(_QWORD *)(v1 + 56);
if ( v4 )
*(_QWORD *)(v4 + 64) = v3;
*(_QWORD *)(v1 + 56) = 0;
*(_QWORD *)(v1 + 64) = 0;
return v2;
}
return result;
}