//
// BIO_new_ssl_connect from 0xd2ff5c to 0xd2ffb8 (92 bytes)
//
// 2 xrefs:
// > BIO_new_buffer_ssl_connect @ 0xd2ffdc
// > ??> @ 0xa2c00
//
// 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 BIO_new_ssl_connect(__int64 a1)
{
__int64 v2; // x0
__int64 result; // x0
__int64 v4; // x19
__int64 v5; // x0
v2 = BIO_s_connect();
result = BIO_new(v2);
v4 = result;
if ( result )
{
v5 = BIO_new_ssl(a1, 1);
if ( !v5 || (result = BIO_push(v5, v4)) == 0 )
{
BIO_free(v4);
return 0;
}
}
return result;
}