//
// ssl_free_wbio_buffer from 0x9ae368 to 0x9ae39c (52 bytes)
//
// 4 xrefs:
// > ssl3_clear @ 0x9a2f08
// > SSL_free @ 0x9aeb74
// > tls_finish_handshake @ 0x9bb490
// > ??> @ 0x7477c
//
// 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:06:55 +0000
//
int __fastcall ssl_free_wbio_buffer(int result)
{
int v1; // r4
if ( *(_DWORD *)(result + 16) )
{
v1 = result;
*(_DWORD *)(result + 12) = BIO_pop(*(_DWORD *)(result + 12));
result = BIO_free(*(_DWORD *)(v1 + 16));
*(_DWORD *)(v1 + 16) = 0;
}
return result;
}