//
// ssl_free_wbio_buffer from 0xfc0564 to 0xfc05a0 (60 bytes)
//
// 4 xrefs:
// > ssl3_clear @ 0xfb5e4c
// > SSL_free @ 0xfc0ddc
// > tls_finish_handshake @ 0xfccb34
// > ??> @ 0xdb7f0
//
// 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:20 +0000
//
__int64 __fastcall ssl_free_wbio_buffer(__int64 result)
{
__int64 v1; // x19
if ( *(_QWORD *)(result + 32) )
{
v1 = result;
*(_QWORD *)(result + 24) = BIO_pop(*(_QWORD *)(result + 24));
result = BIO_free(*(_QWORD *)(v1 + 32));
*(_QWORD *)(v1 + 32) = 0;
}
return result;
}