//
// BIO_new_ssl_connect from 0x786630 to 0x786680 (80 bytes)
//
// 2 xrefs:
// > BIO_new_buffer_ssl_connect @ 0x78669c
// > ??> @ 0x59f4c
//
// 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
//
int __fastcall BIO_new_ssl_connect(int a1)
{
int v2; // r0
int v3; // r4
int v4; // r0
int result; // r0
v2 = BIO_s_connect();
v3 = BIO_new(v2);
if ( !v3 )
return 0;
v4 = BIO_new_ssl(a1, 1);
if ( !v4 || (result = BIO_push(v4, v3)) == 0 )
{
BIO_free(v3);
return 0;
}
return result;
}