//
// ssl_free_wbio_buffer from 0xd42210 to 0xd4224c (60 bytes)
//
// 4 xrefs:
// > ssl3_clear @ 0xd37af8
// > SSL_free @ 0xd42a88
// > tls_finish_handshake @ 0xd4e7e0
// > ??> @ 0xa73e8
//
// 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 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;
}